#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}

.ghost-loader {
  position: relative;
  width: 140px;
  height: 140px;
}

.ghost-loader .svg-ghost {
  position: absolute;
  width: 72px;
  height: 84px;
  top: 5px;
  left: 50%;
  transform-origin: center bottom;
  animation: bouncyFloat 2s ease-in-out infinite;
}

.ghost-loader .shadow {
  position: absolute;
  width: 60px;
  height: 10px;
  top: 85px;
  left: 50%;
  background-color: rgba(89, 191, 154, 0.49);
  border-radius: 50%;
  animation: shadowScale 2s ease-in-out infinite;
  z-index: -1;
}

.ghost-loader .loading-dots {
  position: absolute;
  top: 125px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
}

.ghost-loader .loading-dots span {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 0 4px;
  background-color: #59BF9A;
  border-radius: 50%;
  animation: dotBounce 1.5s infinite ease-in-out;
}

.ghost-loader .loading-dots span:nth-child(1) {
  animation-delay: 0s;
}
.ghost-loader .loading-dots span:nth-child(2) {
  animation-delay: 0.15s;
}
.ghost-loader .loading-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes bouncyFloat {
  0%, 100% {
    transform: translateX(-50%) translateY(0) scaleX(1) scaleY(1) rotateZ(0deg);
  }
  10% {
    transform: translateX(-50%) translateY(5px) scaleX(1.1) scaleY(0.9) rotateZ(0deg);
  }
  40% {
    transform: translateX(-50%) translateY(-35px) scaleX(0.9) scaleY(1.1) rotateZ(-5deg);
  }
  50% {
    transform: translateX(-50%) translateY(-40px) scaleX(0.95) scaleY(1.05) rotateZ(5deg);
  }
  60% {
    transform: translateX(-50%) translateY(-35px) scaleX(0.9) scaleY(1.1) rotateZ(-2deg);
  }
  90% {
    transform: translateX(-50%) translateY(0) scaleX(1.15) scaleY(0.85) rotateZ(0deg);
  }
  95% {
    transform: translateX(-50%) translateY(0) scaleX(0.98) scaleY(1.02) rotateZ(0deg);
  }
}

@keyframes shadowScale {
  0%, 100% {
    transform: translateX(-50%) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: translateX(-50%) scale(0.55);
    opacity: 0.25;
  }
}

@keyframes dotBounce {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.75;
  }
  30% {
    transform: translateY(-8px);
    opacity: 1;
  }
}
