/* --- BODY & MAIN --- */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: linear-gradient(to bottom, #87ceeb, #ffffff);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  touch-action: manipulation;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

/* --- GAME CONTAINER --- */
.game-container {
  width: 95vw;
  height: 85vh;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
}

/* --- QUIZ PANELS --- */
.quiz-panel {
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 80%;
}

.quiz-panel h2 {
  margin-bottom: 20px;
}

.question {
  font-size: 32px;
  margin-bottom: 20px;
  text-align: center;
}

.options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  width: 100%;
  max-width: 260px;
}

.option-btn {
  font-size: 26px;
  padding: 20px 10px;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
  transition: transform 0.1s;
}

.option-btn:active {
  transform: scale(0.95);
}

.left-option {
  background: #4CAF50;
  color: white;
}

.right-option {
  background: #2196F3;
  color: white;
}

/* --- STAGE CANVAS --- */
.stage-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

canvas {
  width: 500px;
  height: 500px;
  max-width: 45vw;
  max-height: 80vh;
  background: linear-gradient(#e8f5ff, #ffffff);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* --- TIMER --- */
.timer {
  font-size: 16px;           /* small text */
  font-weight: normal;       /* not bold */
  color: #333;               /* dark color */
  background: rgba(255,255,255,0.7);
  padding: 6px 12px;
  border-radius: 8px;
  position: fixed;           /* floats at top */
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  z-index: 100;
}

/* --- START BUTTON --- */
#startBtn {
  font-size: 18px;
  padding: 10px 25px;
  border: none;
  border-radius: 12px;
  background-color: #4CAF50;
  color: white;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.1s;
}

#startBtn:active {
  transform: scale(0.95);
}

/* --- FOOTER --- */
footer {
  text-align: center;
  padding: 15px 10px;
  font-size: 14px;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(6px);
  border-top: 1px solid rgba(0,0,0,0.05);
}

footer a {
  color: #0077cc;
  text-decoration: none;
  font-weight: bold;
}

footer a:hover {
  text-decoration: underline;
}

/* --- MODAL --- */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: 0.3s;
}

.modal.active {
  visibility: visible;
  opacity: 1;
}

.modal-box {
  background: white;
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.modal-box h2 {
  margin-bottom: 20px;
}

.modal-box button {
  font-size: 20px;
  padding: 12px 30px;
  border: none;
  border-radius: 12px;
  background: #4CAF50;
  color: white;
  cursor: pointer;
}
