:root { --pad: 16px; --radius: 14px; }
* { box-sizing: border-box; }
body { font-family: -apple-system, system-ui, Segoe UI, Roboto, Arial, sans-serif; margin: 0; background: #f6f7fb; color: #222; }
nav { display: flex; gap: 12px; padding: var(--pad); background: white; position: sticky; top: 0; z-index: 200; border-bottom: 1px solid #e5e7eb; }
nav a { text-decoration: none; color: #111; padding: 8px 10px; border-radius: 10px; }
nav a:hover { background: #f0f2f7; }
main { max-width: 900px; margin: 24px auto; padding: 0 var(--pad); }
h1 { margin-top: 0; }
.card { background: white; padding: var(--pad); border-radius: var(--radius); box-shadow: 0 2px 12px rgba(0,0,0,0.06); margin-bottom: 20px; }
footer { text-align: center; padding: 20px; color: #6b7280; }

/* Shared quiz styles (math & geography) */
.feedback-correct { color: #10b981; animation: fadeIn 0.3s ease-in; }
.feedback-wrong { color: #ef4444; animation: fadeIn 0.3s ease-in; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

.quiz-nav { display: flex; justify-content: center; gap: 1rem; margin-bottom: 1.5rem; }
.quiz-nav-link { font-weight: 600; padding: 0.5rem 1rem; border-radius: 8px; text-decoration: none; font-size: 1.05rem; background: transparent; color: #4a90e2; }
.quiz-nav-link.active { background: #e5e7eb; color: #111; }

.quiz-section { padding: 1.5rem; border-radius: 10px; margin-bottom: 2rem; background: #f9fafb; }
.quiz-section.highlight { background: #fef3c7; }
.quiz-section-title { margin: 0 0 1rem 0; font-size: 1.3rem; color: #111; }

.quiz-dropdowns-row { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 1.5rem; align-items: flex-end; justify-content: center; }
.quiz-dropdown-group { display: flex; flex-direction: column; gap: 0.5rem; }
.quiz-dropdown-label { font-weight: 600; font-size: 0.9rem; color: #374151; }

.modern-select {
  padding: 0.75rem 1rem; font-size: 1rem; font-weight: 500; color: #1f2937;
  background: linear-gradient(to bottom, #ffffff, #f9fafb);
  border: 2px solid #d1d5db; border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05); cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-position: right 0.75rem center; background-repeat: no-repeat; background-size: 1.25rem;
  padding-right: 2.5rem;
}
.modern-select:hover { border-color: #9ca3af; box-shadow: 0 2px 8px rgba(0,0,0,0.08); background-color: #ffffff; }
.modern-select:focus { outline: none; border-color: #4a90e2; box-shadow: 0 0 0 4px rgba(74,144,226,0.12), 0 2px 8px rgba(0,0,0,0.08); background-color: #ffffff; }
.modern-select:active { transform: translateY(1px); }
