html,
body {
  overflow: hidden !important;
  height: 100dvh;
  overscroll-behavior: none;
}

body.fast {
  background-image: url("../01-img/background-02.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  perspective: 1000px;
  overflow: hidden;
  font-family: "Outfit", sans-serif;
  min-height: 100dvh;
}

/* =========================
   LOGO
========================= */

.logo-ruben {
  width: 180px;

  position: absolute;

  top: 2%;

  left: 50%;

  transform: translateX(-50%);
}

/* =========================
   ESCENA CENTRADA
========================= */

.scene {
  width: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: translateY(-60px);
}

.container {
  height: 200px;
  width: 200px;
  position: relative;
}

.pokeball {
  height: 200px;
  width: 200px;
  position: relative;

  padding: 0;
  margin: 0;

  list-style-type: none;

  transform: rotateX(90deg) rotateZ(90deg) rotateY(260deg);

  transform-style: preserve-3d;
}

.pokeball li {
  position: absolute;

  height: 170px;
  width: 170px;

  box-sizing: border-box;

  border-radius: 50%;

  transform-style: preserve-3d;

  background-color: crimson;

  z-index: -2;
}

/* ROTACIONES */

.pokeball li:nth-child(1) {
  transform: rotateY(10deg);
}
.pokeball li:nth-child(2) {
  transform: rotateY(20deg);
}
.pokeball li:nth-child(3) {
  transform: rotateY(30deg);
}
.pokeball li:nth-child(4) {
  transform: rotateY(40deg);
}
.pokeball li:nth-child(5) {
  transform: rotateY(50deg);
}
.pokeball li:nth-child(6) {
  transform: rotateY(60deg);
}
.pokeball li:nth-child(7) {
  transform: rotateY(70deg);
}
.pokeball li:nth-child(8) {
  transform: rotateY(80deg);
}
.pokeball li:nth-child(9) {
  transform: rotateY(90deg);
}
.pokeball li:nth-child(10) {
  transform: rotateY(100deg);
}
.pokeball li:nth-child(11) {
  transform: rotateY(110deg);
}
.pokeball li:nth-child(12) {
  transform: rotateY(120deg);
}
.pokeball li:nth-child(13) {
  transform: rotateY(130deg);
}
.pokeball li:nth-child(14) {
  transform: rotateY(140deg);
}
.pokeball li:nth-child(15) {
  transform: rotateY(150deg);
}
.pokeball li:nth-child(16) {
  transform: rotateY(160deg);
}
.pokeball li:nth-child(17) {
  transform: rotateY(170deg);
}
.pokeball li:nth-child(18) {
  transform: rotateY(180deg);
}
.pokeball li:nth-child(19) {
  transform: rotateY(190deg);
}
.pokeball li:nth-child(20) {
  transform: rotateY(200deg);
}
.pokeball li:nth-child(21) {
  transform: rotateY(210deg);
}
.pokeball li:nth-child(22) {
  transform: rotateY(220deg);
}
.pokeball li:nth-child(23) {
  transform: rotateY(230deg);
}
.pokeball li:nth-child(24) {
  transform: rotateY(240deg);
}
.pokeball li:nth-child(25) {
  transform: rotateY(250deg);
}
.pokeball li:nth-child(26) {
  transform: rotateY(260deg);
}
.pokeball li:nth-child(27) {
  transform: rotateY(270deg);
}
.pokeball li:nth-child(28) {
  transform: rotateY(280deg);
}
.pokeball li:nth-child(29) {
  transform: rotateY(290deg);
}
.pokeball li:nth-child(30) {
  transform: rotateY(300deg);
}
.pokeball li:nth-child(31) {
  transform: rotateY(310deg);
}
.pokeball li:nth-child(32) {
  transform: rotateY(320deg);
}
.pokeball li:nth-child(33) {
  transform: rotateY(330deg);
}
.pokeball li:nth-child(34) {
  transform: rotateY(340deg);
}
.pokeball li:nth-child(35) {
  transform: rotateY(350deg);
}
.pokeball li:nth-child(36) {
  transform: rotateY(360deg);
}

.pokeball::after {
  position: absolute;

  content: "";

  height: 30px;
  width: 30px;

  z-index: 50;

  transform: translateZ(40px) translateY(-180%) translateX(-30%) rotateX(180deg) rotateY(60deg);

  top: 50%;
  bottom: 50%;

  background-color: #000;

  border-radius: 20px;

  border: 5px solid white;
}

.pokeball::before {
  position: absolute;

  content: "";

  height: 30px;
  width: 30px;

  z-index: 20;

  transform: translateZ(40px) translateY(30%) translateX(-30%) rotateX(180deg) rotateY(60deg);

  top: 50%;
  bottom: 50%;

  background-color: #000;

  border-radius: 20px;

  border: 5px solid white;
}

@-webkit-keyframes rotate {
  0% {
    transform: rotateX(90deg) rotateZ(90deg) rotateY(260deg);
  }

  80% {
    transform: rotateX(90deg) rotateZ(90deg) rotateY(160deg);
  }

  100% {
    transform: rotateX(90deg) rotateZ(90deg) rotateY(260deg);
  }
}

@keyframes rotate {
  0% {
    transform: rotateX(90deg) rotateZ(90deg) rotateY(260deg);
  }

  80% {
    transform: rotateX(90deg) rotateZ(90deg) rotateY(160deg);
  }

  100% {
    transform: rotateX(90deg) rotateZ(90deg) rotateY(260deg);
  }
}

.anim {
  -webkit-animation: rotate 4s ease;
  animation: rotate 4s ease;
}

li.hat {
  position: absolute;

  top: -65px;
  right: -40px;

  height: 300px;
  width: 300px;

  box-sizing: border-box;

  border-radius: 50%;

  color: crimson;

  z-index: -2;
}

.title {
  font-family: "Outfit", sans-serif;

  font-weight: 400;

  color: #333;

  padding: 35px;

  text-align: center;

  font-size: 30px;

  margin-bottom: 50px;

  -webkit-font-smoothing: antialiased;

  -moz-osx-font-smoothing: grayscale;
}

.pokeball:hover {
  cursor: pointer;
}

.what {
  color: #333;

  font-family: "Outfit", sans-serif;

  text-align: center;
}

/* TRANSFORMACIÓN VERDE */

.pokeball.green li {
  background-color: #49a35a;

  transition: background-color 2s ease;
}

/* =========================
 RED TITLE (TRANSICIÓN 0)
========================= */

.title-alert {
  color: #e53935;

  -webkit-animation: titleAlert 0.08s linear 10;

  animation: titleAlert 0.08s linear 10;
}

@-webkit-keyframes titleAlert {
  0% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-2px);
  }

  50% {
    transform: translateX(2px);
  }

  75% {
    transform: translateX(-2px);
  }

  100% {
    transform: translateX(0);
  }
}

