/* Initial HTML loading cover; available before Angular starts. */
body.dark-theme .app-splash-screen {
  background-color: #1a1a1a;
}
body.light-theme .app-splash-screen {
  background-color: #fff;
}
.app-splash-screen {
  background: #fff url("/assets/chainex/images/pages/splash/african-map-bg.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  z-index: 9999;
  opacity: 1;
  flex-direction: column;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Open Sans", arial, sans-serif;
}

.app-splash-screen[hidden] {
  display: none;
}

#bootstrap-splash[data-theme="dark-theme"] {
  background-color: #1a1a1a;
  color: #fff;
}

#bootstrap-splash[data-theme="light-theme"] {
  background-color: #fff;
  color: #000;
}

.app-splash-screen .app-splash-content {
  flex-direction: column;
  height: 100%;
  width: 35%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.app-splash-screen h2 {
  font-size: 3em;
}
.app-splash-screen .loading-bar {
  margin-top: 10%;
  width: 100%;
  height: 35px;
  border-radius: 8px;
  border: 3px solid black;
  padding: 3px;
}
.app-splash-screen .loading-bar .progress-bar {
  animation: chainex-splash-progress 2.2s forwards;
  width: 1%;
  height: 100%;
  background: linear-gradient(90deg, #fcba36, #ef6c00);
  border-radius: 5px;
}
@keyframes chainex-splash-progress {
  0% {
    width: 1%;
  }
  10% {
    width: 6%;
  }
  15% {
    width: 15%;
  }
  20% {
    width: 20%;
  }
  30% {
    width: 25%;
  }
  50% {
    width: 35%;
  }
  85% {
    width: 50%;
  }
  95% {
    width: 95%;
  }
  100% {
    width: 100%;
  }
}
.app-splash-screen img.rocket {
  display: block;
  margin-top: auto;
  align-self: center;
  justify-content: center;
  width: 50%;
}
.app-splash-screen img.bottom-bar {
  display: block;
  margin-top: auto;
  width: 100%;
  margin-bottom: 0;
}
@media screen and (max-width: 992px) {
  .app-splash-screen .app-splash-content {
    width: 60%;
  }
  .app-splash-screen img.rocket {
    width: 60%;
  }
}
