.preloader-wrapper {
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  z-index:500;
  background-image: radial-gradient( circle farthest-corner at 10% 20%,  rgba(159,33,57,1) 0.1%, rgb(194, 58, 83) 94.2% );
  background-size: 100%;
}

.loading-container {
    width: 100%;
    max-width: 520px;
    text-align: center;
    color: #fff;
    position: relative;
    margin-left:auto;
    margin-right:auto;
    
    &:before {
      content: '';
      position: absolute;
      width: 100%;
      height: 3px;
      background-color: #fff;
      bottom: 0;
      left: 0;
      border-radius: 10px;
      animation: movingLine 2.4s infinite ease-in-out;
    }
  }
  
  @keyframes movingLine {
    0% {
      opacity: 0;
      width: 0;
    }
  
    33.3%, 66% {
      opacity: 0.8;
      width: 100%;
    }
    
    85% {
      width: 0;
      left: initial;
      right: 0;
      opacity: 1;
    }
  
    100% {
     opacity: 0;
     width: 0;
    }
  }
  
  .loading-text {
    font-size: 5vw;
    line-height: 64px;
    letter-spacing: 10px;
    margin-bottom: 32px;
    display: flex;
    justify-content: space-evenly;
    span {
      animation: moveLetters 2.4s infinite ease-in-out;
      transform: translatex(0);
      position: relative;
      display: inline-block;
      opacity: 0;
      text-shadow: 0px 2px 10px rgba(46, 74, 81, 0.3); 
    }
  }
  
  .loading-text span:nth-child(1) {
      animation-delay: 0.1s;
  }

  .loading-text span:nth-child(2) {
      animation-delay: 0.2s;
  }

  .loading-text span:nth-child(3) {
      animation-delay: 0.3s;
  }

  .loading-text span:nth-child(4) {
      animation-delay: 0.4s;
  }

  .loading-text span:nth-child(5) {
      animation-delay: 0.5s;
  }

  .loading-text span:nth-child(6) {
      animation-delay: 0.6s;
  }

  .loading-text span:nth-child(7) {
    animation-delay: 0.7s;
  }

  .loading-text span:nth-child(8) {
      animation-delay: 0.8s;
  }


  
  @keyframes moveLetters {
    0% {
      transform: translateX(-15vw);
      opacity: 0;
    }
    
    33.3%, 66% {
      transform: translateX(0);
      opacity: 1;
    }
    
    100% {
      transform: translateX(15vw);
      opacity: 0;
    }
  }


  .loader {
    border: 7px solid #f3f3f3;
    border-radius: 50%;
    border-top: 7px solid #9f2139;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    position: absolute;
    left:50%;
    top:50%;
    margin-left:-25px;
    margin-top:-25px;
    z-index: 20; 
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}