/* DaTouWang URL: www.datouwang.com */
body {
  height: 100vh;
  margin: 0;
  align-items: center;
  justify-content: center;
  background: linear-gradient(cyan, #0041c2, #180029);
  overflow: hidden;
}

/* Contenedor del nombre */
/* Contenedor principal del nombre */
.nameGame {
  position: absolute;
  top: 71%;
  left: 48%;
  transform: translate(-50%, -50%);
  text-align: center;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.672);
}

/* Configuración del arco */
.arc {
  position: relative;
  display: inline-block;
  width: 20vw;
  height: 10vw;
}

/* Estilo para las letras de "JELLY" */
.jelly-container {
  position: relative;
  top: 0;
}

.jelly {
  position: absolute;
  font-size: 4vw;
  font-weight: bold;
  color: white;
  text-transform: uppercase;
  transform-origin: bottom center;
}

/* Estilo para las letras de "¡POP!" */
.pop-container {
  position: relative;
  top: 40px; /* Ajusta este valor para colocarlo debajo de JELLY */
}

.pop {
  position: absolute;
  font-size: 3vw;
  color: rgb(255, 255, 255);
  font-family:monospace;
  text-transform: uppercase;
  transform-origin: bottom center;
}

/* Posicionamiento de las letras a lo largo del arco */
.jelly:nth-child(1) { transform: rotate(-42deg); left: 27%; }
.jelly:nth-child(2) { transform: rotate(-19deg); left: 42%; }
.jelly:nth-child(3) { transform: rotate(0deg); left: 55%; }
.jelly:nth-child(4) { transform: rotate(25deg); left: 69%; }
.jelly:nth-child(5) { transform: rotate(50deg); left: 80%; }

.pop:nth-child(1) { transform: rotate(-42deg); left: 27%; }
.pop:nth-child(2) { transform: rotate(-19deg); left: 42%; }
.pop:nth-child(3) { transform: rotate(0deg); left: 55%; }
.pop:nth-child(4) { transform: rotate(25deg); left: 69%; }
.pop:nth-child(5) { transform: rotate(50deg); left: 80%; }



/* Estilo para el boton */
.btnPlay {
  position: absolute;
  bottom: 2rem; /* Posición en la parte inferior */
  left: 50%;
  transform: translateX(-50%);
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #00ffff, #0041c2);
  color: white;
  font-size: 2.0rem;
  font-weight: bold;
  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;
}

.btnPlay:hover {
  transform: translateX(-50%) scale(1.5);
  box-shadow: 0 0 1.5rem rgba(254, 254, 254, 0.5);
}

.btnPlay:active {
  transform: translateX(-50%) scale(1);
  box-shadow: 0 0 0.5rem rgba(0, 255, 255, 0.5);
}

/* Estilo para las burbujas */
.bubble {
  position: absolute;
  width: 14%; /* Ajusta el tamaño de las burbujas */
  opacity: 0.5; /* Reduce la opacidad */
}

/* Distribución horizontal */
/* Ejemplo de desenfoque para burbujas más alejadas */
.bubble:nth-child(7) {
  top: 6%;
  left: 70%;
  width: 18%;
  filter: blur(3px); /* Agregar desenfoque */
}

.bubble:nth-child(8) {
  top: 35%;
  left: 80%;
  width: 13%;
  filter: blur(2px); /* Menor desenfoque */
}

.bubble:nth-child(9) {
  top: 40%;
  left: 30%;
  width: 9%;
  filter: blur(4px); /* Mayor desenfoque */
}

.bubble:nth-child(10) {
  top: 60%;
  left: 15%;
  filter: blur(5px); /* Aún más desenfoque */
}
.bubble:nth-child(11) {
  top: 66%;
  left: 24%;
  width: 9%;
}
.bubble:nth-child(12) {
  top: 5%;
  left: 18%;
  width: 13%;
}

.bubble:nth-child(13) {
  top: 5%;
  left: 1%;
  width: 9%;
}
.bubble:nth-child(14) {
  top: 75%;
  left: 58%;
  width: 9%;
}
.bubble:nth-child(15) {
  top: 55%;
  left: 58%;
  width: 5%;
}
.bubble:nth-child(16) {
  top: 80%;
  right: -4%;
  width: 9%;
}
.bubble:nth-child(17) {
  top: 85%;
  left: 1%;
  width: 6%;
}
/* Estilo para las flores */
.flores {
  position: absolute;
  width: 15%; /* Ajusta el tamaño de las flores */
  opacity: 0.3; /* Reduce la opacidad */
  animation: moverFlores 10s linear infinite; /* Añade movimiento opcional */
  z-index: -1;
}

/* Distribución horizontal */
.flores:nth-child(2) {
  top: 10%;
  left: 45%;
  width: 20%;
}

.flores:nth-child(3) {
  top: 25%;
  left: 80%;
}

.flores:nth-child(4) {
  top: 30%;
  left: 10%;
  opacity: 0.5;
}
.flores:nth-child(5) {
  top: -5%;
  left: -6%;
}
.flores:nth-child(6) {
  top: -8%;
  right: -11%;
  width: 20%;
  opacity: 0.4;
}

@keyframes moverFlores {
  0% {
      transform: translateY(0);
  }
  50% {
      transform: translateY(-20px);
  }
  100% {
      transform: translateY(0);
  }
}

@keyframes swim {
  0% {
    transform: translateY(10em); /* Comienza desde abajo */
  }
  50% {
    transform: translateY(0); /* Sube hasta la mitad */
  }
  100% {
    transform: translateY(10em); /* Regresa hacia abajo */
  }
}

