:root {
  --loader-overlay: #FFF;
  --loader-txt-bg: #000;
}

html.preloader-active,
body.preloader-active {
  overflow: hidden;
}

#page-pre-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--loader-overlay);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* HTML: <div class="loader-l1"></div> */
.loader-l1 {
  font-weight: bold;
  font-size: 30px;
  animation: l1 1s linear infinite alternate;
  color: var(--loader-txt-bg);
}

@keyframes l1 {
  to {
    opacity: 0
  }
}

/* HTML: <div class="loader-l2"></div> */
.loader-l2 {
  width: fit-content;
  font-weight: bold;
  font-size: 30px;
  padding: 0 5px 8px 0;
  color: var(--loader-txt-bg);
  background: repeating-linear-gradient(90deg, currentColor 0 8%, #0000 0 10%) 200% 100%/200% 3px no-repeat;
  animation: l2 2s steps(6) infinite;
}

@keyframes l2 {
  to {
    background-position: 80% 100%
  }
}

/* HTML: <div class="dots-d1"></div> */
.dots-d1 span {
  display: inline-block;
  width: 15px;
  height: 15px;
  margin: 5px;
  background: var(--loader-txt-bg);
  border-radius: 50%;
  animation: d1 1.4s infinite ease-in-out;
}

.dots-d1 span:nth-child(2) {
  animation-delay: 0.2s;
}

.dots-dl span:nth-child(3) {
  animation-delay: 0.4s;
}

.dots-d1 span:nth-child(4) {
  animation-delay: 0.6s;
}

@keyframes d1 {

  0%,
  80%,
  100% {
    transform: scale(0.3);
  }

  40% {
    transform: scale(1);
  }
}

/* HTML: <div class="bars-b1"></div> */
.bars-b1 span {
  display: inline-block;
  width: 6px;
  height: 20px;
  margin: 2px;
  background: var(--loader-txt-bg);
  animation: b1 1s infinite ease-in-out;
}

.bars-b1 span:nth-child(2) {
  animation-delay: 0.1s;
}

.bars-b1 span:nth-child(3) {
  animation-delay: 0.2s;
}

.bars-b1 span:nth-child(4) {
  animation-delay: 0.3s;
}

@keyframes b1 {

  0%,
  100% {
    transform: scaleY(1);
  }

  50% {
    transform: scaleY(2);
  }
}

/* HTML: <div class="bars-b2"></div> */
.bars-b2 {
  width: 0;
  height: 8px;
  background: var(--loader-txt-bg);
  position: fixed;
  top: 0;
  left: 0;
  animation: b2 2s ease-in-out forwards;
}

@keyframes b2 {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

/* HTML: <div class="dual-ring"></div> */
.dual-ring {
  width: 60px;
  height: 60px;
  border: 6px solid transparent;
  border-top: 6px solid var(--loader-txt-bg);
  border-bottom: 6px solid var(--loader-txt-bg);
  border-radius: 50%;
  animation: rspin 1s linear infinite;
  top: 50%;
  left: 50%;
}

@keyframes rspin {
  to {
    transform: rotate(360deg);
  }
}

/* HTML: <div class="dual-spinner"></div> */
.dual-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #ccc;
  border-top-color: var(--loader-txt-bg);
  border-radius: 50%;
  animation: dspin 1s linear infinite;
  margin: auto;
  top: 50%;
  left: 50%;
  z-index: 1;
}

@keyframes dspin {
  to {
    transform: rotate(360deg);
  }
}

/* HTML: <div class="dots-spinner"></div> */
.dots-spinner {
  width: 50px;
  aspect-ratio: 1;
  --_c: no-repeat radial-gradient(farthest-side, var(--loader-txt-bg) 92%, #0000);
  background:
    var(--_c) top,
    var(--_c) left,
    var(--_c) right,
    var(--_c) bottom;
  background-size: 12px 12px;
  animation: dspin2 1s infinite;
  margin: auto;
}

@keyframes dspin2 {
  to {
    transform: rotate(.5turn)
  }
}

/* HTML: <div class="square-loader"></div> */
.square-loader {
  width: 40px;
  height: 40px;
  background: var(--loader-txt-bg);
  animation: rotateSquare 1.2s infinite ease-in-out;
  margin: auto;
  top: 50%;
  left: 50%;
}

@keyframes rotateSquare {
  0% {
    transform: perspective(100px) rotateX(0) rotateY(0);
  }

  50% {
    transform: perspective(100px) rotateX(180deg) rotateY(0);
  }

  100% {
    transform: perspective(100px) rotateX(180deg) rotateY(180deg);
  }
}

/* HTML: <div class="ripple"></div> */
.ripple {
  width: 100px;
  height: 100px;
  position: relative;
}

.ripple::before,
.ripple::after {
  content: '';
  position: absolute;
  border: 30px solid var(--loader-txt-bg);
  border-radius: 50%;
  animation: ripple 1.5s infinite;
}

.ripple::after {
  animation-delay: 0.75s;
}

@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 1;
  }

  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* HTML: <div class="logo-loader"></div> */
.logo-loader img {
  width: 80px;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }

  50% {
    transform: scale(1.2);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 0.6;
  }
}

