body {
  margin: 0;
  padding: 0;
  background-color: black;
  overflow: hidden;
  cursor: none;
}

#game-container {
  width: 100vw;
  height: 100vh;
  position: relative;
  background-image: url("https://opengameart.org/sites/default/files/bg5.jpg.preview.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

#player {
  width: 64px;
  height: 64px;
  position: absolute;
  bottom: 30px;
  transform: translateX(-50%);
  background-image: url("https://opengameart.org/sites/default/files/ship_0.png");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}

.bullet {
  width: 8px;
  height: 24px;
  position: absolute;
  background-color: #ff0000;
  box-shadow: 0 0 10px #ff0000, 0 0 20px #ff0000;
  border-radius: 50%;
  pointer-events: none;
}

.enemy {
  width: 64px;
  height: 64px;
  position: absolute;
  background-image: url("https://opengameart.org/sites/default/files/asteroid_1.png");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}

#score {
  position: absolute;
  top: 10px;
  left: 10px;
  color: white;
  font-family: Arial, sans-serif;
  font-size: 20px;
  pointer-events: none;
}

#health-bar-container {
  position: absolute;
  top: 40px;
  left: 10px;
  width: 200px;
  height: 20px;
  background-color: #333;
  border: 2px solid #fff;
}

#health-bar {
  width: 100%;
  height: 100%;
  background-color: #0f0;
  transition: width 0.3s ease-in-out;
}

#game-over {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 20px;
  text-align: center;
  border-radius: 10px;
}

#game-over h1 {
  font-size: 36px;
  margin-bottom: 10px;
}

#game-over p {
  font-size: 24px;
  margin-bottom: 20px;
}

#restart-button {
  font-size: 18px;
  padding: 10px 20px;
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#restart-button:hover {
  background-color: #45a049;
}

.hidden {
  display: none;
}

.explosion {
  width: 50px;
  height: 50px;
  background: url("explosion.png") no-repeat center;
  background-size: contain;
  position: absolute;
}

#game-container {
  cursor: pointer; 
}
