body {
  margin: 0;
  background: black;
  overflow: hidden;
}


#game {
  position: relative;
  width: 800px;
  height: 800px;
  margin: 20px auto;

  background-image: url('39631.jpg'); /* Use your image filename */
  background-size: cover;      /* Make image cover entire area */
  background-position: center; /* Center the image */
  background-repeat: no-repeat;
  border: 2px solid rgb(0, 166, 255);
  box-shadow: 0 0 20px rgba(0, 166, 255, 0.8); /* blue glow */
}

#player {
  position: absolute;
  bottom: 10px;
  left: 575px;
  width: 50px;
  height: 200px;
  background: url('rockert-removebg-preview.png') no-repeat center;
  background-size: contain;
}

.bullet {
  position: absolute;
  width: 5px;
  height: 20px;
  background: yellow;
  box-shadow: 0 0 8px yellow;
}

.enemy {
  position: absolute;
  width: 60px;
  height: 40px;
  background: url('Screenshot_2025-05-30_at_16.26.14-removebg-preview.png') no-repeat center;
  background-size: contain;
  opacity: 0.95;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

@keyframes blast {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(2);
  }
}

.blast {
  width: 60px;
  height: 60px;
  background: url('Screenshot_2025-05-30_at_16.59.04-removebg-preview.png') no-repeat center;
  background-size: contain;
  animation: blast 0.5s forwards;
  pointer-events: none;
  box-shadow: 0 0 20px red;
  border-radius: 50%;
}

#scoreboard {
  position: absolute;
  top: 10px;
  left: 10px;
  color: white;
  font-family: sans-serif;
  font-size: 18px;
  z-index: 10;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 5px 10px;
  border-radius: 5px;
}
#scoreboard span {
  display: inline-block;
  margin-right: 15px;
}

#game-over {
  position: absolute;
  top: 0;
  left: 0;
  width: 800px; /* match #game width */
  height: 800px; /* match #game height */
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  font-size: 48px;
  font-family: sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  display: none;
}

#restart-btn {
  margin-top: 20px;
  padding: 10px 20px;
  font-size: 20px;
  cursor: pointer;
  border: none;
  background-color: #28a745;
  color: white;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

#restart-btn:hover {
  background-color: #218838;
}


#game::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('39631.jpg'); /* original image */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(3px); /* small blur */
  z-index: 0;
}

