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

body {
  margin: 0;
  padding: 0;
  background-color: #202020;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
  font-family: 'Press Start 2P', cursive, sans-serif;
}

#game-container {
  position: relative;
  width: 800px;
  height: 600px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
  background-color: #5c94fc; /* Classic sky blue */
  image-rendering: pixelated; /* Sharp pixels */
}

#ui-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  color: white;
  text-shadow: 2px 2px 0 #000;
  font-size: 16px;
  text-transform: uppercase;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  display: none;
  text-align: center;
}

.overlay.active {
  display: flex;
}

h1 {
  font-size: 40px;
  color: #ffce00;
  text-shadow: 4px 4px 0 #b33e00;
  margin-bottom: 20px;
}

p {
  font-size: 18px;
  line-height: 1.5;
  color: #fff;
}

.controls {
  margin-top: 30px;
  font-size: 12px;
  color: #ccc;
}
