body {
  margin: 0;
  font-family: Arial, sans-serif;
  overflow: hidden;
  background-image: url(./img/fondo1.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
 
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  flex-direction: column;
}

#game-container {
  position: relative;
  width: 750px;
  height: 450px;
  margin: 20px auto;
  border: 10px solid #6d6d6d;
  background-clip: padding-box;

  background-size: cover;
  background-position: center;
   overflow: hidden;
  border-radius: 30px;
  background-image: url(./img/cueva1.png);
  box-sizing: border-box;


}
.personaje {
position: absolute;
  width: 65px;
  height: 135px;
  background-image: url(./img/lina.png); /* tu personaje */
  background-size: cover;
  background-position: center;
}

.moneda {
  position: absolute;
  width: 25px;
  height: 25px;
  background-image: url(./img/pearl.svg);
  background-size: cover;
  background-position: center;
}

#puntos {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-align: center;
  font-size: 20px;
  text-align: center;
  margin: 10px 0;
  text-decoration-color: #00445d;
}

#tiempo {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-align: center;
  font-size: 20px;
  text-align: center;
  margin: 10px 0;
  color:  rgb(189, 8, 8);
    
}
/* Estilo para el modal */
.modalP {
  display: none; /* oculto inicialmente */
  position: fixed;
  top: 0;
  left: 0;
  width: 70%;
  height: 70%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  max-width: 90%;
  padding: 25px 30px;
  background:  #005f99;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 95, 153, 0.6);
  color: #e0f7fa;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-align: center;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.5s ease;
}

.modalP img{
  height: 50%;
  width: 50%;
}
.modalP-content h2 ,h1{
  margin-bottom: 15px;
  font-size: 1.8rem;
  font-weight: 700;
  text-shadow: 0 2px 6px rgba(0, 0, 50, 0.7);
}

/* Botones estilo marina */
.modalP-content button {
  
  border: none;
  padding: 10px 22px;
  border-radius: 12px;
  color: #00445d;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 6px 12px rgba(0, 214, 255, 0.5);
  transition: all 0.3s ease;
  user-select: none;
  margin: 0 auto;
  min-width: 130px;
}

.modalP-content button:hover {
  background: linear-gradient(145deg, #00d6ff, #008bbf);
  color: #002f44;
  box-shadow: 0 8px 18px rgba(0, 214, 255, 0.8);
  transform: translateY(-2px);
}





.personaje-malo {
  position: absolute;
  width: 50px;
  height: 50px;
  background-image: url(./img/jellyfish.svg);
  background-size: cover;
  background-position: center;
}

.personaje-bueno {
  position: absolute;
  width: 50px;
  height: 50px;
  background-image: url(./img/bubble.svg);
  background-size: cover;
  background-position: center;
}

.texto-colision {
  position: absolute;
  color: rgb(253, 4, 4);
  font-size: 24px;
  font-weight: bold;
  animation: desaparecer 1s forwards;
}

.texto-colisionB {
  position: absolute;
  color: rgb(5, 231, 24);
  font-size: 24px;
  font-weight: bold;
  animation: desaparecer 1s forwards;
}

@keyframes desaparecer {
  0% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-20px); }
}

.musica-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.musica-btn:hover {
  background-color: #0056b3;
}
