// creating a shadow of the text
@function makelongshadow($length, $angle) {
  $val: 0px 0px transparent;
  @for $i from 1 through $length {
    $val: #{$val}, #{$i}px #{$i * $angle}px #aaa;
  }
  @return $val;
}

/* style body */
body {
  background-color: radial-gradient(#fff, #aaa);
  width: 100%;
  height: 100%;
  overflow: hidden;
  padding-top: 100px;
}

/* style text */
.text {
  text-align: center;
  font-size: 100px;
  font-weight: 700;
  outline: none;
  animation: animate 3.5s infinite;
}

/* add animation to the text */

@keyframes animate {
  0% {
    text-shadow: makelongshadow(100, 1);
    color: #f3f3f3;
    transform: scale(1.5, 1.5);
  }

  10% {
    text-shadow: makelongshadow(100, 1.5);
    color: #f3f3f3;
    transform: scale(1.5, 1.5);
  }
  13% {
    color: #f3f3f3;
  }
  20% {
    color: #e90418;
    text-shadow: none;
    transform: scale(1.1, 1.1);
  }
  75% {
    opacity: 1;
  }
  80% {
    opacity: 0;
    color: #e90418;
    transform: scale(0.85, 0.9);
  }
  100% {
    opacity: 0;
  }
}
