@import url("https://fonts.googleapis.com/css2?family=Lato&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Lato", sans-serif;
  background-color: #f4f4f4;
  color: #222;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.btn {
  font-family: inherit;
  padding: 10px 50px;
  cursor: pointer;
  border-radius: 5px;
  border: 2px solid #f4f4f4;
  background-color: darkcyan;
  color: #f4f4f4;
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.btn:hover {
  background-color: cadetblue;
  transform: scale(0.98);
}

.btn:focus {
  outline: none;
}

.quiz-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 90%;
  margin-top: 100px;
  margin-bottom: 80px;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.4);
  background-color: cadetblue;
  position: relative;
}

.quiz-container::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 80%;
  color: #222;
  background-color: cadetblue;
  transform: skewY(-10deg);
  transform-origin: top left;
  z-index: -1;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

.quiz-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 80%;
  color: #222;
  background-color: cadetblue;
  transform: skewY(10deg);
  transform-origin: top right;
  z-index: -1;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
}

.question-container {
  padding: 50px;
  width: 80%;
  border-bottom: 2px solid darkcyan;
  margin: 30px 0;
}

.question-container h3 {
  font-size: 1.4rem;
}

.question-container label {
  font-size: 1.1rem;
}

.quiz-header {
  background-color: cadetblue;
  width: 90%;
  height: 210px;
  padding: 80px;
  margin: 0 0 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

.quiz-header h1.hidden {
  display: none;
}

.quiz-header h1 {
  display: block;
  font-size: 3rem;
  border-bottom: 5px solid #222;
  text-align: center;
  width: 50%;
}

.end-message.hidden {
  display: none;
}

.inner-message {
  margin-top: 40px;
}

.end-message {
  display: block;
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 50px;
}

.play-again-button {
  margin-top: 20px;
  z-index: 2;
}

.quiz-header::before {
  content: "";
  position: absolute;
  bottom: -70%;
  right: 0;
  width: 50.1%;
  height: 80%;
  color: #222;
  transform: skewY(-10deg);
  transform-origin: top left;
  z-index: 1;
  background-image: linear-gradient(
    to top,
    #008b8b,
    #2a9090,
    #3f9596,
    #50999b,
    #5f9ea0
  );
}

.quiz-header::after {
  content: "";
  position: absolute;
  bottom: -70%;
  left: 0;
  width: 50%;
  height: 80%;
  color: #222;
  transform: skewY(10deg);
  transform-origin: top right;
  z-index: 1;
  background-image: linear-gradient(
    to top,
    #008b8b,
    #2a9090,
    #3f9596,
    #50999b,
    #5f9ea0
  );
}

.question {
  margin-bottom: 10px;
}

.answer {
  padding: 10px;
  margin-left: 20px;
}

.answer input {
  margin-right: 5px;
  cursor: pointer;
}

/* BACKGROUND NUMBERS */

.question1 {
  position: relative;
}

.quiz-container .question1::before {
  content: "1";
  top: -80px;
  right: -50px;
  color: darkcyan;
  position: absolute;
  font-size: 20rem;
  font-weight: 700;
  opacity: 0.2;
  text-shadow: white 0px 5px 3px;
}

.question2 {
  position: relative;
}

.quiz-container .question2::before {
  content: "2";
  top: -80px;
  right: -50px;
  color: darkcyan;
  position: absolute;
  font-size: 20rem;
  font-weight: 700;
  opacity: 0.2;
  text-shadow: white 0px 5px 3px;
}

.question3 {
  position: relative;
}

.quiz-container .question3::before {
  content: "3";
  top: -80px;
  right: -50px;
  color: darkcyan;
  position: absolute;
  font-size: 20rem;
  font-weight: 700;
  opacity: 0.2;
  text-shadow: white 0px 5px 3px;
}

.question4 {
  position: relative;
}

.quiz-container .question4::before {
  content: "4";
  top: -80px;
  right: -50px;
  color: darkcyan;
  position: absolute;
  font-size: 20rem;
  font-weight: 700;
  opacity: 0.2;
  text-shadow: white 0px 5px 3px;
}

.question5 {
  position: relative;
}

.quiz-container .question5::before {
  content: "5";
  top: -80px;
  right: -50px;
  color: darkcyan;
  position: absolute;
  font-size: 20rem;
  font-weight: 700;
  opacity: 0.2;
  text-shadow: white 0px 5px 3px;
}

.question6 {
  position: relative;
}

.quiz-container .question6::before {
  content: "6";
  top: -80px;
  right: -50px;
  color: darkcyan;
  position: absolute;
  font-size: 20rem;
  font-weight: 700;
  opacity: 0.2;
  text-shadow: white 0px 5px 3px;
}

@media (max-width: 300px) {
  .quiz-header {
    padding: 60px;
  }
  .quiz-container .question1::before {
    right: -40px;
  }

  .quiz-container .question2::before {
    right: -40px;
  }

  .quiz-container .question3::before {
    right: -40px;
  }

  .quiz-container .question4::before {
    right: -30px;
  }

  .quiz-container .question5::before {
    right: -40px;
  }

  .quiz-container .question6::before {
    right: -40px;
  }
}
