*,
*::before,
*::after {
  margin: 0;
  padding: 0;
}

@font-face {
  font-family: "Lobster";
  src: url(./fonts/lobster/Lobster-Regular.ttf);
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Good_Vibration";
  src: url(./fonts/vtks-good-vibration-2/VTKS_Good_Vibrations_2.ttf);
  font-weight: 400;
  font-style: normal;
}


body {
  overflow: hidden;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  height: 100vh;
  width: 100vw;
  font-family: Arial, Helvetica, sans-serif;
  transition: .7s;
  background-color: black;
}

.wait {
  position: absolute;
  left: 50%;
  top: 5%;
  transform: translateX(-50%);
  white-space: nowrap;
  color: white;
}

.percentDisplay,
.bar {
  visibility: hidden;
}
















.wait p {
  font-family: "Lobster";
  font-size: 50px;
  text-shadow: 4px 4px 8px rgba(0, 0, 0, .5);
  margin-bottom: 30px;
}

.percentDisplay {
  font-size: 30px;
  font-weight: 700;
  text-align: center;
}

.bar {
  position: relative;
}

.loading-bar-back,
.loading-bar-front {
  position: absolute;
  height: 8px;
  width: 100%;
  border-radius: 4px;
  border: none;
}

.loading-bar-back {
  background-color: lightgrey;

}

.loading-bar-front {
  background-color: olive;
  width: 0%;
  transition: width .5s;
}

.difficulty {
  position: absolute;
  display: none;
  width: 380px;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid;
  padding: 20px;
  font-weight: 700;
  background-color: rgb(200, 200, 200);
  border-radius: 10px;
  border: 7px double black;
}

.difficulty h2 {
  text-align: center;
  margin-bottom: 10px;
}

.difficulty label {
  font-size: 24px;
  margin: 5px;
}

.difficulty input {
  margin-left: 10px;
}

.difficulty label[for="easy"],
.difficulty label[for="medium"],
.difficulty label[for="hard"] {
  display: inline-block;
  width: 85px;
}

input[name="totalTries"] {
  margin-left: 150px;
}

.difficulty label,
.difficulty input {
  cursor: pointer
}

button {
  display: block;
  margin: 10px auto 0;
  font-size: 18px;
  font-weight: 900;
  padding: 1px 0 2px;
  width: 80px;
  border-radius: 5px;
  cursor: pointer;
}

button:active {
  transition: scale(.5)
}

.question {
  display: none;
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  background-color: rgb(200, 200, 200);
  padding: 20px;
  border-radius: 10px;
  border: 7px double black;
}

.question p {
  margin: 10px;
  font-size: 20px;
  font-weight: 900;
}

.question p.strike {
  text-decoration: line-through;
}

.question .wrong.hide {
  display: relative;
  opacity: 0;
  transform: translateY(50%);
  transition: .5s;
}

.bottomNav {
  display: flex;
  align-items: baseline;
}

.bottomNav>*:not(:nth-child(2)) {
  width: 33%;
  font-weight: 700;
}

.bottomNav>*:not(:nth-child(2)) span {
  display: inline-block;
  width: 25%;
  text-align: center;
  background-color: white;
  padding: 2px;
}

.score {
  text-align: right;
}

.indent {
  padding-left: 50px;
}

.timer {
  position: absolute;
  top: 5%;
  left: 50%;
  font-size: 150px;
  font-family: Good_Vibration;
  transform: translateX(-50%) scale(0);
  transform-origin: center;
  text-shadow: 0px 0px 5px white;
}

.timer.flash {
  animation: flashTimer .5s;
}

@keyframes flashTimer {

  0% {
    transform: translateX(-50%) scale(0);
  }

  50% {
    transform: translateX(-50%) scale(1);
  }

  100% {
    transform: translateX(-50%) scale(0);
  }
}

.bottomNav:not(button) {
  font-size: 18px;
}



@media only screen and (max-width: 600px) {
  .wait p {
    font-size: 8.333vw;
    text-shadow: .667vw .667vw 1.333vw rgba(0, 0, 0, .5);
    margin-bottom: 5vw;
  }

  .percentDisplay {
    font-size: 5vw;
  }

  .loading-bar-back,
  .loading-bar-front {
    height: 1.333vw;
    border-radius: .667vw;
  }

  .difficulty {
    width: 63.333vw;
    border: .167vw solid;
    padding: 3.333vw;
    border-radius: 1.667vw;
    border: 1.167vw double black;
  }

  .difficulty h2 {
    margin-bottom: 1.667vw;
  }

  .difficulty label {
    font-size: 4vw;
    margin: .833vw;
  }

  .difficulty input {
    margin-left: 1.667vw;
  }

  .difficulty label[for="easy"],
  .difficulty label[for="medium"],
  .difficulty label[for="hard"] {
    width: 14.167vw;
  }

  input[name="totalTries"] {
    margin-left: 25vw;
  }

  button {
    margin: 1.667vw auto 0;
    font-size: 3vw;
    padding: .167vw 0 .333vw;
    width: 13.333vw;
    border-radius: .833vw;
  }

  .question {
    width: 83.333vw;
    padding: 3.333vw;
    border-radius: 1.667vw;
    border: 1.167vw double black;
  }

  .question p {
    margin: 1.667vw;
    font-size: 3.333vw;
  }

  .bottomNav>*:not(:nth-child(2)) span {
    padding: .333vw;
  }

  .indent {
    padding-left: 8.333vw;
  }

  .timer {
    font-size: 25vw;
    text-shadow: 0 0 .833vw white;
  }

  /* default for h2 is 24px */
  h2 {
    font-size: 4vw;
  }

  .bottomNav:not(button) {
    font-size: 3vw;
  }
}

@media only screen and (max-width: 350px) {
  input[name="totalTries"] {
    margin-left: 20vw;
  }
}

@media only screen and (max-width: 250px) {
  input[name="totalTries"] {
    margin-left: 14vw;
  }
}