/*
 * Copyright (c) UNCTAD/DTL/ASYCUDA
 * Licensed under the UNCTAD/DTL/ASYCUDA License, Version 1.0 (the "License");
 * you may not use ASYCUDA UI Framework and its components or any documentation or
 * any related applications except in compliance with the License.
 *
 * https://www.asycuda.org/licenses/LICENSE-1.0
 *
 * You may not use, distribute or build software on top of ASYCUDA UI Framework and its
 * components or any documentation or any related applications without a written authorization
 * acquired by UNCTAD/DTL/ASYCUDA.
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the
 * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
 * either express or implied. See the License for the specific language governing permissions and
 * limitations under the License.
 */

:root {
  --lp-background-color: #1E459D;
  --lp-loader-color: #00c4ab;
  --lp-text-color: #ffffff;
}

@keyframes loader {
  0% {
    transform: rotate(0);
  }
  50% {
    transform: rotate(22.5deg);
  }
  100% {
    transform: rotate(45deg);
  }
}

.loader > div {
  transform-origin: 25px 25px;
  animation: loader 1s infinite linear;
}

.loader > div div {
  position: absolute;
  width: 5px;
  height: 40px;
  background: var(--lp-loader-color);
  left: 25px;
  top: 25px;
  transform: translate(-50%, -50%);
}

.loader > div div:nth-child(1) {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.loader > div div:nth-child(6) {
  width: 20px;
  height: 20px;
  background: var(--lp-background-color);
  border-radius: 50%;
}

.loader > div div:nth-child(3) {
  transform: translate(-50%, -50%) rotate(45deg);
}

.loader > div div:nth-child(4) {
  transform: translate(-50%, -50%) rotate(90deg);
}

.loader > div div:nth-child(5) {
  transform: translate(-50%, -50%) rotate(135deg);
}

.loader {
  width: 100%;
  height: 100%;
  position: relative;
  transform: translateZ(0) scale(1);
  backface-visibility: hidden;
  transform-origin: 0 0;
}

.loader div {
  box-sizing: content-box;
}

.page-loader {
  position: absolute;
  left: 0;
  top: 0;
  width: 100vw !important;
  min-width: 100vw !important;
  max-width: 100vw !important;
  height: 100vh !important;
  min-height: 100vh !important;
  max-height: 100vh !important;
  background: var(--lp-background-color);
  box-shadow: 0 4px 4px #00000033;
  opacity: 1;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  display: inline-block;
  overflow: hidden;
  background: 0 0;
  left: -5px;
  top: 10px;
  position: relative;
}

.loader-text {
  color: var(--lp-text-color);
  text-align: center;
  font-family: "Montserrat", sans-serif;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 11px;
  opacity: 0.85;
}

.loader-logo {
  padding-top: 141px;
  padding-bottom: 198px;
  width: 448px;
  max-width: 448px;
}

.page-wrapper {
  width: 100%;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

@media (max-width: 640px) {
  .loader-text {
    color: #ffffff;
    text-align: center;
    font-size: 15px;
    line-height: 1.5;
    letter-spacing: 11px;
    opacity: 0.85;
  }

  .loader-logo {
    padding-top: 70px;
    padding-bottom: 99px;
    width: 224px;
    max-width: 224px;
  }
}

@media (max-height: 640px) {
  .loader-text {
    color: #ffffff;
    text-align: center;
    font-size: 15px;
    line-height: 1.5;
    letter-spacing: 11px;
    opacity: 0.85;
  }

  .loader-logo {
    padding-top: 35px;
    padding-bottom: 48px;
    width: 224px;
    max-width: 224px;
  }
}
