
@keyframes loadingpageBar {
  60% {
    bottom: 0;
  }
  100% {
    bottom: 100%;
  }
}
@keyframes mobileBar {
  100% {
    width: 100%;
  }
}
.loadingpage {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 9999999999;
}
.loadingpage .box {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  background: var(--brandcolor1);
}
.loadingpage .bar {
  position: absolute;
  bottom: -100%;
  right: 0;
  width: 100px;
  height: 100%;
  background: #003da6;
}
.loadingpage .logo {
  display: none;
  position: absolute;
  top: 70px;
  left: 70px;
}
.loadingpage .count {
  display: none;
  position: absolute;
  bottom: 70px;
  left: 70px;
  font-size: 6.25rem;
  font-weight: 700;
  color: #fff;
}
.loadingpage.error .box {
  top: 0;
  left: 0;
}
.loadingpage.first .box {
  left: 0;
  top: 0;
  background: #003da6;
}
.loadingpage.first .bar {
  background: #fff;
}
.loadingpage.first .count,
.loadingpage.first .logo {
  display: block;
}
.loadingpage.first.play .count,
.loadingpage.first.play .logo {
  opacity: 0;
  transition: 0.5s;
  transition-delay: 2.6s;
}
.loadingpage.first.play .bar {
  animation: loadingpageBar 5s;
  animation-timing-function: cubic-bezier(0.785, 0.135, 0.15, 0.86);
}
.loadingpage.first.play .box {
  opacity: 1;
  left: -100%;
  transition: 2s;
  transition-timing-function: cubic-bezier(0.785, 0.135, 0.15, 0.86);
  transition-delay: 2.8s;
}
.loadingpage.play .box {
  opacity: 0;
  visibility: hidden;
  transition: 1s;
}
.loadingpage.page .box {
  visibility: visible;
  opacity: 1;
  transition: 1s;
}
.loadingpage.page.error .box {
  left: 0;
}
.loadingpage.active {
  visibility: hidden;
}
@media (max-width: 1199px) {
  .loadingpage .box {
    top: 0 !important;
    left: 0 !important;
  }
  .loadingpage .logo {
    top: 30px;
    left: 30px;
  }
  .loadingpage .count {
    left: 30px;
    bottom: 30px;
  }
  .loadingpage .bar {
    position: absolute;
    bottom: 0;
    right: auto;
    left: 0;
    width: 0;
    height: 20px;
  }
  .loadingpage.first.play .bar {
    animation: mobileBar 3s;
  }
  .loadingpage.first.play .count,
  .loadingpage.first.play .logo {
    transition-delay: 0s;
    opacity: 1;
  }
  .loadingpage.first.play .box {
    transition: 1s;
    transition-delay: 3s;
    opacity: 0;
  }
}
