/* === QUIZ WRAPPER === */
.quiz-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

/* === QUIZ CONTAINER === */
#quiz-container {
  background: #fcfef7; /* subtle yellowish-green */
  border: 1px solid #dfe8ba;
  border-radius: 0.8rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  padding: 1rem 1.2rem;
  max-width: 560px;
  width: 100%;
  font-family: "Inter", system-ui, sans-serif;
  animation: fadeIn 0.3s ease-in-out;
}

/* === TITLE === */
.quiz-title {
  text-align: center;
  color: #2f3d00;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

/* === QUESTION TEXT === */
.question-text {
  font-size: 0.95rem;
  color: #1c1c1c;
  line-height: 1.45;
  margin-bottom: 0.6rem;
}

/* === OPTION GRID === */
.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

/* === BUTTON BASE === */
.btn {
  border: none;
  border-radius: 0.6rem;
  padding: 0.65rem 0.8rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease-in-out;
}

/* === OPTION BUTTONS === */
.option.btn {
  background: #f3f7e5;
  color: #222;
  border: 1px solid #d7e4af;
}

.option.btn:hover {
  background: #e7f2c4;
  transform: translateY(-1px);
}

.option.btn:active {
  transform: scale(0.98);
}

/* === CORRECT / WRONG === */
.correct {
  background: linear-gradient(135deg, #4caf50, #43a047) !important;
  color: #fff !important;
  border: none !important;
}

.wrong {
  background: linear-gradient(135deg, #f44336, #e53935) !important;
  color: #fff !important;
  border: none !important;
}

.option:disabled {
  opacity: 0.95;
  cursor: not-allowed;
}

/* === NEXT / RESTART BUTTON (Right-Arrow Style) === */
/* === NEXT BUTTON (Right Arrow Shaped) === */
.next-btn {
  display: none;
  position: relative;
  margin: 1rem auto;
  background: linear-gradient(135deg, #009e60, #007a4d);
  color: #fff;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  width: 110px;
  height: 48px;
  box-shadow: 0 4px 12px rgba(0, 158, 96, 0.3);
  transition: all 0.25s ease-in-out;
  clip-path: polygon(0% 0%, 85% 0%, 100% 50%, 85% 100%, 0% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.next-btn:hover {
  background: linear-gradient(135deg, #00b86b, #009e60);
  box-shadow: 0 6px 15px rgba(0, 158, 96, 0.4);
  transform: translateX(2px);
}

.next-btn:active {
  transform: scale(0.97);
}

.next-btn::after {
  content: "➜"; /* right arrow symbol */
  font-size: 1.4rem;
  font-weight: 700;
}


/* === RESULT TEXT === */
.result {
  margin-top: 1rem;
  text-align: center;
  color: #2f3d00;
  font-size: 0.9rem;
  font-weight: 500;
}

/* === LEVEL BUTTONS === */
.level-btn {
  background: linear-gradient(135deg, #0077ff, #005edc);
  color: #fff;
  border: none;
  border-radius: 0.6rem;
  padding: 0.6rem 1rem;
  margin: 0.3rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s ease-in-out;
}

.level-btn:hover {
  background: linear-gradient(135deg, #005edc, #004ec0);
  transform: translateY(-1px);
}

.level-btn.active-level {
  background: linear-gradient(135deg, #9bcf5a, #7db948);
  box-shadow: 0 4px 10px rgba(155, 207, 90, 0.4);
}

/* === ANIMATION === */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 640px) {
  .options-grid {
    grid-template-columns: 1fr;
  }
}
