.loader-bg {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  background-color: #000000c2;
  width: 100%;
  height: 100%;
  align-content: center;
  justify-content: center;
  flex-wrap: wrap;
  z-index: 100000;
}

@property --a {
  initial-value: 0deg;
  inherits: false;
  syntax: '<angle>';
}

@property --h {
  initial-value: 0;
  inherits: false;
  syntax: '<number>';
}

.loader-content {
  min-width: 20rem !important;
  text-align: center;
  text-transform: lowercase;
  padding: 1rem 2rem;
  font-family: monospace;
  font-weight: bold;
  color: hsl(0, 0%, 100%);
  border-style: solid;
  border-width: 1vmin;
  font-size: 2rem;
  --charge: hsl(var(--h, 0), 80%, 50%);
  border-image: conic-gradient(
      var(--charge) var(--a),
      transparent calc(var(--a) + 0.5deg)
    )
    30;
  animation: loader 2s infinite ease-in-out;
}

@keyframes loader {
  0%,
  10% {
    --a: 0deg;
    --h: 0;
  }
  100% {
    --a: 360deg;
    --h: 100;
  }
}
