﻿/* Stagger the animation for each word */
.animated-text span:nth-child(1) {
  animation-delay: 0.3s !important;
}

.animated-text span:nth-child(2) {
  animation-delay: 0.6s !important;
}

.animated-text span:nth-child(3) {
  animation-delay: 0.9s !important;
}

.animated-text span:nth-child(4) {
  animation-delay: 1.2s !important;
}

.animated-text span:nth-child(5) {
  animation-delay: 1.5s !important;
}

.animated-text span:nth-child(6) {
  animation-delay: 1.8s !important;
}

.animated-text span:nth-child(7) {
  animation-delay: 2.1s !important;
}

.animated-text span:nth-child(8) {
  animation-delay: 2.4s !important;
}

.animated-text span:nth-child(9) {
  animation-delay: 2.7s !important;
}

.animated-text span:nth-child(10) {
  animation-delay: 3s !important;
}

.animated-text span:nth-child(11) {
  animation-delay: 3.3s !important;
}

.animated-text span:nth-child(12) {
  animation-delay: 3.6s !important;
}

.animated-text span:nth-child(13) {
  animation-delay: 3.9s !important;
}

.animated-text span:nth-child(14) {
  animation-delay: 4.2s !important;
}

.animated-text span:nth-child(15) {
  animation-delay: 4.5s !important;
}

.animated-text span.arrowslide {
  animation-delay: 3.9s !important;
}

.animated-text span:not(.arrowslide) {
  opacity: 0;
  animation: popIn 1s forwards;
  font-size: 40px;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.arrowslide {
  animation: SlideRight 6s ease 5s 1 normal forwards !important;
  display: inline-block;
  opacity: 0;
}

@keyframes SlideRight {
  0% {
    opacity: 0;
    transform: translateX(-700px);
  }
  1% {
    opacity: 1;
  }
  50% {
    transform: translateX(1000px);
  }
  51% {
    opacity: 0;
  }
  52% {
    /*opacity: 0;*/
    transform: translateX(-1000px);
  }
  100% {
    transform: translateX(0px);
    opacity: 1;
  }
}
@media screen and (max-width: 768px) {
  @keyframes SlideRight {
    0% {
      opacity: 0;
      transform: translateX(-500px);
    }
    1% {
      opacity: 1;
    }
    50% {
      transform: translateX(500px);
    }
    51% {
      opacity: 0;
    }
    52% {
      /*opacity: 0;*/
      transform: translateX(-500px);
    }
    100% {
      transform: translateX(0px);
      opacity: 1;
    }
  }
}
@media screen and (max-width: 430px) {
  @keyframes SlideRight {
    0% {
      opacity: 0;
      transform: translateX(-300px);
    }
    1% {
      opacity: 1;
    }
    50% {
      transform: translateX(300px);
    }
    51% {
      opacity: 0;
    }
    52% {
      /*opacity: 0;*/
      transform: translateX(-300px);
    }
    100% {
      transform: translateX(0px);
      opacity: 1;
    }
  }
}
