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

body {
  background-color: #202020;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  color: #fff;
  font-family: 'Press Start 2P', monospace; /* Retro gaming font */
  overflow: hidden;
}

#game-container {
  position: relative;
  background-color: #636363;
  padding: 20px;
  border-radius: 4px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

canvas {
  background-color: #000;
  display: block;
  image-rendering: pixelated; /* Sharp pixels */
  width: 520px; /* 1.25x scale for better visibility */
  height: 520px;
}

#hud {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 12px;
  color: #000;
  background: #8b8b8b;
  padding: 5px;
  border: 2px solid #fff;
}

#overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
  pointer-events: none;
}

.title {
  font-size: 40px;
  color: #b53120; /* Brick red */
  text-shadow: 4px 4px #000;
  margin-bottom: 40px;
}

.blink {
  animation: blinker 1s linear infinite;
}

@keyframes blinker {
  50% { opacity: 0; }
}

.controls {
  margin-top: 40px;
  font-size: 10px;
  color: #ddd;
  line-height: 1.5;
}

.hidden {
  display: none !important;
}
