.quiz-container {
  max-width: 800px;
  margin: 0 auto 3rem;
  position: relative;
}
.contain {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
.quiz-intro {
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 5px rgba(0, 0, 0, 0.541);
  text-align: center;
  margin-bottom: 2rem;
}

.quiz-intro h3 {
  color: #0a7400;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.quiz-start-btn {
  margin-top: 2rem;
}

.quiz-start-toggle {
  display: none;
}

.quiz-questions {
  display: none;
}

.quiz-start-toggle:checked ~ .quiz-questions {
  display: block;
}

.quiz-start-toggle:checked ~ .quiz-intro {
  display: none;
}

.quiz-question {
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 5px rgba(0, 0, 0, 0.603);
  margin-bottom: 2rem;
  display: none;
}

#question1 {
  display: block;
}

.question-number {
  color: black;
  margin-bottom: 1rem;
  font-weight: 500;
}

.quiz-question h3 {
  margin-bottom: 1.5rem;
  color: black;
}

.quiz-options {
  margin-bottom: 2rem;
}

.option {
  margin-bottom: 1rem;
}

.option-input {
  display: none;
}

.option-label {
  display: block;
  padding: 1rem;
  border: 2px solid #086100;
  border-radius:10px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.option-label:hover {
  border-color: #0c8b00;
  background-color: #f9f9f9;
}

.option-text {
  display: block;
  padding-left: 2rem;
  position: relative;
}

.option-text::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: 2px solid #0a7400;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.option-input:checked + .option-label {
  border-color: #0a7400;
  background-color: #f0f9f4;
}

.option-input:checked + .option-label .option-text::before {
  border-color: #0c8b00;
  background-color: #086100;
  box-shadow: inset 0 0 0 4px white;
}


.option-feedback {
  display: none;
  margin-top: 0.5rem;
  padding: 0.5rem 0 0 2rem;
  font-size: 0.9rem;
}

.correct {
  color: #0a7400;
}

.incorrect {
  color: #aa1100;
}

.option-input:checked + .option-label .option-feedback {
  display: block;
}

.correct-answer:checked + .option-label {
  border-color: #047e00;
  background-color: #eafaf1;
}

.option-input:not(.correct-answer):checked + .option-label {
  border-color: #b31200;
  background-color: #fdedec;
}

.question-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.prev-btn {
  background-color: black;
}

.prev-btn:hover {
  background-color: rgba(0, 0, 0, 0.774);
}

.next-btn {
  background-color: #086100;
}

.spacer {
  width: 100px;
}

.question-toggle {
  display: none;
}

#q1-next:checked ~ #question1 {
  display: none;
}

#q1-next:checked ~ #question2 {
  display: block;
}

#q2-next:checked ~ #question2 {
  display: none;
}

#q2-next:checked ~ #question3 {
  display: block;
}

#q3-next:checked ~ #question3 {
  display: none;
}

#q3-next:checked ~ #question4 {
  display: block;
}

#q4-next:checked ~ #question4 {
  display: none;
}

#q4-next:checked ~ #question5 {
  display: block;
}

#q5-next:checked ~ #question5 {
  display: none;
}
#q5-next:checked ~ #question6 {
  display: block;
}

#q6-next:checked ~ #question6 {
  display: none;
}
#q6-next:checked ~ #question7 {
  display: block;
}
#q7-next:checked ~ #question7 {
  display: none;
}
#q7-next:checked ~ #question8 {
  display: block;
}
#q8-next:checked ~ #question8 {
  display: none;
}
#q8-next:checked ~ #question9 {
  display: block;
}
#q9-next:checked ~ #question9 {
  display: none;
}#q9-next:checked ~ #question10 {
  display: block;
}
#q10-next:checked ~ .quiz-results {
  display: block;
}
#q-next:checked ~ #question {
  display: none;
}
.quiz-results {
  display: none;
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 5px rgba(0, 0, 0, 0.61);
  text-align: center;
}

.quiz-results h3 {
  color: #086100;
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.results-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .quiz-question {
    padding: 1.5rem;
  }

  .option-label {
    padding: 0.75rem;
  }

  .question-navigation {
    flex-direction: column;
    gap: 1rem;
  }

  .prev-btn,
  .next-btn {
    width: 100%;
  }

  .spacer {
    display: none;
  }
}

@media (max-width: 480px) {
  .quiz-question h3 {
    font-size: 1.2rem;
  }

  .option-text {
    font-size: 0.9rem;
  }

  .option-feedback {
    font-size: 0.8rem;
  }
}

               