@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');
body {
	background: #00b4ff;
 	background-image: url("../Imagenes/fondo.jpg");
  	background-size:cover; /* Escalar la imagen para cubrir toda la pantalla */
  	background-position: center; /* Centrar la imagen */
	color: #333;
	height: 100vh;
	margin: 0;
	padding: 0;
	overflow-x: hidden;
}

#background-wrap {
    bottom: 0;
	left: 0;
	position: fixed;
	right: 0;
	top: 0;
	z-index: 0;
}

/* KEYFRAMES */



/* ANIMATIONS */

.x1 {
    -webkit-animation: animateBubble 25s linear infinite, sideWays 2s ease-in-out infinite alternate;
	-moz-animation: animateBubble 25s linear infinite, sideWays 2s ease-in-out infinite alternate;
	animation: animateBubble 25s linear infinite, sideWays 2s ease-in-out infinite alternate;
	
	left: -5%;
	top: 5%;
	
	-webkit-transform: scale(0.6);
	-moz-transform: scale(0.6);
	transform: scale(0.6);
}

.x2 {
    -webkit-animation: animateBubble 20s linear infinite, sideWays 4s ease-in-out infinite alternate;
	-moz-animation: animateBubble 20s linear infinite, sideWays 4s ease-in-out infinite alternate;
	animation: animateBubble 20s linear infinite, sideWays 4s ease-in-out infinite alternate;
	
	left: 5%;
	top: 80%;
	
	-webkit-transform: scale(0.4);
	-moz-transform: scale(0.4);
	transform: scale(0.4);
}

.x3 {
    -webkit-animation: animateBubble 28s linear infinite, sideWays 2s ease-in-out infinite alternate;
	-moz-animation: animateBubble 28s linear infinite, sideWays 2s ease-in-out infinite alternate;
	animation: animateBubble 28s linear infinite, sideWays 2s ease-in-out infinite alternate;
	
	left: 10%;
	top: 40%;
	
	-webkit-transform: scale(0.7);
	-moz-transform: scale(0.7);
	transform: scale(0.7);
}

.x4 {
    -webkit-animation: animateBubble 22s linear infinite, sideWays 3s ease-in-out infinite alternate;
	-moz-animation: animateBubble 22s linear infinite, sideWays 3s ease-in-out infinite alternate;
	animation: animateBubble 22s linear infinite, sideWays 3s ease-in-out infinite alternate;
	
	left: 20%;
	top: 0;
	
	-webkit-transform: scale(0.3);
	-moz-transform: scale(0.3);
	transform: scale(0.3);
}

.x5 {
    -webkit-animation: animateBubble 29s linear infinite, sideWays 4s ease-in-out infinite alternate;
	-moz-animation: animateBubble 29s linear infinite, sideWays 4s ease-in-out infinite alternate;
	animation: animateBubble 29s linear infinite, sideWays 4s ease-in-out infinite alternate;
	
	left: 30%;
	top: 50%;
	
	-webkit-transform: scale(0.5);
	-moz-transform: scale(0.5);
	transform: scale(0.5);
}

.x6 {
    -webkit-animation: animateBubble 21s linear infinite, sideWays 2s ease-in-out infinite alternate;
	-moz-animation: animateBubble 21s linear infinite, sideWays 2s ease-in-out infinite alternate;
	animation: animateBubble 21s linear infinite, sideWays 2s ease-in-out infinite alternate;
	
	left: 50%;
	top: 0;
	
	-webkit-transform: scale(0.8);
	-moz-transform: scale(0.8);
	transform: scale(0.8);
}

.x7 {
    -webkit-animation: animateBubble 20s linear infinite, sideWays 2s ease-in-out infinite alternate;
	-moz-animation: animateBubble 20s linear infinite, sideWays 2s ease-in-out infinite alternate;
	animation: animateBubble 20s linear infinite, sideWays 2s ease-in-out infinite alternate;
	
	left: 65%;
	top: 70%;
	
	-webkit-transform: scale(0.4);
	-moz-transform: scale(0.4);
	transform: scale(0.4);
}

