/* From Uiverse.io by Nawsome */
.wheel-and-hamster {
    --dur: 1.5s;
    position: relative;
    width: 12em;
    height: 12em;
    font-size: 14px;
}

.wheel,
.hamster,
.hamster div,
.spoke {
    position: absolute;
}

.wheel,
.spoke {
    border-radius: 50%;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.wheel {
    background: radial-gradient(100% 100% at center, hsla(0, 0%, 60%, 0) 47.8%, hsl(0, 0%, 60%) 48%);
    z-index: 0;
}

.hamster {
    animation: hamster var(--dur) ease-in-out infinite;
    top: 50%;
    left: calc(50% - 3.5em);
    width: 7em;
    height: 3.75em;
    transform: rotate(4deg) translate(-0.8em, 1.85em);
    transform-origin: 50% 0;
    z-index: 2;
}

.hamster__head {
    animation: hamsterHead var(--dur) ease-in-out infinite;
    background: hsl(30, 90%, 55%);
    border-radius: 70% 30% 0 100% / 40% 25% 25% 60%;
    box-shadow: 0 -0.25em 0 hsl(30, 90%, 80%) inset,
        0.75em -1.55em 0 hsl(30, 90%, 90%) inset;
    top: 0;
    left: -2em;
    width: 2.75em;
    height: 2.5em;
    transform-origin: 100% 50%;
}

.hamster__ear {
    animation: hamsterEar var(--dur) ease-in-out infinite;
    background: hsl(0, 90%, 85%);
    border-radius: 50%;
    box-shadow: -0.25em 0 hsl(30, 90%, 55%) inset;
    top: -0.25em;
    right: -0.25em;
    width: 0.75em;
    height: 0.75em;
    transform-origin: 50% 75%;
}

.hamster__eye {
    animation: hamsterEye var(--dur) linear infinite;
    background-color: hsl(0, 0%, 0%);
    border-radius: 50%;
    top: 0.375em;
    left: 1.25em;
    width: 0.5em;
    height: 0.5em;
}

.hamster__nose {
    background: hsl(0, 90%, 75%);
    border-radius: 35% 65% 85% 15% / 70% 50% 50% 30%;
    top: 0.75em;
    left: 0;
    width: 0.2em;
    height: 0.25em;
}

.hamster__body {
    animation: hamsterBody var(--dur) ease-in-out infinite;
    background: hsl(30, 90%, 90%);
    border-radius: 50% 30% 50% 30% / 15% 60% 40% 40%;
    box-shadow: 0.1em 0.75em 0 hsl(30, 90%, 55%) inset,
        0.15em -0.5em 0 hsl(30, 90%, 80%) inset;
    top: 0.25em;
    left: 2em;
    width: 4.5em;
    height: 3em;
    transform-origin: 17% 50%;
    transform-style: preserve-3d;
}

.hamster__limb--fr,
.hamster__limb--fl {
    clip-path: polygon(0 0, 100% 0, 70% 80%, 60% 100%, 0% 100%, 40% 80%);
    top: 2em;
    left: 0.5em;
    width: 1em;
    height: 1.5em;
    transform-origin: 50% 0;
}

.hamster__limb--fr {
    animation: hamsterFRLimb var(--dur) linear infinite;
    background: linear-gradient(hsl(30, 90%, 80%) 80%, hsl(0, 90%, 75%) 80%);
    transform: rotate(15deg) translateZ(-1px);
}

.hamster__limb--fl {
    animation: hamsterFLLimb var(--dur) linear infinite;
    background: linear-gradient(hsl(30, 90%, 90%) 80%, hsl(0, 90%, 85%) 80%);
    transform: rotate(15deg);
}

.hamster__limb--br,
.hamster__limb--bl {
    border-radius: 0.75em 0.75em 0 0;
    clip-path: polygon(0 0, 100% 0, 100% 30%, 70% 90%, 70% 100%, 30% 100%, 40% 90%, 0% 30%);
    top: 1em;
    left: 2.8em;
    width: 1.5em;
    height: 2.5em;
    transform-origin: 50% 30%;
}

.hamster__limb--br {
    animation: hamsterBRLimb var(--dur) linear infinite;
    background: linear-gradient(hsl(30, 90%, 80%) 90%, hsl(0, 90%, 75%) 90%);
    transform: rotate(-25deg) translateZ(-1px);
}

.hamster__limb--bl {
    animation: hamsterBLLimb var(--dur) linear infinite;
    background: linear-gradient(hsl(30, 90%, 90%) 90%, hsl(0, 90%, 85%) 90%);
    transform: rotate(-25deg);
}

.hamster__tail {
    animation: hamsterTail var(--dur) linear infinite;
    background: hsl(0, 90%, 85%);
    border-radius: 0.25em 50% 50% 0.25em;
    box-shadow: 0 -0.2em 0 hsl(0, 90%, 75%) inset;
    top: 1.5em;
    right: -0.5em;
    width: 1em;
    height: 0.5em;
    transform: rotate(30deg) translateZ(-1px);
    transform-origin: 0.25em 0.25em;
}

.spoke {
    animation: spoke var(--dur) linear infinite;
    background: radial-gradient(100% 100% at center, hsl(0, 0%, 60%) 4.8%, hsla(0, 0%, 60%, 0) 5%),
        linear-gradient(hsla(0, 0%, 55%, 0) 46.9%, hsl(0, 0%, 65%) 47% 52.9%, hsla(0, 0%, 65%, 0) 53%) 50% 50% / 99% 99% no-repeat;
}

/* Animations */
@keyframes hamster {

    from,
    to {
        transform: rotate(4deg) translate(-0.8em, 1.85em);
    }

    50% {
        transform: rotate(0) translate(-0.8em, 1.85em);
    }
}

@keyframes hamsterHead {

    from,
    25%,
    50%,
    75%,
    to {
        transform: rotate(0);
    }

    12.5%,
    37.5%,
    62.5%,
    87.5% {
        transform: rotate(8deg);
    }
}

@keyframes hamsterEye {

    from,
    90%,
    to {
        transform: scaleY(1);
    }

    95% {
        transform: scaleY(0);
    }
}

@keyframes hamsterEar {

    from,
    25%,
    50%,
    75%,
    to {
        transform: rotate(0);
    }

    12.5%,
    37.5%,
    62.5%,
    87.5% {
        transform: rotate(12deg);
    }
}

@keyframes hamsterBody {

    from,
    25%,
    50%,
    75%,
    to {
        transform: rotate(0);
    }

    12.5%,
    37.5%,
    62.5%,
    87.5% {
        transform: rotate(-2deg);
    }
}

@keyframes hamsterFRLimb {

    from,
    25%,
    50%,
    75%,
    to {
        transform: rotate(50deg) translateZ(-1px);
    }

    12.5%,
    37.5%,
    62.5%,
    87.5% {
        transform: rotate(-30deg) translateZ(-1px);
    }
}

@keyframes hamsterFLLimb {

    from,
    25%,
    50%,
    75%,
    to {
        transform: rotate(-30deg);
    }

    12.5%,
    37.5%,
    62.5%,
    87.5% {
        transform: rotate(50deg);
    }
}

@keyframes hamsterBRLimb {

    from,
    25%,
    50%,
    75%,
    to {
        transform: rotate(-60deg) translateZ(-1px);
    }

    12.5%,
    37.5%,
    62.5%,
    87.5% {
        transform: rotate(20deg) translateZ(-1px);
    }
}

@keyframes hamsterBLLimb {

    from,
    25%,
    50%,
    75%,
    to {
        transform: rotate(20deg);
    }

    12.5%,
    37.5%,
    62.5%,
    87.5% {
        transform: rotate(-60deg);
    }
}

@keyframes hamsterTail {

    from,
    25%,
    50%,
    75%,
    to {
        transform: rotate(30deg) translateZ(-1px);
    }

    12.5%,
    37.5%,
    62.5%,
    87.5% {
        transform: rotate(10deg) translateZ(-1px);
    }
}

@keyframes spoke {
    from {
        transform: rotate(0);
    }

    to {
        transform: rotate(-1turn);
    }
}

.swal-height {
    height: 100%;
}


.box2 {
    position: relative;
    padding: 20px;
    margin: 20px;
    background: white;
    border-radius: 0.25rem;
    min-height: 10vh;
    /* Ajuste para redondear bordes, como .rounded de Bootstrap */
}

.box2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
}