@keyframes titleAlert {
  0% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-2px);
  }

  50% {
    transform: translateX(2px);
  }

  75% {
    transform: translateX(-2px);
  }

  100% {
    transform: translateX(0);
  }
}

/* =========================
   TRANSICIÓN TÍTULOS 1
========================= */

.title {
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

/* DESAPARECER */

.title.fade-out {
  opacity: 0;

  transform: translateY(-10px);
}

/* APARECER */

.title.fade-in {
  opacity: 1;

  transform: translateY(0px);
}

/* =========================
TRANSICIÓN TÍTULOS 2 (SLIDE)
========================= */

.title.slide-in {
  -webkit-animation: slideTitle 1s ease forwards;
  animation: slideTitle 1s ease forwards;
}

@-webkit-keyframes slideTitle {
  from {
    opacity: 0;

    transform: translateX(-80px);
  }

  to {
    opacity: 1;

    transform: translateX(0px);
  }
}

@keyframes slideTitle {
  from {
    opacity: 0;

    transform: translateX(-80px);
  }

  to {
    opacity: 1;

    transform: translateX(0px);
  }
}

/* =========================
   TITLE TRANSITION 3
========================= */

.title.blur-in {
  -webkit-animation: blurIn 1s ease forwards;
  animation: blurIn 1s ease forwards;
}

@-webkit-keyframes blurIn {
  0% {
    opacity: 0;

    -webkit-filter: blur(12px);

    filter: blur(12px);

    letter-spacing: 12px;

    transform: scale(1.08);
  }

  100% {
    opacity: 1;

    -webkit-filter: blur(0px);

    filter: blur(0px);

    letter-spacing: 0px;

    transform: scale(1);
  }
}

@keyframes blurIn {
  0% {
    opacity: 0;

    -webkit-filter: blur(12px);

    filter: blur(12px);

    letter-spacing: 12px;

    transform: scale(1.08);
  }

  100% {
    opacity: 1;

    -webkit-filter: blur(0px);

    filter: blur(0px);

    letter-spacing: 0px;

    transform: scale(1);
  }
}

/* =========================
 TITLE TRANSITION 4 ZOOM IN
========================= */

.title.zoom-in {
  -webkit-animation: titleZoomIn 1s ease forwards;
  animation: titleZoomIn 1s ease forwards;
}

@-webkit-keyframes titleZoomIn {
  from {
    opacity: 0;

    transform: scale(0.7);
  }

  to {
    opacity: 1;

    transform: scale(1);
  }
}

@keyframes titleZoomIn {
  from {
    opacity: 0;

    transform: scale(0.7);
  }

  to {
    opacity: 1;

    transform: scale(1);
  }
}

/* =========================
   GUSANO
========================= */

.pokeball.worm {
  -webkit-animation: wormMove 3s ease-in-out infinite alternate;
  animation: wormMove 3s ease-in-out infinite alternate;
  left: 50%;
  top: 50%;
  margin-left: -120px;
  margin-top: -20px;
}

/* SEGMENTOS */

.pokeball.worm li {
  width: 40px;
  height: 40px;

  border-radius: 50%;

  transition:
    transform 2s ease,
    width 2s ease,
    height 2s ease;
}

/* POSICIONES DEL GUSANO */

.pokeball.worm li:nth-child(1) {
  transform: translateX(0px);
}
.pokeball.worm li:nth-child(2) {
  transform: translateX(30px);
}
.pokeball.worm li:nth-child(3) {
  transform: translateX(60px);
}
.pokeball.worm li:nth-child(4) {
  transform: translateX(90px);
}
.pokeball.worm li:nth-child(5) {
  transform: translateX(120px);
}
.pokeball.worm li:nth-child(6) {
  transform: translateX(150px);
}
.pokeball.worm li:nth-child(7) {
  transform: translateX(180px);
}
.pokeball.worm li:nth-child(8) {
  transform: translateX(210px);
}

/* OCULTAR RESTO */

.pokeball.worm li:nth-child(n + 9) {
  opacity: 0;
}

/* ONDA */

.pokeball.worm li {
  -webkit-animation: wave 1s ease-in-out infinite;
  animation: wave 1s ease-in-out infinite;
}

/* DELAY ORGÁNICO */

.pokeball.worm li:nth-child(1) {
  -webkit-animation-delay: 0s;
  animation-delay: 0s;
}
.pokeball.worm li:nth-child(2) {
  -webkit-animation-delay: 0.1s;
  animation-delay: 0.1s;
}
.pokeball.worm li:nth-child(3) {
  -webkit-animation-delay: 0.2s;
  animation-delay: 0.2s;
}
.pokeball.worm li:nth-child(4) {
  -webkit-animation-delay: 0.3s;
  animation-delay: 0.3s;
}
.pokeball.worm li:nth-child(5) {
  -webkit-animation-delay: 0.4s;
  animation-delay: 0.4s;
}
.pokeball.worm li:nth-child(6) {
  -webkit-animation-delay: 0.5s;
  animation-delay: 0.5s;
}
.pokeball.worm li:nth-child(7) {
  -webkit-animation-delay: 0.6s;
  animation-delay: 0.6s;
}
.pokeball.worm li:nth-child(8) {
  -webkit-animation-delay: 0.7s;
  animation-delay: 0.7s;
}

/* MOVIMIENTO GUSANO */

@-webkit-keyframes wormMove {
  from {
    transform: translateX(-40px);
  }

  to {
    transform: translateX(40px);
  }
}

@keyframes wormMove {
  from {
    transform: translateX(-40px);
  }

  to {
    transform: translateX(40px);
  }
}

/* SERPENTEO */

@-webkit-keyframes wave {
  0%,
  100% {
    margin-top: 0px;
  }

  50% {
    margin-top: -15px;
  }
}

@keyframes wave {
  0%,
  100% {
    margin-top: 0px;
  }

  50% {
    margin-top: -15px;
  }
}

/* =========================
   OJO GUSANO
========================= */

.pokeball.worm li:nth-child(8)::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  top: 10px;
  right: 8px;
  opacity: 0;
  -webkit-animation: eyeAppear 0.2s ease forwards;
  animation: eyeAppear 0.2s ease forwards;
  -webkit-animation-delay: 0.2s;
  animation-delay: 0.2s;
}

