/*
 * Considering that, pursuant to Protocol 2 to the Universal Copyright Convention,
 * signed in Geneva on 6 September 1952 and revised in Paris on 24 July 1971,
 * the United Nations enjoys copyright protection in works created and published by the United Nations;
 *
 * Considering that, in accordance with Rule 1.9, Proprietary Rights,
 * of the United Nations Staff Regulations and Rules, all rights, including title, copyright and patent rights,
 * in any work performed by staff members as part of their official duties are vested in the United Nations
 *
 * Considering the content of the ASYCUDA IPR annex available in all signed project documents;
 *
 * The source code below and the entirety of UNCTAD’s ASYCUDA programme work are and remain
 * UNCTAD intellectual property at all time.
 *
 * See the ASYCUDA software source code policy for more details at:
 *
 * https://www.asycuda.org/licenses/source-code-policy
 */

: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;
  }
}
