.animation-container {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100vh;
  justify-content: center;
  position: relative;
}

.titlestart {
  font-size: 150px;
  font-weight: 900;
  animation: color-change 2s linear infinite alternate;
}

.text-animation {
  font-size: xx-large;
  opacity: 0;
  transform: translateY(100%);
  animation: slide-in 0.5s ease-in-out forwards;
}

.color1 {
  color: #ff5733;
}

.color2 {
  color: #33ff57;
}

.color3 {
  color: #5733ff;
}

.extra-text {
  font-size: 64px;
  opacity: 0;
  transform: translateY(100%);
  animation: slide-in-extra 5s ease-in-out forwards, color-change 5s linear infinite alternate;
}

@keyframes slide-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-in-extra {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes color-change {
  0% {
    color: #ff5733;
  }

  33% {
    color: #33ff57;
  }

  66% {
    color: #5733ff;
  }

  100% {
    color: #ff5733;
  }
}

.texts {
  justify-content: center;
  align-items: center;
  display: flex;
  flex-direction: row;
}

* {
  box-sizing: border-box;
}

.newtext {
  color: #333;
  font-family: tahoma;
  display: flex;
  line-height: 1.5;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
  width: 1300px;
}

.maintext {
  /* font-size: 40px; */
  /* margin-left: 1%; */

  font-size: 3rem;
  font-weight: 500;
}

.message {
  background-color: #0a2750;
  color: #0a2750;
  display: block;
  font-size: 3rem;
  font-weight: 900;
  overflow: hidden;
  position: absolute;
  padding-left: 0.5rem;
  top: 0.2rem;
  left: 900px;
  animation: openclose 5s ease-in-out infinite;
}

.word1,
.word2,
.word3 {
  font-family: tahoma;
}

@keyframes openclose {
  0% {
    top: 0.2rem;
    width: 0;
  }

  5% {
    width: 0;
  }

  15% {
    width: 230px;
  }

  30% {
    top: 0.2rem;
    width: 230px;
  }

  33% {
    top: 0.2rem;
    width: 0;
  }

  35% {
    top: 0.2rem;
    width: 0;
  }

  38% {
    top: -4.5rem;
  }

  48% {
    top: -4.5rem;
    width: 190px;
  }

  62% {
    top: -4.5rem;
    width: 190px;
  }

  66% {
    top: -4.5rem;
    width: 0;
    text-indent: 0;
  }

  71% {
    top: -9rem;
    width: 0;
    text-indent: 5px;
  }

  86% {
    top: -9rem;
    width: 285px;
  }

  95% {
    top: -9rem;
    width: 285px;
  }

  98% {
    top: -9rem;
    width: 0;
    text-indent: 5px;
  }

  100% {
    top: 0;
    width: 0;
    text-indent: 0;
  }
}