.x8 {
    -webkit-animation: animateBubble 22s linear infinite, sideWays 3s ease-in-out infinite alternate;
	-moz-animation: animateBubble 22s linear infinite, sideWays 3s ease-in-out infinite alternate;
	animation: animateBubble 22s linear infinite, sideWays 3s ease-in-out infinite alternate;
	
	left: 80%;
	top: 10%;
	
	-webkit-transform: scale(0.3);
	-moz-transform: scale(0.3);
	transform: scale(0.3);
}

.x9 {
    -webkit-animation: animateBubble 29s linear infinite, sideWays 4s ease-in-out infinite alternate;
	-moz-animation: animateBubble 29s linear infinite, sideWays 4s ease-in-out infinite alternate;
	animation: animateBubble 29s linear infinite, sideWays 4s ease-in-out infinite alternate;
	
	left: 90%;
	top: 50%;
	
	-webkit-transform: scale(0.6);
	-moz-transform: scale(0.6);
	transform: scale(0.6);
}

.x10 {
    -webkit-animation: animateBubble 26s linear infinite, sideWays 2s ease-in-out infinite alternate;
	-moz-animation: animateBubble 26s linear infinite, sideWays 2s ease-in-out infinite alternate;
	animation: animateBubble 26s linear infinite, sideWays 2s ease-in-out infinite alternate;
	
	left: 80%;
	top: 80%;
	
	-webkit-transform: scale(0.3);
	-moz-transform: scale(0.3);
	transform: scale(0.3);
}

/* OBJECTS */

/* Nuevos estilos para la animación de iridiscencia */
.bubble {
  border-radius: 50%;
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2), inset 0px 10px 30px 5px rgba(255, 255, 255, 1);
  height: 200px;
  position: absolute;
  width: 200px;
  overflow: hidden;
}

.bubble:before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 300%;
  height: 300%;
  background: linear-gradient(
      135deg,
      rgba(255, 0, 255, 0.259) 0%,
      rgba(0, 255, 255, 0.162) 25%,
      rgba(255, 255, 0, 0.224) 50%,
      rgba(255, 0, 255, 0.301) 75%,
      rgba(0, 255, 255, 0.266) 100%
  );
  background-size: 200% 200%;
  border-radius: 50%;
  opacity: 0.6;
  animation: spinIridescence 2s linear infinite;
  clip-path: circle(50% at 50% 50%);
}

@keyframes spinIridescence {
  0% {
      transform: rotate(0deg);
  }
  100% {
      transform: rotate(360deg);
  }
}

.bubble:after {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  box-shadow: inset 0 20px 30px rgba(255, 255, 255, 0.3);
  content: "";
  height: 180px;
  left: 10px;
  position: absolute;
  width: 180px;
}

/* Contenedor del tiempo y puntaje */
#scoreboard {
  position: absolute;
  display: flex;
  justify-content: center;
  bottom: 0px;
  height: 60px;
  width: 100%;
  align-items: center;
  background: linear-gradient(to top, navy, transparent); /* Degradado de azul marino a transparente */
}

#scoreboard p{
  font-size: 24px;
  font-weight: bold;
  color: #f3f3f3;
  letter-spacing: 2px;
  font-family: "Poppins", sans-serif;
  margin-left: 20px;
  margin-right: 20px;
  animation: neon1 .08s ease-in-out infinite alternate;
}

@keyframes neon1 {
  from {
    text-shadow:
    0 0 6px rgba(202,228,225,0.92),
    0 0 30px rgba(202,228,225,0.34),
    0 0 12px rgba(17, 94, 176, 0.475),
    0 0 21px rgba(30,132,242,0.92),
    0 0 34px rgba(30,132,242,0.78),
    0 0 54px rgba(35, 111, 193, 0.92);
  }
  to {
    text-shadow:
    0 0 6px rgba(202,228,225,0.98),
    0 0 30px rgba(202,228,225,0.42),
    0 0 12px rgba(30,132,242,0.58),
    0 0 22px rgba(30,132,242,0.84),
    0 0 38px rgba(30,132,242,0.88),
    0 0 60px rgba(30,132,242,1);
  }
}