.bebedero {
    display: flow;
    flex-direction: column;
    justify-content: left;
    position: absolute;
    /* Posicionamiento absoluto */
    top: -25%;
    /* Distancia desde la parte superior */
    left: 0px;
    /* Distancia desde la parte izquierda */
    transform: scale(0.5);
    /* Escala al 50% */
    z-index: 0;
    /* Asegura que esté por encima de otros elementos si es necesario */
}

.botella {
    width: 50px;
    /* Tamaño reducido */
    height: 150px;
    /* Mantiene la forma de botella */
    background: linear-gradient(to bottom, #e0e0e0, #ffffff);
    border-radius: 25px;
    border: 2px solid #aaa;
    position: relative;
    overflow: hidden;
}

.agua {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, #4cafeb, #82eefd);
    border-radius: 0 0 25px 25px;
}

.boquilla {
    width: 10px;
    height: 40px;
    background: #aaa;
    border-radius: 5px;
    margin-top: -5px;
    position: relative;
}

.gota {
    width: 10px;
    height: 10px;
    background: #4cafeb;
    border-radius: 50%;
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    animation: caer 1.5s infinite;
}

@keyframes caer {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    80% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(30px);
    }
}

.beach-ball {
    width: 2.5em;
    height: 2.5em;
    background: radial-gradient(circle at 30% 30%, #ffcc00 20%, #ff5733 20% 40%, #33cfff 40% 60%, rgb(30, 23, 124) 60%);
    border-radius: 50%;
    position: absolute;
    top: 40%;
    left: 45%;
    animation: bounce-and-rotate 1.5s ease-in-out infinite;
    z-index: 1;
}



@keyframes bounce-and-rotate {

    0% {
        top: 78%;
        transform: rotate(0deg);
    }

    50% {
        top: 0%;
        transform: rotate(180deg);

    }

    100% {
        top: 78%;
        transform: rotate(360deg);
    }

}


/* ESTILOS ESPECÍFICOS PARA EL ÁRBOL */
.tree-container {
    width: 300px;
    /* Ancho fijo más pequeño */
    height: 300px;
    /* Alto fijo más pequeño */
    position: relative;
    overflow: hidden;
    background: #111111;
    border-radius: 10px;
    margin: 0 auto;
}

.tree-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}


