.board {
  height: 40vh;
  width: 100vw;
}

.card {
  position: absolute;
  cursor: pointer;
  border-radius: 0.5em;
  background-color: transparent;
  height: 35vh;
  width: 80vw;
  color: white;
  text-shadow: 0.05em 0.05em black;
  text-wrap: wrap;
  text-align: center;
  font-size: xx-large;
  font-weight: bolder;
  margin: auto;
  margin-left: 10vw;
  top: 2em;
  border-style: none;

  max-width: 400px;
  perspective: 1000;
  transition: ease;
  transition-duration: 0.4s;
}

.flag {
  width: 35%;
}

.question-icon {
  max-width: 10vw;
}

.front.flip {
  transform: rotateY(180deg);
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
}

.back.flip {
  transform: none;
}

.front,
.back {
  background-color: burlywood;
  background-repeat: no-repeat;
  border-radius: 0.5em;
  position: absolute;
  width: 100%;
  height: 100%;
  box-shadow: 0.3em 0.3em 0.3em rgba(70, 70, 70, 0.3);
  align-items: center;
  display: flex;
  justify-content: center;
  transition: ease;
  transition-duration: 0.8s;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
}

.back {
  transform: rotateY(180deg);
}

#intro {
  font-size: 0.5em;
}

.answers {
  min-height: 20vh;
  width: 100vw;
  transition: ease;
  transition-duration: 0.4s;
}

.theme-lb.modal-content {
  overflow-y: hidden !important;
  height: 100vh;
}

.card-inner {
  transition: cubic-bezier(0.075, 0.82, 0.165, 1);
  transition-duration: 0.4s;
}

.go-right {
  transition-duration: 0.4s;
  transform: translateY(250%);
}

.go-left {
  transition-duration: 0.4s;
  transform: translateY(-150%);
}

.btn-primary {
  margin: 0.5em;
  height: 50%;
  width: 40%;
  font-size: 2em;
  text-shadow: 0.05em 0.05em black;
}

.btn-options {
  font-size: 2em !important;
  width: max-content;
}

.btn:hover {
  background-color: #70A2CD !important;
  color: white;
}

.options {
  position: relative;
  top: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mobile-options {
  outline: solid rgb(0, 100, 150) !important;
  background-color: rgb(130, 189, 241);
  margin-left: 20%;
}

.hide {
  display: none !important;
}

.help {
  margin-right: 2em;
}

.invisible {
  visibility: hidden;
}

.answer-check {
  position: absolute;
  top: 10%;
  left: 10%;
}

.bi-check-lg {
  color: greenyellow;
  font-size: 4em;
}

.bi-x-lg {
  color: rgb(255, 155, 155) !important;
  font-size: 4em;
}

.stacked {
  display: flex;
  flex-direction: column;
}

.finished {
  color: greenyellow;
  font-size: 1em;
}

.correct {
  background-color: greenyellow !important;
}

.correct:hover {
  background-color: greenyellow !important;
}

.wrong {
  background-color: rgb(255, 155, 155) !important;
}

.wrong:hover {
  background-color: rgb(255, 155, 155) !important;
}

.popout {
  animation: popout 0.4s ease;
  -webkit-animation: popout 0.4s ease;
}

.message {
  width: 100%;
  text-align: center;
  font-size: 1em;
}

.exit {
  display: flex;
  justify-content: center;
  bottom: 3em;
}

.go-down {
  position: absolute;
  bottom: 10%;
  left: 35%;
}

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

@keyframes popout {
  from {
    transform: scale(0)
  }

  80% {
    transform: scale(1.2)
  }

  to {
    transform: scale(1)
  }
}

@-webkit-keyframes popout {
  from {
    -webkit-transform: scale(0)
  }

  80% {
    -webkit-transform: scale(1.2)
  }

  to {
    -webkit-transform: scale(1)
  }
}

.floating {
  animation: floating 0.8s ease;
  animation-iteration-count: infinite;
  -webkit-animation: floating 0.8s ease;
  -webkit-animation-iteration-count: infinite;
}

@keyframes floating {
  from {
    transform: scale(1)
  }

  50% {
    transform: scale(1.1)
  }

  to {
    transform: scale(1)
  }
}

@-webkit-keyframes floating {
  from {
    -webkit-transform: scale(1)
  }

  50% {
    -webkit-transform: scale(1.1)
  }

  to {
    -webkit-transform: scale(1)
  }
}

@media screen and (orientation: landscape) {
  .mobile {
    display: none;
  }

  .mobile-message {
    display: flex;
    flex-direction: column;
    position: relative;
    text-align: center;
    font-size: 2em;
    font-weight: bold;
    top: 30%;
    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 screen and (orientation: portrait) {
  .mobile {
    display: block;
  }

  .mobile-message {
    display: none;
  }

  .help {
    padding: 0.5em 0;
  }

  .btn.help {
    max-width: 2em;
    max-height: 2em;
    position: absolute;
    right: 1em;
    top: 0;
    padding: 0 !important;
  }

  .btn-primary {
    margin: 0.5em;
    height: 80%;
    width: 80%;
  }

  .answers {
    margin-top: 20vh;
  }

  .theme-lb.modal-content {
    height: 93vh;
  }

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

@media only screen and (min-width: 900px) {

  .theme-lb.modal-content {
    height: 70vh;
  }

  .board {
    max-width: 60vw !important;
  }

  .btn-options {
    font-size: 1.5em !important;
    width: max-content;
    margin-left: 4vw;
  }

  .answers {
    max-width: 60vw !important;
  }

  .flag {
    width: 20%;
  }

  .card {
    min-height: 30vh;
    min-width: 30vw;
    margin-left: 14vw;
  }

  .question-icon {
    max-height: 8vh;
  }

  .finished {
    font-size: 2em;
  }

  .left-arrow {
    position: absolute;
    width: 3em;
    height: 2em;
    left: 10%;
    top: 30%;
  }

  .right-arrow {
    position: absolute;
    width: 3em;
    height: 2em;
    right: 10%;
    top: 30%;
  }

  .button-container {
    position: relative;
    display: inline-block;
    /* Ensures the button-container only takes up as much space as the button */
  }

  .arrow {
    position: absolute;
    bottom: -20px;
    /* Adjust this value to control the distance from the button */
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 0.75em solid transparent;
    border-right: 0.75em solid transparent;
    border-bottom: 1.5em solid rgb(0, 100, 150);
    /* This part creates the arrowhead */
    animation: float 2s infinite;
    /* Apply the floating animation */
  }

  .arrow::after {
    content: '';
    position: absolute;
    top: 100%;
    /* Positions the base right below the arrowhead */
    left: 50%;
    transform: translateX(-50%);
    width: 0.35em;
    /* Width of the square base */
    height: 3em;
    /* Height of the square base */
    background-color: rgb(0, 100, 150);
    /* Color of the base */
    margin-top: 1em;
    /* Adjust this to control the spacing between the arrowhead and base */
  }

  .message {
    font-size: 1.5em;
  }

  #intro {
    font-size: 0.75em;
  }

  @keyframes float {

    0%,
    100% {
      transform: translateX(-50%) translateY(0);
      /* Starting and ending position */
    }

    50% {
      transform: translateX(-50%) translateY(-10px);
      /* Float up by 10px */
    }
  }
}