body {
  #font-size: 62.5%;
  #font-size: 32.5%;
  font-style: Arial;
}

.animation-box {
  #width: 75%;
  #height: 27.5rem;
  width: 100%;
  #max-width:100%;
  #background-color: blue;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.animation-container {
  width: 1000rem;
  height: 30rem;
}

@keyframes topFadeOut {
  0% {
    position: absolute;
    top: -3rem;
    opacity: 0;
  }

  75% {
    position: absolute;
    top: 25%;
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@keyframes bottomFadeOut {
  0% {
    position: absolute;
    bottom: -5rem;
    opacity: 0;
  }

  75% {
    position: absolute;
    bottom: 25%;
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
  
}

@keyframes topFadeOutVertical {
  0% {
    position: absolute;
    top: -3rem;
    opacity: 0;
  }

  75% {
    position: absolute;
    top: 45%;
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@keyframes rightFadeInOut {
  0% {
    position: absolute;
    right: -3rem;
    opacity: 0;
  }

  75% {
    position: absolute;
    right: 10rem;
    opacity: 1;
  }

  100% {
    opacity: 0;
    right: 10rem;
  }
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
  }

  45% {
    opacity: 1;
  }

  100% {
    opacity: 0%;
  }
}

.first-text {
  #font-size: 4.4rem;
  font-size: 450%;
  position: absolute;
  left: 2.5rem;
  top: 5rem;
  opacity: 0;
  animation-name: topFadeOut;
  animation-duration: 5s;
  color: black;
  animation-iteration-count: infinite;
}

.second-text {
  #font-size: 3.4rem;
  font-size: 450%;
  position: absolute;
  top: 8.5rem;
  opacity: 0;
  animation-name: rightFadeInOut;
  animation-delay: 3s;
  animation-duration: 6s;
  color: red;
  animation-iteration-count: infinite;

}

.third-text {
  transform: rotate(-90deg);
  font-size: 2rem;
  position: absolute;
	left: 20%;
  #left: 45%;
  top: 45%;
  opacity: 0;
  animation-name: topFadeOutVertical;
  animation-delay: 7.5s;
  animation-duration: 6s;
  color: #A3DDF0;
  white-space: nowrap;
  animation-iteration-count: infinite;
}

.fourth-text {
  #font-size: 3.4rem;
  font-size: 2rem;
  position: absolute;
  #top: 10.5rem;
  top: 40%;
  left: 10%;
  opacity: 1;
  color: magenta;
  animation-name: fadeInOut;
  animation-delay: 8.5s;
  animation-duration: 9s;
  animation-iteration-count: infinite;
}

.fifth-text {
  font-size: 2rem;
  #font-size: 5rem;
  position: absolute;
  right: 5%;
  bottom: 25%;
  opacity: 1;
  color: pink;
  animation-name: bottomFadeOut;
  animation-delay: 10s;
  animation-duration: 9s;
  animation-iteration-count: infinite;
}

.pelu-text {
  #font-size: 3.4rem;
  font-size: 1rem;
  position: absolute;
  #top: 10.5rem;
  top: 15%;
  left: 10%;
  opacity: 1;
  color: magenta;
  animation-name: none;
  #animation-name: fadeInOut;
  #animation-delay: 8.5s;
  #animation-duration: 9s;
  animation-iteration-count: infinite;
}
