/* Quick Quiz — mobile first */

/* Make sure "hidden" always hides, even for buttons */
[hidden] {
  display: none !important;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #1e1b4b;
  color: #ffffff;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.4;
}

/* One narrow column, centered */
main {
  max-width: 480px;
  margin: 0 auto;
  padding: 40px 16px;
}

section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}

h1 {
  font-size: 40px;
  margin: 40px 0 0;
}

h2 {
  font-size: 26px;
  margin: 8px 0;
}

p {
  margin: 0;
}

#progress {
  color: #c7d2fe;
  font-size: 16px;
}

#answers {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* All buttons: big and easy to tap with a thumb */
button {
  width: 100%;
  min-height: 56px;
  padding: 12px 16px;
  border: none;
  border-radius: 14px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation; /* no accidental zoom on double tap */
}

/* Main buttons: Start, Next, Play again */
#start-button,
#next-button,
#again-button {
  background: #facc15;
  color: #1e1b4b;
  margin-top: 8px;
}

/* Answer buttons (game.js adds these) */
.answer {
  background: #ffffff;
  color: #1e1b4b;
}

.answer.correct {
  background: #22c55e;
  color: #ffffff;
}

.answer.wrong {
  background: #ef4444;
  color: #ffffff;
}

.answer:disabled {
  cursor: default;
}