/* OCULTAR OJOS ANTIGUOS */

.pokeball.worm::before,
.pokeball.worm::after {
  display: none;
}

/* APARICIÓN */

@-webkit-keyframes eyeAppear {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes eyeAppear {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* =========================
   PUPILA GUSANO
========================= */

.pokeball.worm li:nth-child(8)::before {
  content: "";

  position: absolute;

  width: 3px;
  height: 3px;

  background: #333;

  border-radius: 50%;

  top: 13px;
  right: 10px;

  opacity: 0;

  -webkit-animation: eyeAppear 0.2s ease forwards;

  animation: eyeAppear 0.2s ease forwards;

  -webkit-animation-delay: 0.2s;

  animation-delay: 0.2s;

  z-index: 2;
}

/* =========================
   BOTÓN CONTINUAR
========================= */

.next-btn {
  position: relative;

  z-index: 999;

  margin-top: 20px;

  padding: 14px 24px;

  border: 2px solid #333;

  border-radius: 999px;

  background: #333;

  color: white;

  font-family: "Outfit", sans-serif;

  font-size: 14px;

  font-weight: 500;

  letter-spacing: 0.3px;

  white-space: nowrap;

  cursor: pointer;

  opacity: 0;

  pointer-events: none;

  transition:
    opacity 2s ease,
    background 0.35s ease,
    color 0.35s ease,
    transform 0.35s ease,
    box-shadow 0.35s ease;

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* APARICIÓN */

.next-btn.show {
  opacity: 1;

  pointer-events: auto;
}

/* HOVER */

.next-btn:hover {
  background: white;

  color: #333;

  transform: translateY(-3px) scale(1.03);

  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
}

/* =========================
   LOADING
========================= */

.pokeball.loading {
  width: 80px;
  height: 80px;
  z-index: 5;

  position: relative;

  display: flex;
  top: 52px;
  left: 22px;

  justify-content: center;
  align-items: center;

  transform-origin: center center;

  margin: 0 auto;

  -webkit-animation: loadingRotate 3s linear infinite;

  animation: loadingRotate 3s linear infinite;
}

/* SEGMENTOS */

.pokeball.loading li {
  position: absolute;

  left: 50%;
  top: 50%;

  width: 12px;
  height: 12px;

  margin-left: -7px;
  margin-top: -7px;

  transition: all 1.5s ease;
}

/* POSICIONES CIRCULARES */

.pokeball.loading li:nth-child(1) {
  transform: translate(26px, 0px);
}

.pokeball.loading li:nth-child(2) {
  transform: translate(18px, 18px);
}

.pokeball.loading li:nth-child(3) {
  transform: translate(0px, 26px);
}

.pokeball.loading li:nth-child(4) {
  transform: translate(-18px, 18px);
}

.pokeball.loading li:nth-child(5) {
  transform: translate(-26px, 0px);
}

.pokeball.loading li:nth-child(6) {
  transform: translate(-18px, -18px);
}

.pokeball.loading li:nth-child(7) {
  transform: translate(0px, -26px);
}

.pokeball.loading li:nth-child(8) {
  transform: translate(18px, -18px);
}

/* OCULTAR RESTO */

.pokeball.loading li:nth-child(n + 9) {
  opacity: 0;
}

/* OCULTAR OJO GUSANO */

.pokeball.loading li::after {
  display: none;
}

/* OCULTAR OJOS ANTIGUOS */

.pokeball.loading::before,
.pokeball.loading::after {
  display: none;
}

/* ROTACIÓN */

@-webkit-keyframes loadingRotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes loadingRotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* =========================
   DESAPARECER LOADING
========================= */

.pokeball.loading.disappear {
  transform: scale(0);

  opacity: 0;

  transition:
    transform 0.7s ease,
    opacity 0.7s ease;
}

/* =========================
   CRISÁLIDA
========================= */

.chrysalis {
  position: absolute;

  top: -80px;

  width: 240px;

  opacity: 0;

  pointer-events: none;

  transform: scale(0.8);

  z-index: 1;

  transition:
    opacity 1.5s ease,
    transform 1.5s ease;
}

/* APARECER */

.chrysalis.show {
  opacity: 1;

  transform: scale(1);
}

/* DESAPARECER */

.chrysalis.hide {
  opacity: 0;

  transform: scale(0.95);
}

/* =========================
   BOTÓN EVOLUCIÓN
========================= */

.evolve-btn {
  position: absolute;

  top: 240px;

  left: 120px;

  transform: translateX(-50%);

  z-index: 999;

  margin-top: 30px;

  padding: 14px 24px;

  border: 2px solid #333;

  border-radius: 999px;

  background: #333;

  color: white;

  font-family: "Outfit", sans-serif;

  font-size: 14px;

  font-weight: 500;

  letter-spacing: 0.3px;

  white-space: nowrap;

  cursor: pointer;

  opacity: 0;

  pointer-events: none;

  transition:
    opacity 2s ease,
    background 0.35s ease,
    color 0.35s ease,
    transform 0.35s ease,
    box-shadow 0.35s ease;

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* APARICIÓN */

.evolve-btn.show {
  opacity: 1;

  pointer-events: auto;
}

/* HOVER */

.evolve-btn:hover {
  background: white;

  color: #333;

  transform: translateX(-50%) translateY(-3px) scale(1.03);

  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
}

/* =========================
   DRAGONFLY INTRO
========================= */

.dragonfly-intro {
  position: absolute;

  top: 57%;

  left: 50%;

  transform: translate(-40%, -35%) scale(0);

  width: 180px;

  opacity: 0;

  z-index: 20;
}

/* SVG */

.dragonfly-svg {
  width: 100%;

  overflow: visible;
}

/* APARECER */

.dragonfly-intro.show {
  opacity: 1;

  -webkit-animation: dragonflyApproach 2s ease-in-out forwards;

  animation: dragonflyApproach 2s ease-in-out forwards;
}

/* ACERCAMIENTO */

@-webkit-keyframes dragonflyApproach {
  0% {
    transform: translate(-40%, -35%) scale(0.15);
  }

  /* PRIMER IMPULSO */

  20% {
    transform: translate(-40%, -35%) scale(0.6);
  }

  35% {
    transform: translate(-40%, -35%) scale(0.6);
  }

  /* SEGUNDO IMPULSO */

  55% {
    transform: translate(-28%, -35%) scale(1);
  }

  70% {
    transform: translate(-28%, -35%) scale(1);
  }

  /* TERCER IMPULSO */

  100% {
    transform: translate(-40%, -35%) scale(1.6);
  }
}

@keyframes dragonflyApproach {
  0% {
    transform: translate(-40%, -35%) scale(0.15);
  }

  /* PRIMER IMPULSO */

  20% {
    transform: translate(-40%, -35%) scale(0.6);
  }

  35% {
    transform: translate(-40%, -35%) scale(0.6);
  }

  /* SEGUNDO IMPULSO */

  55% {
    transform: translate(-28%, -35%) scale(1);
  }

  70% {
    transform: translate(-28%, -35%) scale(1);
  }

  /* TERCER IMPULSO */

  100% {
    transform: translate(-40%, -35%) scale(1.6);
  }
}

@-webkit-keyframes dragonflyFloat {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-6px);
  }

  100% {
    transform: translateY(0px);
  }
}

@keyframes dragonflyFloat {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-6px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* =========================
   FLOAT FINAL
========================= */

.dragonfly-intro.show.float {
  -webkit-animation: dragonflyIdle 2.5s ease-in-out infinite;
  animation: dragonflyIdle 2.5s ease-in-out infinite;
}

@-webkit-keyframes dragonflyIdle {
  0% {
    transform: translate(-40%, -35%) scale(1.6);
  }

  20% {
    transform: translate(-38%, -39%) scale(1.6);
  }

  40% {
    transform: translate(-42%, -33%) scale(1.6);
  }

  60% {
    transform: translate(-36%, -37%) scale(1.6);
  }

  80% {
    transform: translate(-43%, -32%) scale(1.6);
  }

  100% {
    transform: translate(-40%, -35%) scale(1.6);
  }
}

@keyframes dragonflyIdle {
  0% {
    transform: translate(-40%, -35%) scale(1.6);
  }

  20% {
    transform: translate(-38%, -39%) scale(1.6);
  }

  40% {
    transform: translate(-42%, -33%) scale(1.6);
  }

  60% {
    transform: translate(-36%, -37%) scale(1.6);
  }

  80% {
    transform: translate(-43%, -32%) scale(1.6);
  }

  100% {
    transform: translate(-40%, -35%) scale(1.6);
  }
}

/* =========================
   ALAS LIBÉLULA
========================= */

.wing-top-left,
.wing-bottom-left {
  transform-origin: 100% 50%;

  -webkit-animation: wingLeft 0.22s ease-in-out infinite alternate;

  animation: wingLeft 0.22s ease-in-out infinite alternate;
}

.wing-top-right,
.wing-bottom-right {
  transform-origin: 0% 50%;

  -webkit-animation: wingRight 0.22s ease-in-out infinite alternate;

  animation: wingRight 0.22s ease-in-out infinite alternate;
}

/* ALA IZQUIERDA */

@-webkit-keyframes wingLeft {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(-12deg);
  }
}

@keyframes wingLeft {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(-12deg);
  }
}

/* ALA DERECHA */

@-webkit-keyframes wingRight {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(12deg);
  }
}

