#loader {
  position: fixed;
  inset: 0;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.4s ease;
}

#loader svg {
  animation: rotate 1.4s linear infinite;
  stroke: var(--text);
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -35;
  }
  100% {
    transform: rotate(360deg);
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -124;
  }
}