/* Estilo para el mensaje de "Perdiste!" */
#game-over {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.717);
    color: white;
    margin-top: 0%;
    text-align: center;
    z-index: 100;
    width: 100%;
    height: 100%;
}

#game-over button {
  position: absolute;
  bottom: 2rem; /* Posición en la parte inferior */
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #00ffff, #0041c2);
  color: white;
  font-family:Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  font-size: 26px;
  border: none;
  border-radius: 2rem;
  box-shadow: 0 0 1rem rgba(0, 255, 255, 0.5);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
  text-decoration: none;
  width: 140px;
  height: 40px;
}

#game-over button:hover {
  transform: translateX(-50%) scale(1.5);
  box-shadow: 0 0 1.5rem rgba(254, 254, 254, 0.5);
}

#game-over button:active {
  transform: translateX(-50%) scale(1);
  box-shadow: 0 0 0.5rem rgba(0, 255, 255, 0.5);
}

.block {
	position: relative;
	margin: 80px auto 0;
	width: 300px;
	height: 370px;
	background: black;
  border-radius: 13px;
  padding: 10px;
}

.block:before, .block:after {
	content: '';
	position: absolute;
	left: -2px;
	top: -2px;
	background: linear-gradient(45deg, #00fbf7, #0000ff, #00ffbb,#3c00ff, 
		#0000ff);
	background-size: 400%;
	width: calc(100% + 4px);
	height: calc(100% + 4px);
	z-index: -1;
	animation: steam 20s linear infinite;
  border-radius: 13px;
}

@keyframes steam {
	0% {
		background-position: 0 0;
	}
	50% {
		background-position: 400% 0;
	}
	100% {
		background-position: 0 0;
	}
}

.block:after {
	filter: blur(50px);
  border-radius: 13px;
}

.seccionTitle{
  font-size: 30px;
  font-weight: bold;
  color: #77f1ff;
  letter-spacing: 2px;
  font-family: "Poppins", sans-serif;
  margin-top: 20px;
  animation: neon .08s ease-in-out infinite alternate;
}

@keyframes neon {
  from {
    text-shadow:
    0 0 6px rgba(202,228,225,0.92),
    0 0 30px rgba(202,228,225,0.34),
    0 0 12px rgba(30,132,242,0.52),
    0 0 21px rgba(30,132,242,0.92),
    0 0 34px rgba(30,132,242,0.78),
    0 0 54px rgba(30,132,242,0.92);
  }
  to {
    text-shadow:
    0 0 6px rgba(202,228,225,0.98),
    0 0 30px rgba(202,228,225,0.42),
    0 0 12px rgba(30,132,242,0.58),
    0 0 22px rgba(30,132,242,0.84),
    0 0 38px rgba(30,132,242,0.88),
    0 0 60px rgba(30,132,242,1);
  }
}


.subtitle{
  font-size: 22px;
  font-weight: bold;
  color: #ffffff;
  letter-spacing: 2px;
  font-family: "Poppins", sans-serif;
  margin-top: 5px;
  margin-bottom: 5px;
}

.subtitle::after{
  content:" ";
  width: 200px;
  height: 2px;
  display: block;
  margin: 6px auto 0;
  border-radius: 13px;
  background: rgb(32, 216, 216);
}

#final-score, #final-time{
  font-size: 24px;
  font-weight: bolder;
  color: #ffffff;
  letter-spacing: 2px;
  font-family: "Poppins", sans-serif;
  margin-top: 5px;
  animation: neon3 .08s ease-in-out infinite alternate;
}

@keyframes neon3 {
  from {
    text-shadow:
    0 0 6px rgba(202,228,225,0.92),
    0 0 30px rgba(202,228,225,0.34),
    0 0 12px rgba(17, 94, 176, 0.475),
    0 0 21px rgba(35, 236, 243, 0.92),
    0 0 34px rgba(0, 255, 247, 0.78),
    0 0 54px rgba(8, 34, 61, 0.92);
  }
  to {
    text-shadow:
    0 0 6px rgba(202,228,225,0.98),
    0 0 30px rgba(202,228,225,0.42),
    0 0 12px rgba(30,132,242,0.58),
    0 0 22px rgba(30,132,242,0.84),
    0 0 38px rgba(30, 242, 238, 0.88),
    0 0 60px rgb(11, 51, 95);
  }
}





