/* 
  This file is used to hold all keyframe references (@keyframes) for animations to be used with amplify components.
*/

loading-animation.is-active {
  background: rgba(255,255,255,0.95);
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
loading-animation .au-loading {
  display: none;
}
loading-animation.is-active .au-loading {
  font-size: 2rem; /* Adjust this font-size for scaling */
  overflow: hidden;
  position: absolute;
  width: 15em;
  height: 15em;
  display: flex;
  justify-content: center;
  align-items: center;
}
loading-animation.is-active .au-loading .au-loading__text {
  color: rgba(0, 0, 0, 0.4);
  font-family: Arial, sans-serif;
  font-size: 0.85em;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  transform: translateX(0.4em);
}
loading-animation.is-active .au-loading .au-loading__text {
  -webkit-animation: loadingText 2s infinite;
  -moz-animation: loadingText 2s infinite;
  -o-animation: loadingText 2s infinite;
  animation: loadingText 2s infinite;
}
loading-animation.is-active .au-loading .au-loading__circles {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 0.25em solid rgba(0, 0, 0, 0.1);
  border-left-color: rgba(0, 0, 0, 0.4);
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  border-radius: 50%;
} 
loading-animation.is-active .au-loading .au-loading__circles {
  margin: -4.1em 0 0 -4.1em;
  height: 8em;
  width: 8em;
  -webkit-animation: animation-rotate 1000ms linear infinite;
  -moz-animation: animation-rotate 1000ms linear infinite;
  -o-animation: animation-rotate 1000ms linear infinite;
  animation: animation-rotate 1000ms linear infinite;
}

@-webkit-keyframes animation-rotate {
  100% {
    -webkit-transform: rotate(360deg);
  }
}
@-moz-keyframes animation-rotate {
  100% {
    -moz-transform: rotate(360deg);
  }
}
@-o-keyframes animation-rotate {
  100% {
    -o-transform: rotate(360deg);
  }
}
@keyframes animation-rotate {
  100% {
    transform: rotate(360deg);
  }
}
@keyframes loadingText {
  0%   { opacity:1; }
  50%  { opacity:0; }
  100% { opacity:1; }
}
@-o-keyframes loadingText {
  0%   { opacity:1; }
  50%  { opacity:0; }
  100% { opacity:1; }
}
@-moz-keyframes loadingText {
  0%   { opacity:1; }
  50%  { opacity:0; }
  100% { opacity:1; }
}
@-webkit-keyframes loadingText {
  0%   { opacity:1; }
  50%  { opacity:0; }
  100% { opacity:1; }
}

@keyframes slideIconLeft {
  from {
      margin-left: 0;
      transform: translateX(0);
  }
  to {
      margin-left: -1em;
      transform: translateX(-1.5em);
  }
}
@keyframes slideIconRight {
  from {
      margin-left: -1em;
      transform: translateX(-1.5em);
  }
  to {
      margin-left: 0;
      transform: translateX(0);
  }
}

/* Defined vs. Non-defined elements */
/* *:not(:defined) {
    animation-name: lazy-opacity;
    animation-duration: 0.5s;
    animation-delay: 0.25s;
    animation-fill-mode: both;
    animation-timing-function: ease-in-out;
}
@keyframes lazy-opacity {
    from { opacity: 0; transform: translateY(1em); }
    to { opacity: 1; transform: translateY(0em); }
} */