/*================================================
  Splash
================================================*/

/*------------------------------------------------
  Splash Content
------------------------------------------------*/

#container {
  overflow-x: hidden;
}

.splash__content {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  z-index: 1000;
  width: 100%;
  height: 100%;
  background-color: #000;
}

/* Animation Setting */
body.is-loaded .splash__content {
  animation-name: splashMainFadeoutAnim;
  animation-duration: 1s;
  animation-delay: 1s;
  animation-fill-mode: forwards;
}

@keyframes splashContentAnim {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/*------------------------------------------------
  Splash Loader
------------------------------------------------*/

.splash__loader {
  display: flex;
}

.splash__loader i {
  width: 2px;
  height: 5px;
  background-color: #fff;
}

.splash__loader i:not(:last-of-type) {
  margin-right: 20px;
}

/* Animation Setting */
.splash__loader i {
  animation-name: splashLoaderAnim;
  animation-duration: 1s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.splash__loader i:nth-of-type(2) {
  animation-delay: 0.15s;
}

.splash__loader i:nth-of-type(3) {
  animation-delay: 0.3s;
}

@keyframes splashLoaderAnim {
  0% {
    transform: scaleY(1);
  }
  40% {
    transform: scaleY(3);
  }
  80% {
    transform: scaleY(1);
  }
}

@media print, screen and (min-width: 769px) {
  .splash__loader i {
    height: 10px;
  }

  .splash__loader i:not(:last-of-type) {
    margin-right: 30px;
  }
}

/*------------------------------------------------
  Splash Reveal
------------------------------------------------*/

.splash__reveal {
  display: none;
  position: fixed;
  z-index: 9999;
  width: 100%;
  height: 100vh;
  top: 0;
  left: 0;
  background-color: #1766cc;
  transform: scaleX(0);
}

/* Animation Setting */
body.is-loaded .splash__reveal {
  display: block;
  animation-name: splashRevealAnim;
  animation-duration: 1s;
  animation-timing-function: ease-in-out;
  animation-fill-mode: forwards;
}

@keyframes splashRevealAnim {
  0% {
    transform-origin: left;
    transform: scaleX(0);
  }
  50% {
    transform-origin: left;
    transform: scaleX(1);
  }
  50.001% {
    transform-origin: right;
  }
  70% {
    transform: scaleX(1);
  }
  100% {
    transform-origin: right;
    transform: scaleX(0);
  }
}

/*------------------------------------------------
  Content Fadein
------------------------------------------------*/

#container {
  opacity: 0;
}

/* Animation Setting */
body.is-loaded #container {
  animation-name: mainFadeinAnim;
  animation-duration: 1s;
  animation-delay: 0.8s;
  animation-fill-mode: forwards;
  opacity: 0;
}

@keyframes mainFadeinAnim {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
