.half-circle-spinner .circle {
  border: 4px solid transparent;
  border-radius: 100%;
  content: "";
  height: 100%;
  position: absolute;
  width: 100%;
}

.half-circle-spinner {
  border-radius: 100%;
  height: 60px;
  margin: 20px auto;
  position: relative;
  width: 60px;
}

.half-circle-spinner,
.half-circle-spinner * {
  box-sizing: border-box;
}

.half-circle-spinner .circle.circle-1 {
  animation: half-circle-spinner-animation 1s infinite;
  border-top-color: var(--primary-color);
}

.half-circle-spinner .circle.circle-2 {
  animation: half-circle-spinner-animation 1s infinite alternate;
  border-bottom-color: var(--primary-color);
}

@keyframes half-circle-spinner-animation {
  0% {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(1turn);
  }
}

.loading-screen-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  z-index: 50;
}

.sticky-center {
  position: sticky;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* loading css */
.loading-spinner {
  display: inline-block;
  width: 5rem;
  height: 5rem;
  vertical-align: -0.125em;
  border: 0.4rem solid var(--secondary-color-new);
  border-right-color: transparent;
  border-radius: 50%;
  -webkit-animation: 0.75s linear infinite loading-spinner;
  animation: 0.75s linear infinite loading-spinner;
}

.loading-spinner-sm {
  width: 1rem;
  height: 1rem;
  border-width: 0.2em;
}

@keyframes loading-spinner {
  to {
    transform: rotate(360deg);
  }
}

/* custom loader */
.loader-custom {
  display: none;
  width: 60px;
  aspect-ratio: 4;
  --_g: no-repeat radial-gradient(circle closest-side, #ffffff 90%, #0000);
  background: var(--_g) 0% 50%, var(--_g) 50% 50%, var(--_g) 100% 50%;
  background-size: calc(100% / 3) 100%;
  animation: l7 1s infinite linear;
}

@keyframes l7 {
  33% {
    background-size: calc(100% / 3) 0%, calc(100% / 3) 100%, calc(100% / 3) 100%;
  }

  50% {
    background-size: calc(100% / 3) 100%, calc(100% / 3) 0%, calc(100% / 3) 100%;
  }

  66% {
    background-size: calc(100% / 3) 100%, calc(100% / 3) 100%, calc(100% / 3) 0%;
  }
}
