#preloader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  z-index: 9999;
}

#preloader svg {
  width: 16rem;
  height: auto;
  color: #347aff;
}

#preloader svg path {
  stroke: currentColor;
  stroke-width: 3;
  fill: currentColor;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  fill-opacity: 0;
  animation: preloader-stroke-fill 2.5s linear infinite;
}

#preloader svg g:nth-of-type(2) path {
  stroke-width: 4;
}

@keyframes preloader-stroke-fill {

  0% {
    stroke-dashoffset: 1000;
    fill-opacity: 0;
    opacity: 0.6;
  }

  35% {
    stroke-dashoffset: 0;
    fill-opacity: 0.4;
    opacity: 1;
  }

  60% {
    stroke-dashoffset: 0;
    fill-opacity: 1;
    opacity: 1;
  }

  75% {
    stroke-dashoffset: 300;
    fill-opacity: 0.4;
    opacity: 0.85;
  }

  80% {
    stroke-dashoffset: 500;
    fill-opacity: 0.1;
    opacity: 0.7;
  }

  100% {
    stroke-dashoffset: 1000;
    fill-opacity: 0;
    opacity: 0;
  }
}