/* ---------- Global ---------- */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background-color: #020617;
  color: #f8fafc;
  text-align: center;
}

/* ---------- Screens ---------- */
#menu, #game, #result {
  padding: 20px;
}

h1 {
  margin-top: 40px;
}

/* ---------- Buttons ---------- */
button {
  padding: 14px 24px;
  font-size: 18px;
  margin: 10px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  background: #22c55e;
  color: black;
}

button:hover {
  opacity: 0.9;
}

/* ---------- Question ---------- */
#question {
  font-size: 24px;
  margin: 10px 0;
}

/* ---------- Game Area ---------- */
#gameArea {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 70vh;
  margin: 20px auto;
  background: #020617;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #1e293b;
}

/* ---------- Answers ---------- */
.answer {
  position: absolute;
  padding: 12px 6px;
  background: #38bdf8;
  color: #020617;
  border-radius: 10px;
  font-size: 16px;
  text-align: center;
  cursor: pointer;
  user-select: none;
  transition: transform 0.1s ease;
}

.answer:hover {
  transform: scale(1.05);
}

.answer.correct {
  background: #4ade80;
}

.answer.wrong {
  background: #f87171;
}

/* ---------- Floor ---------- */
#floor {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 8px;
  background: #dc2626;
}

/* ---------- Score ---------- */
#score {
  font-size: 18px;
  margin-top: 10px;
}

/* ---------- Result ---------- */
#result h2 {
  margin-top: 40px;
}

/* ---------- Mobile tweaks ---------- */
@media (max-width: 600px) {
  #question {
    font-size: 20px;
  }

  .answer {
    font-size: 14px;
    padding: 10px 4px;
  }

  button {
    font-size: 16px;
  }
}