@keyframes wingRight {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(12deg);
  }
}

/* =========================
   DRAGONFLY EXIT
========================= */

.dragonfly-intro.fly-away {
  -webkit-animation: dragonflyExit 2.2s ease-in forwards;
  animation: dragonflyExit 2.2s ease-in forwards;
}

@-webkit-keyframes dragonflyExit {
  0% {
    transform: translate(-40%, -35%) scale(1.6) rotate(0deg);
  }

  15% {
    transform: translate(-25%, -42%) scale(1.58) rotate(3deg);
  }

  30% {
    transform: translate(0%, -30%) scale(1.56) rotate(-2deg);
  }

  45% {
    transform: translate(40%, -45%) scale(1.54) rotate(4deg);
  }

  60% {
    transform: translate(90%, -25%) scale(1.5) rotate(-3deg);
  }

  80% {
    transform: translate(170%, -50%) scale(1.45) rotate(5deg);
  }

  100% {
    transform: translate(900%, -20%) scale(1.3) rotate(8deg);
  }
}

@keyframes dragonflyExit {
  0% {
    transform: translate(-40%, -35%) scale(1.6) rotate(0deg);
  }

  15% {
    transform: translate(-25%, -42%) scale(1.58) rotate(3deg);
  }

  30% {
    transform: translate(0%, -30%) scale(1.56) rotate(-2deg);
  }

  45% {
    transform: translate(40%, -45%) scale(1.54) rotate(4deg);
  }

  60% {
    transform: translate(90%, -25%) scale(1.5) rotate(-3deg);
  }

  80% {
    transform: translate(170%, -50%) scale(1.45) rotate(5deg);
  }

  100% {
    transform: translate(900%, -20%) scale(1.3) rotate(8deg);
  }
}

