.q-board {
  min-height: 50vh;
  max-height: 80vh;
  max-width: 25vw;
  overflow: hidden;
}

.question {
  font-weight: bolder;
  font-size: 2.5em !important;
  background-color: white;
  padding: 0.25em;
  border-radius: 0.5em;
  text-wrap: wrap;
  max-width: 90vw;
}

.q-word {
  color: black;
  font-size: 2em;
  text-align: center;
  vertical-align: middle;
}

.q-word-input {
  outline: none;
  border: none;
  background-color: white;
  background-image: none;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
  display: inline-block;

  min-width: 1em;
  max-width: 1em;
  min-height: 1em;
  max-height: 1em;
  border-radius: 0.25em;
  margin: 0 0.1em;
}

.container {
  text-align: center;
  min-height: 1em;
  margin: 2em auto;
}

.current {
  background-color: rgba(255, 255, 0, 0.2);
}

.correct {
  background-color: rgba(0, 255, 0, 0.2);
}

.wrong {
  background-color: rgba(255, 0, 0, 0.2);
}

.btn-outline-dark {
  text-shadow: 1px 1px 2px black !important;
  background-color: var(--blue-1) !important;
}

.btn-outline-dark:hover {
  background-color: var(--blue-2) !important;
}

.char-btn {
  text-shadow: 1px 1px 2px black !important;
  background-color: var(--blue-1) !important;
  font-size: 1.5em;
  font-weight: bold;
  border-radius: 0.5em !important;
  margin: 0.2em;
  padding: 0.5em;
  color: white;
}

.char-btn:hover {
  background-color: var(--blue-2) !important;
}

.char-btn:active {
  background-color: var(--blue-2) !important;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
}

#feedback {
  text-align: center;

}

#explosion {
  position: absolute;
  font-weight: bold;
  color: white;
  opacity: 0;
  transition: width 0.25s ease-out, height 0.25s ease-out, opacity 0.25s ease-out, transform 0.25s ease-out;
  pointer-events: none;
  left: 50%;
  top: 10vh;
}

.explode {
  opacity: 1 !important;
  font-size: 3em !important;
  transform: translateX(-50%) !important;
  background-color: rgb(0, 200, 0);
  padding: 0.25em;
  border-radius: 0.5em;
}

.btn {
  border-radius: 1em !important;
  padding: 0.5em;
  font-size: 2em;
  font-weight: bold;
}

.end {
  animation: rainbow 2s infinite;
}

@keyframes rainbow {
  0% {
    color: red;
  }

  14% {
    color: orange;
  }

  28% {
    color: yellow;
  }

  42% {
    color: green;
  }

  57% {
    color: blue;
  }

  71% {
    color: indigo;
  }

  85% {
    color: violet;
  }

  100% {
    color: red;
  }
}

.end-title {
  color: black;
  background-color: white;
  border-radius: 0.5em;
  padding: 0.25em;
  font-size: 3em;
  font-weight: bold;
  user-select: none;
}

.highscore {
  display: inline-block;
  font-size: 1.5em;
  font-weight: bold;
  background-color: white;
  padding: 0.5em;
  border-radius: 0.5em;

  width: 100px;
}

.hide {
  display: none !important;
}

.modal-dialog .btn {
  margin: 0.25em;
  font-size: 1.5em !important;
  width: auto !important;
  border-radius: 0.25em !important;
  padding: 0.25em !important;
}

.confetti {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1000;
  max-height: 35vh;
  pointer-events: none;
}

.confetti-piece {
  position: absolute;
  width: 10px;
  height: 30px;
  background: #ffd300;
  top: 0;
  opacity: 0;
  overflow: hidden;
}

.confetti-piece:nth-child(1) {
  left: 7%;
  -webkit-transform: rotate(-40deg);
  -webkit-animation: makeItRain 1000ms infinite ease-out;
  -webkit-animation-delay: 182ms;
  -webkit-animation-duration: 1116ms;
}

.confetti-piece:nth-child(2) {
  left: 14%;
  -webkit-transform: rotate(4deg);
  -webkit-animation: makeItRain 1000ms infinite ease-out;
  -webkit-animation-delay: 161ms;
  -webkit-animation-duration: 1076ms;
}

.confetti-piece:nth-child(3) {
  left: 21%;
  -webkit-transform: rotate(-51deg);
  -webkit-animation: makeItRain 1000ms infinite ease-out;
  -webkit-animation-delay: 481ms;
  -webkit-animation-duration: 1103ms;
}

.confetti-piece:nth-child(4) {
  left: 28%;
  -webkit-transform: rotate(61deg);
  -webkit-animation: makeItRain 1000ms infinite ease-out;
  -webkit-animation-delay: 334ms;
  -webkit-animation-duration: 708ms;
}

.confetti-piece:nth-child(5) {
  left: 35%;
  -webkit-transform: rotate(-52deg);
  -webkit-animation: makeItRain 1000ms infinite ease-out;
  -webkit-animation-delay: 302ms;
  -webkit-animation-duration: 776ms;
}

.confetti-piece:nth-child(6) {
  left: 42%;
  -webkit-transform: rotate(38deg);
  -webkit-animation: makeItRain 1000ms infinite ease-out;
  -webkit-animation-delay: 180ms;
  -webkit-animation-duration: 1168ms;
}