/* HTML: <div class="bar-dots"></div> */

.bar-dots {
  width: 50px;
  height: 40px;
  --c: no-repeat linear-gradient(var(--loader-txt-bg) 0 0);
  background:
    var(--c) 0 100%/8px 40px,
    var(--c) 35% 100%/8px 30px,
    var(--c) 68% 100%/8px 20px,
    var(--c) 100% 100%/8px 10px;
  position: relative;
  clip-path: inset(-100% 0);
  margin: auto;
}

.bar-dots:before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--loader-txt-bg);
  left: -16px;
  top: 0;
  animation:
    bar-dots-1 2s linear infinite,
    bar-dots-2 0.5s cubic-bezier(0, 200, .8, 200) infinite;
}

@keyframes bar-dots-1 {
  0% {
    left: -16px;
    transform: translateY(-8px)
  }

  100% {
    left: calc(100% + 8px);
    transform: translateY(22px)
  }
}

@keyframes bar-dots-2 {
  100% {
    top: -0.1px
  }
}

/* HTML: <div class="dots-progress"></div> */
.dots-progress {
  width: 120px;
  height: 20px;
  -webkit-mask: radial-gradient(circle closest-side, var(--loader-txt-bg) 94%, #0000) left/25% 100%;
  background: linear-gradient(var(--loader-txt-bg) 0 0) left/0% 100% no-repeat #ddd;
  animation: pdots 2s infinite steps(5);
}

@keyframes pdots {
  100% {
    background-size: 120% 100%
  }
}

/* HTML: <div class="sky-progress"></div> */
.sky-progress {
  width: 120px;
  height: 60px;
  border-radius: 200px 200px 0 0;
  -webkit-mask: repeating-radial-gradient(farthest-side at bottom, #0000 0, var(--loader-txt-bg) 1px 12%, #0000 calc(12% + 1px) 20%);
  background:
    radial-gradient(farthest-side at bottom, var(--loader-txt-bg) 0 95%, #0000 0) bottom/0% 0% no-repeat #ddd;
  animation: psky 2s infinite steps(6);
}

@keyframes psky {
  100% {
    background-size: 120% 120%
  }
}

/* HTML: <div class="line-progress"></div> */
.line-progress {
  margin: auto;
  width: 60px;
  height: 50px;
  --m:no-repeat linear-gradient(90deg,var(--loader-txt-bg) 70%,#0000 0);
  -webkit-mask: 
    var(--m) calc(0*100%/4) 100%/calc(100%/5) calc(1*100%/5),
    var(--m) calc(1*100%/4) 100%/calc(100%/5) calc(2*100%/5),
    var(--m) calc(2*100%/4) 100%/calc(100%/5) calc(3*100%/5),
    var(--m) calc(3*100%/4) 100%/calc(100%/5) calc(4*100%/5),
    var(--m) calc(4*100%/4) 100%/calc(100%/5) calc(5*100%/5);
  background: linear-gradient(var(--loader-txt-bg) 0 0) left/0% 100% no-repeat #ddd;
  animation: pline 2s infinite steps(6);
}
@keyframes pline {
  100% {background-size: 120% 100%}
}