/* Loading screen: fades out once the page markup is ready (see layout.jinja),
   and on its own after a few seconds in case scripts are slow */
#loadingScreen {
  transition: opacity .4s ease, visibility .4s ease;
  animation: kayanLoadingScreenOut .4s ease 3s forwards;
}
#loadingScreen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
@keyframes kayanLoadingScreenOut {
  to { opacity: 0; visibility: hidden; }
}


/* Pulse Animation */
@keyframes pulseAnimation {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}
#loadingScreen .pulse { animation: pulseAnimation 2s infinite; }

/* Spin Animation */
@keyframes spinAnimation {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
#loadingScreen .spin { animation: spinAnimation 2s linear infinite; }

/* Bounce Animation */
@keyframes bounceAnimation {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}
#loadingScreen .bounce { animation: bounceAnimation 2s infinite; }

/* Fade Animation */
@keyframes fadeAnimation {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
#loadingScreen .fade { animation: fadeAnimation 2s infinite; }

/* Flip Animation */
@keyframes flipAnimation {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}
#loadingScreen .flip { animation: flipAnimation 2s infinite; }

/* No Animation */
#loadingScreen .none { animation: none; }
