body {
  display: flex;
  justify-content: center; /* horizontal centering */
  align-items: center;     /* vertical centering */
  flex-direction: column;  /* stack canvas and controls */
  height: 100vh;
  margin: 0;
  background: #111;
  color: #fff;
  font-family: Arial, sans-serif;
}

canvas {
  border: 2px solid white;
  background: black;
  display: block;
  margin: 0 auto;
}

#controls {
  margin-top: 20px; /* space between game and controls */
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#controls div {
  display: flex;
  justify-content: center;
  gap: 20px;
}

#controls button {
  font-size: 28px;
  padding: 18px 24px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(145deg, #222, #333);
  color: #00ffcc;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 255, 200, 0.3);
  transition: all 0.2s ease-in-out;
}

#controls button:hover {
  background: linear-gradient(145deg, #333, #444);
  transform: scale(1.1);
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 255, 200, 0.6);
}

#controls button:active {
  transform: scale(0.95);
  box-shadow: 0 2px 10px rgba(0, 255, 200, 0.3);
}
