
body {
  margin: 0; /* Elimina márgenes por defecto */
  padding: 0; /* Elimina relleno por defecto */
  height: 100vh; /* Asegura que ocupe toda la altura de la ventana */
  background-image: url('fondo.jpg'); /* Ruta de la imagen de fondo */
  background-size: cover; /* Escala la imagen para cubrir toda la pantalla */
  background-position: center; /* Centra la imagen */
  background-repeat: no-repeat; /* Evita que la imagen se repita */
}



#startGame {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px 40px;
  font-size: 20px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  z-index: 1000; /* Asegúrate de que esté por encima de otros elementos */
}

#startGame:hover {
  background-color: #218838;
}



#game-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: 800px;
  margin: 0 auto;
  border: 2px solid #333;
  background-color: #82e0aa;
}

#player {
  position: absolute;
  bottom: 10px;
  width: 60px;
  height: 60px;
  background-size: cover;
}

#player.right {
  background-image: url('player-right.png');
}

#player.left {
  background-image: url('player-left.png');
}
.object {
  position: absolute;
  width: 70px;
  height: 40px;
  background-image: url('falling-object.png');
  background-size: cover;
}

.special-object {
  position: absolute;
  width: 50px;
  height: 40px;
  background-image: url('special-object.png');
  background-size: cover;
}

#moving-sprite {
  position: absolute;
  top: 1;
  width: 170px;
  height: 90px;
  background-image: url('moving-sprite.png'); /* Imagen del sprite */
  background-size: cover;
  color: purple;
}

#lives {
  position: absolute;
  top: 0px;
  left: 200px;
  display: flex;
  gap: 5px;
}

.life {
  width: 40px;
  height: 40px;
}

#objecbreak {
  position: absolute;
  width: 40px;
  height: 40px;
  background-color: #4caf50;
  border-radius: 50%;
}

#score {
  margin-top: 10px;
  font-size: 20px;
}