.main-content {
    text-align: center;
    max-width: 600px;
    padding: 40px 20px;
    z-index: 1;
}

.main-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #bbb;
    margin-bottom: 30px;
}

.show-tree-btn {
    background: linear-gradient(135deg, #00b4db 0%, #0083b0 100%);
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    color: white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 180, 219, 0.3);
}

.show-tree-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 180, 219, 0.4);
}

.show-tree-btn:active {
    transform: translateY(-1px);
}

/* fireworks */

/* contenedor full-screen para posicionar partículas */
.pyro {
  position: block;
  top: 0;
  left: 0;
  width: 300px;
  height: 300px;
  pointer-events: none;
}

/* las dos capas que generan las partículas */
.pyro > .before,
.pyro > .after {
  position: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  /* estado inicial: todos "0 0 #fff" (puntos blancos en el origen) */
  box-shadow:
    0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff,
    0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff,
    0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff,
    0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff,
    0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff,
    0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff,
    0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff, 0 0 #fff;
  /* animaciones: bang (explosión), gravity (caída/atenuación), position (mover el origen) */
  animation: 1s bang ease-out infinite backwards,
             1s gravity ease-in infinite backwards,
             5s position linear infinite backwards;
  -webkit-animation: 1s bang ease-out infinite backwards,
                    1s gravity ease-in infinite backwards,
                    5s position linear infinite backwards;
}