.confetti-piece:nth-child(7) {
  left: 49%;
  -webkit-transform: rotate(11deg);
  -webkit-animation: makeItRain 1000ms infinite ease-out;
  -webkit-animation-delay: 395ms;
  -webkit-animation-duration: 1200ms;
}

.confetti-piece:nth-child(8) {
  left: 56%;
  -webkit-transform: rotate(49deg);
  -webkit-animation: makeItRain 1000ms infinite ease-out;
  -webkit-animation-delay: 14ms;
  -webkit-animation-duration: 887ms;
}

.confetti-piece:nth-child(9) {
  left: 63%;
  -webkit-transform: rotate(-72deg);
  -webkit-animation: makeItRain 1000ms infinite ease-out;
  -webkit-animation-delay: 149ms;
  -webkit-animation-duration: 805ms;
}

.confetti-piece:nth-child(10) {
  left: 70%;
  -webkit-transform: rotate(10deg);
  -webkit-animation: makeItRain 1000ms infinite ease-out;
  -webkit-animation-delay: 351ms;
  -webkit-animation-duration: 1059ms;
}

.confetti-piece:nth-child(11) {
  left: 77%;
  -webkit-transform: rotate(4deg);
  -webkit-animation: makeItRain 1000ms infinite ease-out;
  -webkit-animation-delay: 307ms;
  -webkit-animation-duration: 1132ms;
}

.confetti-piece:nth-child(12) {
  left: 84%;
  -webkit-transform: rotate(42deg);
  -webkit-animation: makeItRain 1000ms infinite ease-out;
  -webkit-animation-delay: 464ms;
  -webkit-animation-duration: 776ms;
}

.confetti-piece:nth-child(13) {
  left: 91%;
  -webkit-transform: rotate(-72deg);
  -webkit-animation: makeItRain 1000ms infinite ease-out;
  -webkit-animation-delay: 429ms;
  -webkit-animation-duration: 818ms;
}

.confetti-piece:nth-child(odd) {
  background: #7431e8;
}

.confetti-piece:nth-child(even) {
  z-index: 1;
}

.confetti-piece:nth-child(4n) {
  width: 5px;
  height: 12px;
  -webkit-animation-duration: 2000ms;
}

.confetti-piece:nth-child(3n) {
  width: 3px;
  height: 10px;
  -webkit-animation-duration: 2500ms;
  -webkit-animation-delay: 1000ms;
}

.confetti-piece:nth-child(4n-7) {
  background: red;
}

@-webkit-keyframes makeItRain {
  from {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  to {
    -webkit-transform: translateY(150px);
  }
}

@media only screen and (orientation: portrait) {
  .mobile {
    display: block;
  }

  .mobile-message {
    display: none;
  }

  #explosion {
    top: 25vh;
  }

  /* .teacher-quiz-finish {
    position: absolute !important;
    left: auto !important;
    width: 95vw !important;
    top: 0 !important;
  } */
}

@media only screen and (orientation: landscape) {
  .modal-body {
    overflow: hidden;
  }

  .mobile {
    display: none;
  }

  .mobile-message {
    display: flex;
    flex-direction: column;
    position: relative;
    text-align: center;
    font-size: 2em;
    font-weight: bold;
    top: 30%;
    height: 300px;
    overflow: hidden !important;
  }

  .bi-phone-landscape {
    margin-top: 0.25em;
    font-size: 3em;
    animation: rot 3s ease-in-out;
    animation-iteration-count: infinite;
    -webkit-animation: rot 3s ease-in-out;
    -webkit-animation-iteration-count: infinite;

  }
}

@keyframes rot {
  from {
    transform: rotate(0);
  }

  30% {
    transform: rotate(0);
  }

  50% {
    transform: rotate(90deg);
  }

  70% {
    transform: rotate(90deg);
  }

  to {
    transform: rotate(0);
  }
}

@media only screen and (max-width: 500px) {
  .mobile-keyboard {
    left: 10% !important;
  }

  .char-btn {
    padding: 0.2em !important;
    margin: 0.1em !important;
    font-size: 1.7em !important;
    min-width: 1.2em !important;
  }

  #qwerty1 {
    position: relative;
    left: 0 !important;
  }

  #qwerty2 {
    position: relative;
    left: 6% !important;
  }

  #qwerty3 {
    position: relative;
    left: 5% !important;
  }

  #mobile-characters {
    position: relative;
    left: 10% !important;
  }

  .spacebar {
    position: relative;
    left: 12% !important;
  }
}

@media only screen and (max-width: 1000px) {

  .q-board {
    margin-top: 5em;
    min-height: 100vh !important;
    min-width: 100vw !important;
    max-height: none;
  }

  .start-btn {
    margin-top: 10em;
  }

  .mobile-keyboard {
    position: absolute;
    margin-top: 5em;
    max-width: 100vw;
    display: flex;
    flex-direction: column;
    left: 12%;
    bottom: 15%;
  }

  #qwerty1 {
    position: relative;
    left: 0;
  }

  #qwerty2 {
    position: relative;
    left: 6%;
  }

  #qwerty3 {
    position: relative;
    left: 5%;
  }

  #mobile-characters {
    position: relative;
    left: 10%;
  }

  .spacebar {
    position: relative;
    left: 5%;
  }

  .char-btn {
    padding: 0.2em;
    margin: 0.1em;
    font-size: 2em;
    min-width: 2em;
  }

  .char-btn:hover {
    background-color: var(--blue-1) !important;
  }

  .spacebar .char-btn {
    width: 70vw;
    height: 1.5em;
  }
}