 
@import url("https://fonts.googleapis.com/css2?family=Heebo:wght@400;600&family=Poppins:wght@100;500;600;800;900&family=Lobster+Two:ital,wght@0,400;0,700;1,400&display=swap");
*/

.container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.container .box {
  transform-style: preserve-3d;
  animation: animate 8s ease-in-out infinite alternate;
}

.container .box span {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.5) 90%, transparent);
  text-transform: uppercase;
  line-height: 0.76em;
  position: absolute;
  color: #fff;
  font-size: 3.5em;
  white-space: nowrap;
  font-weight: bold;
  padding: 0px 10px;
  transform-style: preserve-3d;
  text-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
  transform: translate(-50%, -50%) rotateX(calc(var(--i) * 36deg)) translateZ(150px);
}

.container .box span i {
  font-style: initial;
}

.container .box span i:nth-child(1) {
  color: goldenrod;
}

.container .box span i:nth-child() {
  color: gold;
}

@keyframes animate {
  0% {
    transform: perspective(800px) rotateX(0deg) rotate(0deg);
  }
  100% {
    transform: perspective(800px) rotateX(360deg) rotate(360deg);
  }
}
.container .box {
  transform-style: preserve-3d;
  animation: animate 5s ease-in-out 1 forwards, fadeOut 0s ease-in-out 5s forwards;
}
@keyframes fadeOut {
  0% {
   visibility: visible;
  }
  100% {
    visibility: hidden;
  }
}