:root {
  --primary-color: #227eff;
  --secondary-color: #d8e8ff;
}

section,
footer {
  background: linear-gradient(
    89deg,
    rgb(172, 202, 246) 0%,
    rgb(216, 232, 255) 48%,
    rgb(172, 202, 246) 97%
  );
}

.game-quiz-container {
  align-items: center;
  background-color: #ffffff65;
  border-radius: 10px;
  box-shadow: rgba(126, 126, 137, 0.2) 0px 7px 29px 0px;
  filter: blur();
  flex-direction: column;
  margin: auto;
  max-width: 700px;
  padding: 30px;
  text-align: center;
}

.game-details-container div {
  padding: 0;
}

.game-question-container {
  align-items: center;
  background-color: var(--primary-color);
  border-radius: 10px;
  color: #fff;
  justify-content: center;
  margin-bottom: 5px;
  padding: 20px;
}

.game-options-container {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
  padding: 0;
  margin-top: 5px;
}

.game-options-container div {
  background-color: #fff;
  border-radius: 10px;
  height: 70px;
  padding: 10px 20px;
  transition: transform 0.3s;
}

.game-options-container div:hover {
  transform: scale(1.07);
  color: var(--primary-color);
}

.game-options-container label {
  align-items: center;
  cursor: pointer;
  display: flex;
  font-size: 16px;
  height: 100%;
  justify-content: center;
  margin: 0;
  width: 100%;
}

input[type="radio"] {
  position: relative;
  display: none;
}

input[type="radio"]:checked ~ .option {
  color: var(--primary-color);
  font-weight: 600;
}

.next-button-container button {
  border: 2px solid var(--primary-color);
  border-radius: 10px;
  background: none;
  color: var(--primary-color);
  cursor: pointer;
  display: block;
  margin: 0 auto;
  outline: none;
  padding: 10px 20px;
  transition: 200ms;
}

.next-button-container button:hover {
  background-color: var(--primary-color);
  color: #fff;
}

.grade-details {
  height: 10rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  text-align: center;
  margin-bottom: 30px;
}

.grade-details p {
  color: white;
}

.modal-button-container {
  height: 2rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-button-container button {
  width: 10rem;
  height: 2rem;
  background: none;
  outline: none;
  border: 1px solid rgb(252, 242, 241);
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
  border-radius: 20px;
}

.modal-button-container button:hover {
  background-color: rgb(83, 82, 82);
}

#option-modal {
  display: none;
  text-align: center;
}

#score-modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.4);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  -webkit-animation: fadeIn 1.2s ease-in-out;
  animation: fadeIn 1.2s ease-in-out;
}

#score-content-modal {
  height: 22rem;
  width: 27rem;
  background-color: rgb(43, 42, 42);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  border-radius: 25px;
}

#score-modal h1 {
  font-size: 1.3rem;
  color: lightgray;
}

@media (max-width: 575px) {
  section {
    padding: 20px;
  }

  .game-quiz-container {
    padding: 30px 15px;
  }

  .game-options-container {
    grid-template-columns: 1fr;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@-webkit-keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
