@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: #0f0f0f;
  font-family: 'Press Start 2P', monospace;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  color: #fff;
}

#container {
  position: relative;
  max-width: 640px;
  margin: auto;
}

#game {
  display: block;
  width: 640px;
  height: 480px;
  border: 4px solid #444;
  box-shadow: 0 0 20px #ff6600, 0 0 40px #ff660055;
  image-rendering: pixelated;
  cursor: none;
}

/* CRT scanlines */
.scanlines {
  position: absolute;
  top: 0; left: 0;
  width: 640px;
  height: 480px;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(0,0,0,0.18) 2px,
    rgba(0,0,0,0.18) 4px
  );
  z-index: 5;
}

#ui {
  position: absolute;
  top: 10px;
  left: 10px;
  color: #fff;
  font-size: 10px;
  z-index: 10;
  line-height: 1.8;
  pointer-events: none;
}

button {
  font-family: 'Press Start 2P', monospace;
  background: #ff6600;
  color: #000;
  border: none;
  cursor: pointer;
  padding: 10px 16px;
  transition: transform 0.1s;
}
button:hover { transform: scale(1.1); }

.hidden { display: none !important; }

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.blink { animation: blink 1s infinite; }

#pause-menu, #start-screen, #game-over, #question-modal {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.92);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ff6600;
  z-index: 20;
  gap: 12px;
}

/* Question modal specifics */
.question-text {
  font-size: 9px;
  color: #fff;
  margin: 15px;
  line-height: 1.8;
  text-align: center;
  max-width: 560px;
}

.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 15px;
}

.option-btn {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  background: #1a1a2e;
  color: #00ffff;
  border: 1px solid #00ffff;
  padding: 8px;
  cursor: pointer;
  transition: background 0.1s, color 0.1s;
}
.option-btn:hover { background: #00ffff; color: #000; }
.option-btn.correct { background: #00ff00; color: #000; border-color: #00ff00; }
.option-btn.wrong { background: #ff0000; color: #fff; border-color: #ff0000; }

/* Pause menu nav links */
.nav-link {
  color: #888;
  font-size: 8px;
  margin-top: 8px;
  text-decoration: none;
  font-family: 'Press Start 2P', monospace;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transform: none;
}
.nav-link:hover { color: #fff; transform: none; }

#controls {
  color: #888;
  font-size: 9px;
  text-align: center;
  padding: 8px 0;
}
