html {
  margin: 0;
  padding: 0;
}

body {
  width:  100%;
  height: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
  font-family: 'Nerko One';
  color: #FB8C00;
  overscroll-behavior: contain;
  user-select: none;
  /* Attempt 1 to prevent pinch-to-zoom? */
  touch-action: manipulation;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  /* More Safari hacks. */
  position: fixed;
}

button {
  outline: none;
  /*touch-action: manipulation;*/
}

#whiteboard {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

#tools {
  display: block;
  position: absolute;
  top: 10px;
  left: -58px;
}

#tools > button {
  display: block;
  padding: 5px;
  border: none;
  background: none;
  color: inherit;
  /*-webkit-tap-highlight-color: transparent;*/
}

.nickname-input {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  background: #ffffff;
  text-align: center;
  font-size: 40px;
  border: none;
  outline: none;
  font-family: 'Nerko One';
}

.guess-input {
  display: block;
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 100%;
  padding: 0;
  margin: 0;
  background: transparent;
  text-align: center;
  font-size: 40px;
  border: none;
  outline: none;
  font-family: 'Nerko One';
}

.guess-input:focus::placeholder {
  color: transparent;
}

.toast {
  position: absolute;
  top: -20px;
  width: 100%;
  text-align: center;
  left: 0;
  pointer-events: none;
  line-height: 20px;
  /*display: none;*/
  /*animation-duration: 4s;
  animation-name: dropDownAndOut;
  animation-fill-mode: both;*/
}

@keyframes dropDownAndOut {
  0% {
    transform: translateY(-100px);
  }
  25% {
    transform: translateY(0px);
  }
  75% {
    transform: translateY(0px);
  }
  100% {
    transform: translateY(-100px);
  }
}

#hint {
  pointer-events: none;
  position: absolute;
  top: 40px;
  left: 0;
  width: 100%;
  text-align: center;
  text-transform: uppercase;
  font-size: 30px;
  letter-spacing: 5px;
}

#palette {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #ffffffed;
}

#palette button {
  font-size: 48px;
  padding: 5px;
  background: none;
  border: none;
}

#palette button::after {
  content: 'brightness_1';
}

#countdown {
  position: absolute;
  top: 20px;
  right: 20px;
  pointer-events: none;
  font-size: 40px;
  line-height: 40px;
}

@keyframes fadeOutUp {
  0% {
      opacity: 1;
      transform: translateY(0);
  }
  100% {
      opacity: 0;
      transform: translateY(-400px);
  }
}

.guess {
  position: absolute;
  bottom: 100px;
  right: 30px;
  font-size: 20px;
  animation-duration: 4s;
  animation-name: fadeOutUp;
  animation-fill-mode: both;
  pointer-events: none;
}

#reveal .word {
  text-transform: uppercase;
  letter-spacing: 5px;
  font-size: 30px;
  margin-left: 10px;
}

#reveal ul {
  display: flex;
  flex-direction: column;
}

.overlay {
  display: flex;
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  background: #ffffffed;
  overflow: hidden;
}

.overlay > div {
  margin: 50px;
  font-size: 20px;
  text-align: center;
}

.overlay h1 {
  font-size: 40px;
  margin-bottom: 20px;
}

.overlay ul {
  text-align: center;
  list-style: none;
  padding-left: 0;
}

/*#words li {
  margin: 10px;
  position: relative;
  top: 0;
  transition: top 1s linear 2s;
}*/

.players li {
  line-height: 30px;
  position: relative;
  top: 0;
  white-space: nowrap;
  overflow: hidden;
}

.players li.appear {
  animation-duration: 0.3s;
  animation-name: expandIn;
  animation-fill-mode: both;
  animation-timing-function: linear;
}

.players li.disappear {
  animation-duration: 0.3s;
  animation-name: collapseOut;
  animation-fill-mode: both;
  animation-timing-function: linear;
}

@keyframes expandIn {
  0% {
    max-height: 0px;
  }
  100% {
    max-height: 30px;
  }
}

@keyframes collapseOut {
  0% {
    max-height: 30px;
  }
  100% {
    max-height: 0px;
  }
}

#waitingroom {
  pointer-events: none;
  background: transparent;
}

#words li {
  cursor: pointer;
  font-size: 30px;
  text-transform: uppercase;
  margin: 20px 10px;
}

#timer li {
  cursor: pointer;
  font-size: 30px;
  text-transform: uppercase;
  margin: 20px 10px;
}

#rounds li {
  cursor: pointer;
  font-size: 30px;
  text-transform: uppercase;
  margin: 20px 10px;
}

select {
  pointer-events: all;
}

#play {
  margin: 20px auto 0 auto;
  font-size: 80px;
  pointer-events: all;
  background: none;
  border: none;
  color: inherit;
  padding: 0;
  display: block;
}

#confetti-canvas {
  display: block;
  z-index: 999999;
  pointer-events: none;
  position: absolute;
  top: 0;
  height: 100%;
  width: 100%;
}

.material-icons.md-48 { font-size: 48px; }
.material-icons.orange600 { color: #FB8C00; }