::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: #4c4b53;
  opacity: 1; /* Firefox */
}

body {
  width: 100vw;
  height: 100vh;
  margin: 0;
  font-family: 'Open Sans';
  background-color: #0e0e10;
  color: #f8f8f8;
}

h1, h2 {
  margin: 0;
}

.modalBackground {
  z-index: 1000;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal {
  z-index: 1001;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  max-width: 90vw;
  background-color: #1f1f23;
  border-radius: 5px;
  text-align: center;
}

.modalTitle {
  font-size: 1.5em;
  margin: 5px;
}

.modalContent {
  font-size: 1em;
  margin: 5px;
}

.modalInput {
  font-size: 1em;
  margin: 5px;
  border: none;
  background-color: #424246;
  color: #f8f8f8;
  font-size: 20px;
  padding: 2px 5px;
  border-radius: 5px;
  text-align: center;
}

.modalInput:focus {
  outline: none;
}

.modalCloseButton {
  border: none;
  background-color: #424246;
  color: #f8f8f8;
  font-size: 20px;
  padding: 2px 5px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 100ms ease-in-out;
  margin: 10px;
}

.modalCloseButton:hover {
  background-color: #56565a;
}

.bold {
  font-weight: bold;
}

/* -------------------------------------------------------------------------- */
/*                                SERVER SELECT                               */
/* -------------------------------------------------------------------------- */

.selectServerContainer {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #18181b;
  text-align: center;
  border-radius: 5px;
  padding: 15px;
  width: 350px;
  max-width: 95vw;
}

.serverListContainer {
  background-color: #1f1f23;
  max-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
  margin: 10px;
  border-radius: 5px;
}

.serverListContainer::-webkit-scrollbar {
  width: 5px;
}

.serverListContainer::-webkit-scrollbar-track {
  background-color: transparent;
  border-radius: 6px;
}

.serverListContainer::-webkit-scrollbar-thumb {
  background: #949494;
  border-radius: 10px;
}

.serverListItem {
  display: flex;
  flex-direction: row;
  background-color: #242425;
  border-radius: 5px;
  align-items: center;
  margin: 5px 0;
}

.serverListItemTextContainer {
  margin: 5px;
  margin-left: 10px;
}

.serverListItemButtonContainer {
  margin: 5px;
  margin-right: 10px;
  margin-left: auto;
}

.serverListItemName {
  text-align: left;
  font-size: 1.2em;
  margin: 0;
}

.serverListItemDescription {
  text-align: left;
  font-size: 0.9em;
  margin: 0;
}

.joinServerButton {
  margin-top: 5px;
  border: none;
  background-color: #424246;
  color: #f8f8f8;
  font-size: 20px;
  padding: 2px 5px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 100ms ease-in-out;
}

.joinServerButton:hover {
  background-color: #56565a;
}

.createServerButton {
  margin-top: 5px;
  border: none;
  background-color: #424246;
  color: #f8f8f8;
  font-size: 20px;
  padding: 5px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 100ms ease-in-out;
}

.createServerButton:hover {
  background-color: #56565a;
}

.serverListNoServersAvailable {
  font-size: 1em;
  margin: 10px;
}

.changeNameButton {
  position: fixed;
  top: 5px;
  right: 5px;
  border: none;
  background-color: #424246;
  color: #f8f8f8;
  font-size: 20px;
  padding: 2px 5px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 100ms ease-in-out;
}

.changeNameButton:hover {
  background-color: #56565a;
}

/* -------------------------------------------------------------------------- */
/*                                    GAME                                    */
/* -------------------------------------------------------------------------- */

.container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.gameContainer {
  background-color: #18181b;
  text-align: center;
  border-radius: 5px;
  position: relative;
}

.gameTable {
  border-style: hidden;
  box-shadow: 0 0 0 2px white;
  border-radius: 5px;
  border-collapse: collapse;
  margin: 15px;
  table-layout: fixed;
  width: calc(80px * 12);
}

.gameTableCell {
  border: 2px solid white;
  width: 80px;
  height: 80px;
}

/* media for smart phones */
@media only screen and (max-height: 575.98px) { /* and (orientation: landscape)*/
  .gameTable {
    width: 33vw;
  }

  .gameTableCell {
    width: calc(33vw / 8);
    height: calc(33vw / 8);
  }
}

.gameChip {
  margin: auto;
  width: 90%;
  height: 90%;
  border-radius: 50%;
}

.gameChip.RED {
  background-color: #cf3434;
}

.gameChip.BLUE {
  background-color: #34cfcf;
}

.gameChip.highlighted {
  box-shadow: 0px 0px 14px 3px white;
}

.gameStatusText {
  margin: 10px;
}

.playerList {
  position: fixed;
  top: 5px;
  right: 5px;
  text-align: right;
}

.playerItem {
  margin: 0;
  font-size: 1.3em;
}

.playerItem.RED, .gameStatusText.RED, .playerName.RED {
  color: #ff6262;
}

.playerItem.BLUE, .gameStatusText.BLUE, .playerName.BLUE {
  color: #00ffff;
}

.gameTitle {
  position: fixed;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2.2em;
}

.newGameButton {
  position: absolute;
  top: 5px;
  left: 5px;
  border: none;
  background-color: #424246;
  color: #f8f8f8;
  font-size: 20px;
  padding: 2px 5px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 100ms ease-in-out;
}

.newGameButton:hover {
  background-color: #56565a;
}

.chatButton {
  border-radius: 10px;
  background: #18181b;
  border: 2px solid transparent;
  position: absolute;
  right: 20px;
  bottom: 20px;
  height: 50px;
  width: 50px;
  padding: 0px;
}

.chatButton:hover {
  border: 2px solid grey;
  cursor: pointer;
}

.chatIcon {
  width: 40px;
  fill: white;
  padding-top: 1px;
}

.chatBox {
  border: 2px solid grey;
  position: absolute;
  width: 400px;
  height: 200px;
  right: 70px;
  bottom: 70px;
  background: #18181b;
  border-radius: 10px;
  display: none;
}

.chatInputContainer {
  position: absolute;
  bottom: 10px;
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.chatInput {
  width: 83%;
  height: 25px;
  margin-left: 10px;
  background: #000000;
  border: 2px solid #2f2b34;
  border-radius: 5px;
  padding-left: 10px;
  outline: none;
  color: white;
}

.chatInput:focus {
  border: 2px solid #78a5ee;
}

.chatMessages {
  display: flex;
  flex-direction: column;
  margin: 15px;
  overflow-x: hidden;
  max-height: 135px;
  word-break: break-all;
}

.chatMessages::-webkit-scrollbar {
  width: 5px;
}

.chatMessages::-webkit-scrollbar-track {
  background-color: transparent;
  border-radius: 6px;
}

.chatMessages::-webkit-scrollbar-thumb {
  background: #949494;
  border-radius: 10px;
}

.chatBirnenButton {
  background: transparent;
  border: 2px solid transparent;
  margin-right: 7px;
  font-size: 16px;
  margin-bottom: 2px;
  transition: transform 0.05s ease-in-out;
}

.chatBirnenButton:hover {
  cursor: pointer;
  border-radius: 10px;
}

.chatBirnenButton:active {
  transform: scale(0.8);
  transition-timing-function: cubic-bezier(0.5, 0, 0.5, 1);
}

.chatMessageBox {
  margin: 3px;
}

.chatButtonMessageIndicator {
  background: #dd3447;
  border-radius: 100px;
  color: white;
  font-weight: 700;
  width: 20px;
  height: 20px;
  position: absolute;
  right: 15px;
  bottom: 15px;
  font-size: 12px;
  text-align: center;
  line-height: 19px;
  pointer-events: none;
}

.chatButtonMessageIndicator:empty {
  display: none;
}

/* ===== Birnenabteilung ===== */

.chatBirnenWrapper {
  overflow: hidden;
}

.treat {
  --scale-x: 0;
  --scale-y: 0;
  pointer-events: none;
  display: block;
  position: absolute;
  top: 0;
  left: calc(50% - .5rem);
  border-radius: 50%;
  width: 1em;
  height: 1em;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 3vmin;
  transform: translate(calc( var(--x) * 1px ), calc( var(--y) * 1px )) translate(-50%, -50%);
  pointer-events: none;
  -webkit-animation: treat-enter 0.1s ease-in backwards, treat-exit 300ms linear calc( (var(--lifetime, 3000) * 1ms) - 300ms) forwards;
  animation: treat-enter 0.1s ease-in backwards, treat-exit 300ms linear calc( (var(--lifetime, 3000) * 1ms) - 300ms) forwards;
  opacity: 1;
}

@-webkit-keyframes treat-enter {
  from {
    opacity: 0;
  }
}

@keyframes treat-enter {
  from {
    opacity: 0;
  }
}

@-webkit-keyframes treat-exit {
  to {
    opacity: 0;
  }
}

@keyframes treat-exit {
  to {
    opacity: 0;
  }
}

.treat .inner {
  -webkit-animation: inner-rotate 0.6s linear infinite;
  animation: inner-rotate 0.6s linear infinite;
  transform: rotate(calc(-1turn * var(--direction) ));
}

@-webkit-keyframes inner-rotate {
  to {
    transform: none;
  }
}

@keyframes inner-rotate {
  to {
    transform: none;
  }
}
