body {
  margin: 0;
  background: #222;
  overflow: hidden;
}

#bgImg {
  background-image: url("images/backgroundGame2.png");
  background-repeat: repeat-x;
  background-position: center center;
  background-size: auto 100%;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: block;
  z-index: -1;
}

#game {
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
}
#player {
  width: 150px;
  height: 100px;
  background-image: url("images/playersub1.svg");
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  left: 100px;
  top: 100px;
}

.projectile {
  width: 20px;
  height: 20px;
  background-image: url("images/projectilePlayer.svg");
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
}

.enemy {
  width: 150px;
  height: 100px;
  background-image: url("images/enemySub.svg");
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  transform: scaleX(1);
}

.enemy.charger {
  background-image: url("images/enemySubtnt.svg");
   transform: scaleX(-1);
}


.enemyProjectile {
  width: 20px;
  height: 20px;
  background-image: url("/gameInTheHunt/public/game/images/enemySubProjectile.svg");
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
}

#leaderboard {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);

  display: flex;
  gap: 48px;

  padding: 20px 32px;

  background: rgba(0, 0, 0, 0.6);
  border: 4px solid #fff;

  font-family: "Press Start 2P", monospace;
  font-size: 24px;
  color: #fff;

  image-rendering: pixelated;
  text-shadow:
    2px 2px 0 #000,
    -2px 2px 0 #000,
    2px -2px 0 #000,
    -2px -2px 0 #000;

  z-index: 999;
  pointer-events: none;
}

.lb-row {
  white-space: nowrap;
}

.lb-row span {
  margin-left: 12px;
  color: #ffeb3b;
}


.explosion {
  position: absolute;
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  z-index: 999;
}

#gameOverScreen {
  position: fixed;
  inset: 0;
  background: rgba(120, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
  font-family: "PixelFont", monospace;
}






