.spa-preloader {
  height: 100%;
  opacity: 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  z-index: 2000;
  transition: opacity 300ms ease-out;
}

.spa-preloader__bg {
  background-color: #e9eef5;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.spa-preloader__animation {
  align-items: center;
  display: flex;
  justify-content: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate3d(-50%, -50%, 0);
  width: 100%;
  z-index: 2;
}

.preloader__shapes {
  display: flex;
  white-space: nowrap;
}

.preloader__shape {
  position: relative;
  width: 3.2rem;
}

.preloader__shape:before {
  animation-direction: alternate;
  animation-duration: 1.6s;
  animation-iteration-count: infinite;
  animation-name: preloader-anim-shape;
  animation-timing-function: linear;
  background-color: #009a44;
  border-radius: 10rem;
  content: '';
  height: 15rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate3d(-50%, -50%, 0);
  width: 100%;
}

.preloader__shape:nth-child(even) {
  transform: translate3d(0, -2.8rem, 0);
}

.preloader__shape:nth-child(even):before {
  background-color: #333340;
}

.preloader__shape:nth-child(2):before { animation-delay: -0.2s; }
.preloader__shape:nth-child(3):before { animation-delay: -0.4s; }
.preloader__shape:nth-child(4):before { animation-delay: -0.6s; }
.preloader__shape:nth-child(5):before { animation-delay: -0.8s; }


.spa-preloader.active {
  opacity: 1;
}


@keyframes preloader-anim-shape {
  0% {
    height: 15rem;
  }

  100% {
    height: 3.2rem;
  }
}