@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: 4vmin;
  position: relative;
  filter: drop-shadow(0 0 1em cyan);
  height: 14em;
  animation: swim 10s ease-in-out infinite;
  transform-origin: 50% 0;
  transform: translateY(10em); /* Posición inicial más baja */
  margin: 0 auto; /* Centrado horizontal */
  width: 200px;
}

.datouwang .arms {
  transform-origin: 50% 0;
  animation: squash 10s ease-in-out infinite;
}
.datouwang .arms .arm {
  position: absolute;
  width: 2em;
  height: 6em;
  top: 3em;
  border-radius: 50%;
  border-left: 1em solid #ccffff;
  border-bottom: 0.3em 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: 1.6em;
  height: 3em;
  top: 5.1em;
  left: -1.5em;
  border-radius: 50%;
  border-right: 0.6em solid #ccffff;
  border-top: 0.3em solid transparent;
  border-bottom: 0.3em solid transparent;
  transform: rotate(-10.4deg);
}
.datouwang .arms .arm:after {
  content: '';
  position: absolute;
  width: 1em;
  height: 2em;
  top: 7.5em;
  left: -0.05em;
  border-radius: 50%;
  border-top: 0.4em solid transparent;
  border-left: 0.4em solid #ccffff;
  transform: rotate(10deg);
}
.datouwang .arms .arm:nth-child(1) {
  left: 2.2em;
}
.datouwang .arms .arm:nth-child(2) {
  left: 3em;
}
.datouwang .arms .arm:nth-child(3) {
  left: 3.6em;
}
.datouwang .arms .arm:nth-child(4) {
  left: 2.3em;
}
.datouwang .arms .arm:nth-child(5) {
  left: 3.8em;
}
.datouwang .arms .arm:nth-child(6) {
  left: 4.5em;
}
.datouwang .arms .arm:nth-child(7) {
  left: 3em;
}
.datouwang .arms .arm:nth-child(8) {
  left: 4.5em;
}
.datouwang .tentacles {
  animation: squash 10s ease-in-out infinite;
}
.datouwang .tentacles .tentacle {
  position: absolute;
  top: 4em;
  width: 10em;
  height: 8em;
  border: 1px 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: 4em;
  height: 4em;
  background: white;
  position: absolute;
  left: 3em;
  top: 1em;
  border-radius: 50%;
  box-shadow: -1.5em 0.7em 0 -0.8em white, -1.7em -0.5em 0 -1.4em white, 1.8em -0.1em 0 -1.3em white, 1em 1em 0 -0.6em white, -0.4em 1.8em 0 -1.3em white, 1.4em -1em 0 -1.5em white, -1.3em 1.8em 0 -1.5em white;
  filter: drop-shadow(0 0 0.5em rgba(255, 255, 255, 0.5));
}
.datouwang .body {
  background: cyan;
  width: 10em;
  height: 5em;
  border-top-left-radius: 50% 100%;
  border-top-right-radius: 50% 100%;
  position: relative;
  opacity: 0.65;
  box-shadow: inset 0 0.2em 0 cyan, inset 0 0.4em 0 hsla(0, 0%, 100%, 0.6);
  transform-origin: 50% 50%;
  animation: squash 10s ease-in-out infinite;
}
.datouwang .body .base {
  position: absolute;
  width: 3em;
  height: 1.5em;
  background: cyan;
  bottom: -1.5em;
  border-bottom-left-radius: 50% 100%;
  border-bottom-right-radius: 50% 100%;
  box-shadow: 3.5em 0 0 cyan, 7em 0 0 cyan;
}
.datouwang .body .base:after {
  content: '';
  position: absolute;
  width: 3em;
  height: 1em;
  left: 1.75em;
  top: -0.25em;
  background: radial-gradient(circle at 50% 120%, rgba(0, 255, 255, 0) 0, rgba(0, 255, 255, 0) 25%, cyan 10%, cyan 100%);
}
.datouwang .body .base:before {
  content: '';
  position: absolute;
  width: 3em;
  height: 1em;
  left: 5.25em;
  top: -0.25em;
  background: radial-gradient(circle at 50% 120%, rgba(0, 255, 255, 0) 0, rgba(0, 255, 255, 0) 25%, cyan 10%, cyan 100%);
}
@keyframes eyes {
  40% {
    transform: translateY(-0.2em);
  }
  60% {
    transform: translateY(0.2em);
  }
}
.datouwang .eyes .eye {
  width: 2em;
  height: 2em;
  background: white;
  position: absolute;
  left: 2.85em;
  top: 3em;
  border-radius: 50%;
  overflow: hidden;
  transform: translateZ(0);
}
.datouwang .eyes .eye:before {
  content: '';
  position: absolute;
  width: 70%;
  height: 70%;
  background: darkblue;
  border-radius: 50%;
  left: 15%;
  top: 15%;
  animation: eyes 10s ease-in-out infinite;
}
.datouwang .eyes .eye:after {
  content: '';
  position: absolute;
  width: 25%;
  height: 25%;
  background: #fff;
  border-radius: 50%;
  left: 25%;
  top: 25%;
  box-shadow: 0.4em 0.4em 0 -0.12em white, 0.5em 0.05em 0 -0.15em white;
  animation: eyes 10s ease-in-out infinite;
  z-index: 1;
}
.datouwang .eyes .eye.right {
  left: 5.15em;
}
.datouwang .eyes .eyelid {
  width: 100%;
  height: 100%;
  background: cyan;
  z-index: 2;
  position: relative;
  transform: translateY(-3em);
  animation: blink 6s ease-in-out infinite;
}
@keyframes blink {
  97% {
    transform: translateY(-3em);
  }
  100% {
    transform: translateY(0em);
  }
}