/* =========================
     Coockies banner
========================= */

#cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;

  width: 340px;
  max-width: calc(100vw - 40px);

  background: white;
  border: 1px solid #333333;

  padding: 20px;
  z-index: 99999;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

#cookie-banner p {
  font-family: "Outfit", sans-serif;
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 15px;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

.cookie-buttons button {
  border: 1px solid #333333;
  background: transparent;
  padding: 8px 14px;

  font-family: "Outfit", sans-serif;
  cursor: pointer;
}

#accept-cookies {
  background: #333333;
  color: white;
}

#accept-cookies:hover {
  opacity: 0.8;
}

#reject-cookies:hover {
  background: #f2f2f2;
}

/* =========================
   BOTTOM NAV
========================= */

.bottom-nav {
  position: absolute;

  bottom: 30px;

  width: 100%;

  padding: 0 60px;

  display: flex;

  justify-content: space-between;

  align-items: center;

  box-sizing: border-box;
}

/* LINKS */

.nav-link {
  display: flex;
  align-items: center;

  gap: 10px;

  font-family: "Outfit", sans-serif;

  font-size: 14px;

  color: #333;

  text-decoration: none;

  opacity: 0.75;

  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

/* ICONO */

.nav-link img {
  width: 16px;

  height: 16px;
}

/* HOVER */

.nav-link:hover {
  opacity: 1;

  transform: translateY(-2px);
}

/* ICONOS */

.nav-icon {
  font-size: 16px;

  line-height: 1;

  display: flex;

  align-items: center;

  justify-content: center;
}

@media (max-height: 900px) {
  .scene {
    transform: translateY(-60px) scale(0.9);
  }
}

@media (max-height: 800px) {
  .scene {
    transform: translateY(-60px) scale(0.8);
  }
}

@media (max-height: 700px) {
  .scene {
    transform: translateY(-60px) scale(0.7);
  }
}

/* =========================
   FAST MODE
========================= */

body.fast .anim,
body.fast .title.slide-in,
body.fast .title.blur-in,
body.fast .title.zoom-in {
  -webkit-animation-duration: 0.25s !important;
  animation-duration: 0.25s !important;
}

body.fast .pokeball.loading {
  -webkit-animation-duration: 0.5s !important;
  animation-duration: 0.5s !important;
}

body.fast .chrysalis {
  transition-duration: 0.3s !important;
}

body.fast .dragonfly-intro.show {
  -webkit-animation-duration: 0.5s !important;
  animation-duration: 0.5s !important;
}

body.fast .dragonfly-intro.show.float {
  -webkit-animation-duration: 1s !important;
  animation-duration: 1s !important;
}

body.fast .dragonfly-intro.fly-away {
  -webkit-animation-duration: 2s !important;
  animation-duration: 1s !important;
}

body.fast .pokeball.loading li {
  transition-duration: 0.2s !important;
}

html,
body {
  overflow: hidden;
  background-image: url("../01-img/background-02.jpg");
  background-size: cover;
}