@keyframes swim {
    10% {
      transform: translateY(15em);
    }
    30% {
      transform: translateY(-15em);
    }
    50% {
        transform: translateY(15em);
      }
    70% {
    transform: translateY(-15em);
    }
    90% {
        transform: translateY(15em);
        }
    100% {
      transform: translateY(1.5em);
    }
  }
  @keyframes squash {
    20% {
      transform: scaleY(0.9);
    }
    40% {
      transform: scaleY(1.1);
    }
    60% {
      transform: scaleY(0.9);
    }
  }
  @keyframes wave {
    30% {
      transform: scaleX(var(--scaleX)) scaleY(var(--scaleY)) rotate(calc(var(--rotate) * -1deg));
    }
  }
  .datouwang {
    font-size: 2vmin;
    position: absolute; /* Cambia a absolute para posicionamiento */
    top: 50%;
    left: 90%;
    transform: translate(-50%, -50%); /* Centra exactamente en el medio */
    filter: drop-shadow(0 0 0.5em cyan);
    height: 7em;
    animation: swim 10s ease-in-out infinite;
    transform-origin: 50% 0;
    transform: translateY(1.5em); /* Esto solo moverá el elemento en el eje Y */
    width: 100px;
  }
  
  .datouwang .arms {
    transform-origin: 50% 0;
    animation: squash 10s ease-in-out infinite;
  }
  .datouwang .arms .arm {
    position: absolute;
    width: 1em;
    height: 3em;
    top: 1.5em;
    border-radius: 50%;
    border-left: 0.5em solid #ccffff;
    border-bottom: 0.15em solid transparent;
    transform-origin: 50% 0;
    opacity: 0.4;
    transform: scaleX(var(--scaleX)) scaleY(var(--scaleY)) rotate(calc(var(--rotate) * 1deg));
    animation: wave 10s ease-in-out infinite;
  }
  .datouwang .arms .arm:before {
    content: '';
    position: absolute;
    width: 0.8em;
    height: 1.5em;
    top: 2.55em;
    left: -0.75em;
    border-radius: 50%;
    border-right: 0.3em solid #ccffff;
    border-top: 0.15em solid transparent;
    border-bottom: 0.15em solid transparent;
    transform: rotate(-10.4deg);
  }
  .datouwang .arms .arm:after {
    content: '';
    position: absolute;
    width: 0.5em;
    height: 1em;
    top: 3.75em;
    left: -0.025em;
    border-radius: 50%;
    border-top: 0.2em solid transparent;
    border-left: 0.2em solid #ccffff;
    transform: rotate(10deg);
  }
  .datouwang .arms .arm:nth-child(1) {
    left: 1.1em;
  }
  .datouwang .arms .arm:nth-child(2) {
    left: 1.5em;
  }
  .datouwang .arms .arm:nth-child(3) {
    left: 1.8em;
  }
  .datouwang .arms .arm:nth-child(4) {
    left: 1.15em;
  }
  .datouwang .arms .arm:nth-child(5) {
    left: 1.9em;
  }
  .datouwang .arms .arm:nth-child(6) {
    left: 2.25em;
  }
  .datouwang .arms .arm:nth-child(7) {
    left: 1.5em;
  }
  .datouwang .arms .arm:nth-child(8) {
    left: 2.25em;
  }
  .datouwang .tentacles {
    animation: squash 10s ease-in-out infinite;
  }
  .datouwang .tentacles .tentacle {
    position: absolute;
    top: 2em;
    width: 5em;
    height: 4em;
    border: 0.5px solid rgba(0, 255, 255, 0.6);
    border-bottom: none;
    border-top: none;
    border-bottom-left-radius: 10% 50%;
    border-bottom-right-radius: 10% 50%;
    border-top-left-radius: 20% 50%;
    border-top-right-radius: 20% 50%;
  }
  .datouwang .tentacles .tentacle:nth-child(2) {
    transform: scaleX(0.8);
  }
  .datouwang .tentacles .tentacle:nth-child(3) {
    transform: scaleX(0.6);
  }
  .datouwang .tentacles .tentacle:nth-child(4) {
    transform: scaleX(0.4);
  }
  .datouwang .tentacles .tentacle:nth-child(5) {
    transform: scaleX(0.2);
  }
  .datouwang .guts {
    width: 2em;
    height: 2em;
    background: white;
    position: absolute;
    left: 1.5em;
    top: 0.5em;
    border-radius: 50%;
    box-shadow: -0.75em 0.35em 0 -0.4em white, -0.85em -0.25em 0 -0.7em white, 0.9em -0.05em 0 -0.65em white, 0.5em 0.5em 0 -0.3em white, -0.2em 0.9em 0 -0.65em white, 0.7em -0.5em 0 -0.75em white, -0.65em 0.9em 0 -0.75em white;
    filter: drop-shadow(0 0 0.25em rgba(255, 255, 255, 0.5));
  }
  .datouwang .body {
    background: cyan;
    width: 5em;
    height: 2.5em;
    border-top-left-radius: 50% 100%;
    border-top-right-radius: 50% 100%;
    position: relative;
    opacity: 0.65;
    box-shadow: inset 0 0.1em 0 cyan, inset 0 0.2em 0 hsla(0, 0%, 100%, 0.6);
    transform-origin: 50% 50%;
    animation: squash 10s ease-in-out infinite;
  }
  .datouwang .body .base {
    position: absolute;
    width: 1.5em;
    height: 0.75em;
    background: cyan;
    bottom: -0.75em;
    border-bottom-left-radius: 50% 100%;
    border-bottom-right-radius: 50% 100%;
    box-shadow: 1.75em 0 0 cyan, 3.5em 0 0 cyan;
  }
  .datouwang .body .base:after {
    content: '';
    position: absolute;
    width: 1.5em;
    height: 0.5em;
    left: 0.875em;
    top: -0.125em;
    background: radial-gradient(circle at 50% 120%, rgba(0, 255, 255, 0) 0, rgba(0, 255, 255, 0) 12.5%, cyan 10%, cyan 100%);
  }
  .datouwang .body .base:before {
    content: '';
    position: absolute;
    width: 1.5em;
    height: 0.5em;
    left: 2.625em;
    top: -0.125em;
    background: radial-gradient(circle at 50% 120%, rgba(0, 255, 255, 0) 0, rgba(0, 255, 255, 0) 12.5%, cyan 10%, cyan 100%);
  }
  @keyframes eyes {
    40% {
      transform: translateY(-0.1em);
    }
    60% {
      transform: translateY(0.1em);
    }
  }
  .datouwang .eyes .eye {
    width: 1em;
    height: 1em;
    background: white;
    position: absolute;
    left: 1.425em;
    top: 1.5em;
    border-radius: 50%;
    overflow: hidden;
    transform: translateZ(0);
  }
  .datouwang .eyes .eye:before {
    content: '';
    position: absolute;
    width: 35%;
    height: 35%;
    background: darkblue;
    border-radius: 50%;
    left: 7.5%;
    top: 7.5%;
    animation: eyes 10s ease-in-out infinite;
  }
  .datouwang .eyes .eye:after {
    content: '';
    position: absolute;
    width: 12.5%;
    height: 12.5%;
    background: #fff;
    border-radius: 50%;
    left: 12.5%;
    top: 12.5%;
    box-shadow: 0.2em 0.2em 0 -0.06em white, 0.25em 0.025em 0 -0.075em white;
    animation: eyes 10s ease-in-out infinite;
    z-index: 1;
  }
  .datouwang .eyes .eye.right {
    left: 2.575em;
  }
  .datouwang .eyes .eyelid {
    width: 100%;
    height: 100%;
    background: cyan;
    z-index: 2;
    position: relative;
    transform: translateY(-1.5em);
    animation: blink 6s ease-in-out infinite;
  }
  @keyframes blink {
    97% {
      transform: translateY(-1.5em);
    }
    100% {
      transform: translateY(0em);
    }
  }

  