@import "../mixins/animations";

@keyframes splash {
  0% {
    background-position: left bottom;
  }

  20% {
    background-position: left top;
  }

  40% {
    background-position: right top;
  }

  60% {
    background-position: right bottom;
  }

  100% {
    background-position: left bottom;
  }
}


.app-splash {
  position: fixed;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--ec-background-splash);
  background-size: 110% 110%;
  transition-property: opacity;
  transition-duration: .3s;
  transition-timing-function: ease-out;
  opacity: 1;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  animation-name: splash;
  animation-duration: 6s;
  animation-iteration-count: infinite;

  img {
    width: 200px;
    mix-blend-mode: screen;
  }

  &.app-loaded {
    opacity: 0;
    pointer-events: none;
  }
}