/* Base reset */
* {
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Mobile-first body */
body {
  margin: 0;
  padding: 0;
  background: #111827;
  color: #e5e7eb;
  font-size: 16px; /* prevents iPhone auto-zoom on inputs */
}

/* App container */
.app {
  width: 100%;
  max-width: 600px; /* reduced for phone */
  margin: 1rem auto;
  padding: 1rem;
  background: #1f2937;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* Headings */
h1, h2 {
  margin-top: 0;
  text-align: center;
  font-size: 1.4rem;
}

/* Form fields */
.field {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
}

label {
  margin-bottom: 0.35rem;
  font-weight: 600;
  font-size: 1rem;
}

input[type="number"],
select {
  padding: 0.75rem;
  border-radius: 6px;
  border: 1px solid #4b5563;
  background: #111827;
  color: #e5e7eb;
  font-size: 1rem;
}

/* Buttons */
button {
  padding: 0.9rem 1.2rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  background: #2563eb;
  color: white;
  font-weight: 600;
  width: 100%;          /* full-width buttons for phones */
  margin-top: 0.5rem;
  font-size: 1rem;
}

button + button {
  margin-left: 0;
}

/* Quiz layout */
#quiz-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #9ca3af;
}

/* Question box */
#question-container {
  padding: 1rem;
  border-radius: 8px;
  background: #111827;
  border: 1px solid #374151;
}

/* Question text */
.question-text {
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 1.1rem;
}

/* Options */
.options-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.options-list li {
  margin-bottom: 0.75rem;
}

.options-list label {
  display: flex;
  align-items: flex-start;
  padding: 0.75rem;
  border: 1px solid #374151;
  border-radius: 8px;
  background: #1f2937;
  cursor: pointer;
  font-size: 1rem;
}

/* Larger tap target */
.options-list input[type="radio"] {
  margin-right: 0.75rem;
  transform: scale(1.3);
}

/* Quiz controls */
#quiz-controls {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Results */
#score-summary {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.review-item {
  border: 1px solid #374151;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  background: #111827;
  font-size: 1rem;
}

.correct {
  color: #22c55e;
}

.incorrect {
  color: #f97316;
}

/* --- Responsive tweaks for larger screens --- */
@media (min-width: 600px) {
  button {
    width: auto;
  }

  #quiz-controls {
    flex-direction: row;
    justify-content: space-between;
  }
}



.hidden {
  display: none !important;
  pointer-events: none !important;
}

