body {
  font-family: Arial, sans-serif;
  text-align: center;
  background-color: #f0f0f0;
}


#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: #e0f7fa;
  position: relative; /* Para que no interfiera con el botón */
}

#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: 40px;
  height: 40px;
  background-image: url('falling-object.png');
  background-size: cover;
}

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

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

#lives {
  position: absolute;
  top: 0px;
  left: 20px;
  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;
}