/* la "after" corre ligeramente distinto (delays y duraciones diferentes) */
.pyro > .after {
  animation-delay: 1.25s, 1.25s, 1.25s;
  -webkit-animation-delay: 1.25s, 1.25s, 1.25s;

  animation-duration: 1.25s, 1.25s, 6.25s;
  -webkit-animation-duration: 1.25s, 1.25s, 6.25s;
}

/* keyframes: bang -> establece los box-shadows finales (las partículas) */
/* (estos valores fueron generados aleatoriamente al compilar) */
@keyframes bang {
  to {
    box-shadow:
      68px -38px hsl(338, 100%, 50%),
      -185px -304px hsl(87, 100%, 50%),
      -53px -50px hsl(182, 100%, 50%),
      118px -30px hsl(40, 100%, 50%),
      -66px -138px hsl(357, 100%, 50%),
      43px -49px hsl(33, 100%, 50%),
      -21px -116px hsl(148, 100%, 50%),
      136px -124px hsl(113, 100%, 50%),
      -170px -157px hsl(113, 100%, 50%),
      175px -9px hsl(134, 100%, 50%),
      -12px -312px hsl(35, 100%, 50%),
      -206px -121px hsl(210, 100%, 50%),
      80px -219px hsl(137, 100%, 50%),
      20px -200px hsl(43, 100%, 50%),
      -34px -93px hsl(253, 100%, 50%),
      -136px -215px hsl(181, 100%, 50%),
      153px -84px hsl(119, 100%, 50%),
      -150px -266px hsl(49, 100%, 50%),
      -40px -231px hsl(180, 100%, 50%),
      -89px -260px hsl(235, 100%, 50%),
      181px -182px hsl(101, 100%, 50%),
      196px -312px hsl(123, 100%, 50%),
      -43px -185px hsl(79, 100%, 50%),
      66px -128px hsl(356, 100%, 50%),
      90px -108px hsl(316, 100%, 50%),
      -80px -289px hsl(121, 100%, 50%),
      219px -220px hsl(160, 100%, 50%),
      -165px -153px hsl(191, 100%, 50%),
      -14px -326px hsl(348, 100%, 50%),
      -83px -71px hsl(117, 100%, 50%),
      -85px -190px hsl(297, 100%, 50%),
      114px -183px hsl(84, 100%, 50%),
      -220px -155px hsl(205, 100%, 50%),
      -41px -113px hsl(40, 100%, 50%),
      -243px -247px hsl(185, 100%, 50%),
      165px -70px hsl(113, 100%, 50%),
      -4px -87px hsl(266, 100%, 50%),
      213px -69px hsl(251, 100%, 50%),
      -134px -86px hsl(55, 100%, 50%),
      39px -109px hsl(60, 100%, 50%),
      118px -133px hsl(210, 100%, 50%),
      173px -345px hsl(260, 100%, 50%),
      -6px 78px hsl(341, 100%, 50%);
  }
}

/* gravity: baja y desvanece las partículas */
@keyframes gravity {
  to {
    transform: translateY(200px);
    -webkit-transform: translateY(200px);
    opacity: 0;
  }
}

/* position: mueve el origen (la "bocanada" de la explosión) en pantalla */
@keyframes position {
  0%, 19.9% {
    margin-top: 10%;
    margin-left: 40%;
  }
  20%, 39.9% {
    margin-top: 40%;
    margin-left: 30%;
  }
  40%, 59.9% {
    margin-top: 20%;
    margin-left: 70%;
  }
  60%, 79.9% {
    margin-top: 30%;
    margin-left: 20%;
  }
  80%, 99.9% {
    margin-top: 30%;
    margin-left: 80%;
  }
}

/* vendors extra (opcional para compatibilidad antigua) */
@-webkit-keyframes bang { 
  /* duplicamos el mismo contenido para WebKit si quieres máxima compatibilidad */
  to {
    box-shadow:
      68px -38px hsl(338, 100%, 50%),
      -185px -304px hsl(87, 100%, 50%),
      /* ... (igual que arriba) ... */
      -6px 78px hsl(341, 100%, 50%);
  }
}