/* Estilos generales */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #fff;
  text-align: center;
  overflow: hidden;
}

/* MAIN */
main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #ffffff;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  width: 100%;
  padding: 20px;
  position: relative;
}

/* Serpentinas animadas */
.confetti {
  position: absolute;
  width: 10px;
  height: 20px;
  background-color: #ffd700;
  opacity: 0.7;
  animation: fall linear infinite;
}

@keyframes fall {
  0% {
    transform: translateY(-100vh) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}

/* Loading container */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.loading-container img {
  width: 80%;
  max-width: 400px;
  height: auto;
  margin-bottom: -20px;
  transition: transform 1s ease-in-out;
}
.loading-container a {
  width: 80%;
  max-width: 400px;
  height: auto;
  margin-bottom: -20px;
  transition: transform 1s ease-in-out;
}
/* Aplica la animación al cargar la página */
.loading-container img.start-animation {
    animation: levantarYGirar 1.8s ease-in-out forwards;
  }
  
  /* Animación al hacer hover */
  .loading-container img:hover {
    animation: levantarYGirar 1.8s ease-in-out forwards;
  }
  
  /* Animación de elevar y girar */
  @keyframes levantarYGirar {
    0% {
      transform: translateY(0) rotateY(0deg);
    }
    30% {
      transform: translateY(-10px) rotateY(0deg);
    }
    60% {
      transform: translateY(-10px) rotateY(360deg);
    }
    100% {
      transform: translateY(0) rotateY(360deg);
    }
  }
.loading-container h2 {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  color: rgb(107, 107, 107);
  font-size: 50px;
  font-weight: bold;
}

.loading-container i {
  color: #6a0dad;
  margin-bottom: 15px;
  font-size: 7rem;
}

.loading-container p {
  font-size: 3rem;
  font-weight: bold;
  color: #ffd700;
  max-width: 800px;
  padding: 0 10px;
  text-shadow: 1.5px 0.5px 0 black, 0.5px 0.5px 0 black;
}


.back-button {
  margin-top: 20px;
  padding: 10px 20px;
  font-size: 1.2rem;
  font-weight: bold;
  color: white;
  background-color: #ffd700;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  text-shadow: 3px 2px 1px black, 3px 2px 1px black, 3px 2px 1px black;
  box-shadow: 4px 4px 0px black, 6px 6px 0px rgba(0, 0, 0, 0.3);
}

.back-button:hover {
  background-color: #ffd700;
  transform: scale(1.1);
  box-shadow: 6px 6px 0px black, 8px 8px 0px rgba(0, 0, 0, 0.3);
}

/* Responsividad */
@media (max-width: 768px) {
  .loading-container h2 {
    font-size: 40px;
  }
  .loading-container i {
    font-size: 3rem;
  }
  .loading-container p {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .loading-container h2 {
    font-size: 30px;
  }
  .loading-container i {
    font-size: 2.5rem;
  }
  .loading-container p {
    font-size: 1.2rem;
  }
  .back-button {
    font-size: 1rem;
    padding: 8px 16px;
  }
}
.fa-spin {
  animation: fa-spin 1s linear infinite !important;
}
.index_link {
  text-decoration: none;
}
.index_link:hover {
  text-decoration: none;
}
