* {
  box-sizing: border-box;
}

/* Ensure buttons are easy to tap on phones */
.option-btn {
  min-height: 48px; /* Minimum recommended touch target size */
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: transparent;
  margin: 0;
  padding: 16px;
  display: flex;
  justify-content: center;
  color: #404040;
}

.quiz-container {
  background: #ffffff;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05), 0 2px 6px rgba(0, 0, 0, 0.04);
  width: 100%;
  max-width: 520px;
  box-sizing: border-box;
  border: 1px solid #eaeaea;
}
.instructions-box {
  background-color: #f8faf9;
  border-left: 4px solid #65c7c3;
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 24px;
}

.instructions-box h3 {
  margin: 0 0 4px 0;
  font-size: 0.9rem;
  color: #65c7c3;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
}

.instructions-box p {
  margin: 0;
  font-size: 0.95rem;
  color: #404040;
  line-height: 1.5;
}

/* Question & Options */
.question {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #404040;
  line-height: 1.4;
}

.options-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-btn {
  padding: 14px 18px;
  border: 2px solid #eef0f2;
  background-color: #ffffff;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  color: #404040;
  text-align: left;
  font-weight: 500;
  transition: all 0.2s ease;
  min-height: 48px;
  
  /* Prevent iOS blue tap highlight and persistent focus outlines */
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

/* ONLY apply hover styling on mouse-driven devices (Desktops/Laptops) */
@media (hover: hover) {
  .option-btn:hover:not(:disabled) {
    border-color: #65c7c3;
    background-color: #f4faf7;
  }
}

/* Selection Feedback */
.option-btn.correct {
  background-color: #65c7c3;
  border-color: #65c7c3;
  color: #ffffff;
  font-weight: 600;
}

.option-btn.incorrect {
  background-color: #fdeded;
  border-color: #f5c2c2;
  color: #d32f2f;
}

/* Navigation Button */
.btn {
  margin-top: 24px;
  padding: 14px;
  width: 100%;
  border: none;
  background-color: #404040;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.btn:hover {
  opacity: 0.9;
}

#result-container h2 {
  color: #404040;
  margin-top: 0;
}

.feedback-msg {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 16px;
  display: none; 
}

.feedback-msg.correct {
  color: #2e7d32  !important;
  background-color: #e8f5e9  !important;
  border: 1px solid #c8e6c9;
}

.feedback-msg.incorrect {
  color: #d32f2f  !important;
  background-color: #fdeded  !important;
  border: 1px solid #f5c2c2;
}
.progress-container {
      width: 100%;
      background-color: #e0e0e0;
      border-radius: 8px;
      height: 10px;
      margin-bottom: 20px;
      overflow: hidden;
    }

    .progress-bar {
      height: 100%;
      width: 0%;
      background-color: #65c7c3 !important; /* !important guarantees override */
      transition: width 0.3s ease;
    }
