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

body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(to bottom, #5c94fc, #87ceeb);
  font-family: 'Arial', sans-serif;
}

#game-container {
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  overflow: hidden;
}

#gameCanvas {
  display: block;
  background: #5c94fc;
}

#score, #lives {
  position: absolute;
  top: 20px;
  font-size: 24px;
  font-weight: bold;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  z-index: 10;
}

#score {
  left: 20px;
}

#lives {
  right: 20px;
}

#game-over {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.9);
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  color: white;
  z-index: 20;
}

#game-over.hidden {
  display: none;
}

#game-over h2 {
  font-size: 48px;
  margin-bottom: 20px;
  color: #ff4444;
}

#game-over p {
  font-size: 24px;
  margin-bottom: 30px;
}

#restart-btn {
  padding: 15px 40px;
  font-size: 20px;
  background: #4CAF50;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

#restart-btn:hover {
  background: #45a049;
}

#controls {
  margin-top: 20px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  text-align: center;
}

#controls p {
  font-size: 18px;
  color: #333;
  font-weight: bold;
}
