/* Akram: page preloader (Settings → Performance → Preloader). */
#nx-pre {
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  display: grid;
  place-items: center;
  background: var(--nx-c-bg, #fff);
  transition:
    opacity 0.35s,
    visibility 0.35s;
}
#nx-pre.is-done {
  opacity: 0;
  visibility: hidden;
}
#nx-pre i {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid color-mix(in srgb, var(--nx-c-primary, #2f4bd1) 20%, transparent);
  border-top-color: var(--nx-c-primary, #2f4bd1);
  animation: nxpre 0.8s linear infinite;
}
#nx-pre.is-bar {
  place-items: start stretch;
  background: transparent;
  pointer-events: none;
}
#nx-pre.is-bar i {
  width: 100%;
  height: 3px;
  border: 0;
  border-radius: 0;
  background: var(--nx-c-primary, #2f4bd1);
  transform-origin: 0 50%;
  animation: nxbar 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
#nx-pre img {
  max-width: 120px;
  max-height: 80px;
  animation: nxpulse 1.2s ease-in-out infinite;
}
@keyframes nxpre {
  to {
    transform: rotate(1turn);
  }
}
@keyframes nxbar {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(0.85);
  }
}
@keyframes nxpulse {
  50% {
    opacity: 0.4;
  }
}
