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

/* -----------------------------
   UNIVERSAL STYLING
----------------------------- */
* {
  font-family: 'Press Start 2P', monospace;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* -----------------------------
   BODY
----------------------------- */
body {
  background: #111;
  color: #00ffcc;
  text-align: center;
  padding: 50px 30px;
  position: relative;
  overflow-x: hidden;
  line-height: 1.8;
  cursor: none; /* hide default cursor */
}

/* CRT scanline effect */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  background: repeating-linear-gradient(
    rgba(255,255,255,0.02) 0px,
    rgba(255,255,255,0.02) 1px,
    transparent 1px,
    transparent 3px
  );
  z-index: 1000;
}

/* -----------------------------
   HEADINGS
----------------------------- */
h1 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #00ffcc;
  text-shadow: 0 0 4px #00ffcc;
}

.subtitle {
  color: #0ff;
  margin-bottom: 30px;
  font-size: 14px;
}

/* -----------------------------
   BUTTONS
----------------------------- */
button {
  padding: 14px 28px;
  font-size: 12px;
  text-transform: uppercase;
  border-radius: 0;
  border: 2px solid #00ffcc;
  background: #111;
  color: #00ffcc;
  cursor: pointer;
  margin: 16px auto;
  display: block;
  box-shadow: 2px 2px #00ffcc;
  transition: all 0.1s linear;
}

/* Hover effect for default cyan buttons */
button:hover {
  background: #00ffcc;
  color: #111;
  box-shadow: 0 0 8px #00ffcc;
}

/* Gameplay buttons orange */
body.playing button {
  border-color: #ff9900;
  color: #ff9900;
  box-shadow: 2px 2px #ff9900;
}

body.playing button:hover {
  background: #ff9900;
  color: #111;
  box-shadow: 0 0 8px #ff9900;
}

/* Button widths */
#startBtn {
  width: 220px;
}

#choices button {
  width: 200px;
}

/* -----------------------------
   FEEDBACK & TIME
----------------------------- */
#feedback {
  font-size: 14px;
  font-weight: bold;
  margin-top: 30px;
  color: #ff00ff;
  text-shadow: 0 0 6px #ff00ff;
  animation: glow 1.5s infinite alternate;
}

#time {
  font-size: 12px;
  color: #ccc;
  text-shadow: 0 0 2px #ccc;
  margin-top: 20px;
  animation: glow 1.5s infinite alternate;
}

/* -----------------------------
   GLOW ANIMATION
----------------------------- */
@keyframes glow {
  0% { text-shadow: 0 0 2px #00ffcc, 0 0 4px #00ffcc; }
  50% { text-shadow: 0 0 6px #00ffcc, 0 0 12px #00ffcc; }
  100% { text-shadow: 0 0 2px #00ffcc, 0 0 4px #00ffcc; }
}

/* -----------------------------
   PIXEL CURSOR
----------------------------- */
.pixel-cursor {
  position: fixed;
  width: 16px;
  height: 16px;
  background: #00ffcc;
  pointer-events: none;
  z-index: 2000;
  mix-blend-mode: difference;
}

/* Gameplay buttons orange */
body.playing button {
  border-color: #ff9900;
  color: #ff9900;
  box-shadow: 2px 2px #ff9900;
}

body.playing button:hover {
  background: #ff9900;
  color: #111;
  box-shadow: 0 0 8px #ff9900;
}
