/* loading */
.loading {
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  /* background: hsl(220deg 29% 90% / 50%); */
  position: sticky;
  top: 0;
}

.loading-box {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4000;
  width: 100%;
  text-align: center;
  height: 5000%;
  /* background: #ccc; */
  vertical-align: middle;
}

/* ===== Timing functions ===== */
:root {
  --ease-in-sine: cubic-bezier(0.12, 0, 0.39, 0);
  --ease-out-sine: cubic-bezier(0.61, 1, 0.88, 1);
  --ease-in-out-sine: cubic-bezier(0.37, 0, 0.63, 1);
}

/* ===== Reset & Base ===== */

:root {
  --white: hsl(0, 0%, 100%);
  --black: hsl(0, 0%, 0%);
  --trans-dur: 0.3s;
  color-scheme: light dark;
}

/* ===== Loader ===== */
.pl {
  display: block;
  isolation: isolate;
  width: 10em;
  height: auto;
}

.pl__blend {
  mix-blend-mode: multiply;
}

.pl__curve {
  animation-duration: 1;
  animation-timing-function: var(--ease-in-out-sine);
  animation-iteration-count: infinite;
}

.pl__curve--cyan {
  stroke: hsl(198, 92%, 48%);
}

.pl__curve--magenta {
  stroke: hsl(325, 95%, 55%);
}

.pl__curve--yellow {
  stroke: hsl(45, 100%, 55%);
}

/* ===== Continuous Smooth Rotations ===== */
.pl__curve--rotate1 {
  animation: spin1 0.75s linear infinite;
}
.pl__curve--rotate2 {
  animation: spin2 1s linear infinite reverse;
}
.pl__curve--rotate3 {
  animation: spin3 1.5s linear infinite;
}
.pl__curve--rotate4 {
  animation: spin4 1.7s linear infinite reverse;
}
.pl__curve--rotate5 {
  animation: spin5 1s linear infinite;
}
.pl__curve--rotate6 {
  animation: spin6 1.2s linear infinite reverse;
}
.pl__curve--rotate7 {
  animation: spin7 1.6s linear infinite;
}
.pl__curve--rotate8 {
  animation: spin8 2s linear infinite reverse;
}

/* Simple keyframes for continuous rotation */
@keyframes spin1 {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes spin2 {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}
@keyframes spin3 {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes spin4 {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}
@keyframes spin5 {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes spin6 {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}
@keyframes spin7 {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes spin8 {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}
