@font-face{
  font-family: "Joyride W05 STD";
  src: url("fonts/406b56da0c31245c249b3a3c61560d1a.eot");
  src: url("fonts/406b56da0c31245c249b3a3c61560d1a.eot?#iefix")format("embedded-opentype"),
      url("fonts/406b56da0c31245c249b3a3c61560d1a.woff")format("woff"),
      url("fonts/406b56da0c31245c249b3a3c61560d1a.woff2")format("woff2"),
      url("fonts/406b56da0c31245c249b3a3c61560d1a.ttf")format("truetype"),
      url("fonts/406b56da0c31245c249b3a3c61560d1a.svg#Joyride W05 STD")format("svg");
  font-weight:normal;
  font-style:normal;
  font-display:swap;
}

/* text rotate */
.box {
  width: 100%;
  height: auto;
}
.box-headline {
  width: 100%;
  font-family: "Joyride W05 STD";
  text-transform: uppercase;
  line-height: 0.3;
  display: flex;
  flex-wrap: nowrap;
}

.box-headline span:first-child {
  font-size: 3rem;
  margin-right: 1rem;
  height: 60px;
  font-weight: 400;
}

.box-headline span:last-child {
  font-size: 3rem;
  height: 60px;
}

@media screen and (max-width: 992px) {
  .box-headline span:first-child,
  .box-headline span:last-child {
    font-size: 2.2rem;
    line-height: 0.6;
    flex-direction: row;
  }
}

@media screen and (max-width: 480px) {
  .box-headline span:first-child,
  .box-headline span:last-child {
    font-size: 1.3rem;
    line-height: 0.6;
    flex-direction: column;
  }
}

.box-words-wrapper {
  display: flex;
  flex-wrap: nowrap;
  position: relative;
}

.box-words-wrapper b {
  position: absolute;
  white-space: nowrap;
  color: white;
  top: 0;
  left: 0;
}

.box-words-wrapper b i em {
  font-style: normal;
  border-bottom: 1px solid white;
  height: 66px;
}

@media screen and (max-width: 480px) {
  .box-words-wrapper b i em {
    height: 26px;
  }
}

@media screen and (max-width: 768px) {
  .box-words-wrapper b i em {
    height: 50px;
  }
}

.box-words-wrapper b i:last-child{
  color: #e0fe52 !important;
}

.box-words-wrapper b.is-visible {
  position: relative;
}

.box-headline.rotate-2 .box-words-wrapper {
  -webkit-perspective: 300px;
  perspective: 300px;
}

.box-headline.rotate-2 i,
.box-headline.rotate-2 em {
  display: inline-block;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.box-headline.rotate-2 b {
  opacity: 0;
}

.box-headline.rotate-2 i {
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  -webkit-transform: translateZ(-20px) rotateX(90deg);
  transform: translateZ(-20px) rotateX(90deg);
  opacity: 0;
}

.is-visible .box-headline.rotate-2 i {
  opacity: 1;
}

.box-headline.rotate-2 i.in {
  -webkit-animation: box-rotate-2-in 0.4s forwards;
  animation: box-rotate-2-in 0.4s forwards;
}


.box-headline.rotate-2 i.out {
  -webkit-animation: box-rotate-2-out 0.4s forwards;
  animation: box-rotate-2-out 0.4s forwards;
}

.box-headline.rotate-2 em {
  -webkit-transform: translateZ(20px);
  transform: translateZ(20px);
}

@-webkit-keyframes box-rotate-2-in {
  0% {
    opacity: 0;
    -webkit-transform: translateZ(-20px) rotateX(90deg);
  }
  60% {
    opacity: 1;
    -webkit-transform: translateZ(-20px) rotateX(-10deg);
  }
  100% {
    opacity: 1;
    -webkit-transform: translateZ(-20px) rotateX(0deg);
  }
}
@keyframes box-rotate-2-in {
  0% {
    opacity: 0;
    -webkit-transform: translateZ(-20px) rotateX(90deg);
    transform: translateZ(-20px) rotateX(90deg);
  }
  60% {
    opacity: 1;
    -webkit-transform: translateZ(-20px) rotateX(-10deg);
    transform: translateZ(-20px) rotateX(-10deg);
  }
  100% {
    opacity: 1;
    -webkit-transform: translateZ(-20px) rotateX(0deg);
    transform: translateZ(-20px) rotateX(0deg);
  }
}
@-webkit-keyframes box-rotate-2-out {
  0% {
    opacity: 1;
    -webkit-transform: translateZ(-20px) rotateX(0);
  }
  60% {
    opacity: 0;
    -webkit-transform: translateZ(-20px) rotateX(-100deg);
  }
  100% {
    opacity: 0;
    -webkit-transform: translateZ(-20px) rotateX(-90deg);
  }
}
@keyframes box-rotate-2-out {
  0% {
    opacity: 1;
    -webkit-transform: translateZ(-20px) rotateX(0);
    transform: translateZ(-20px) rotateX(0);
  }
  60% {
    opacity: 0;
    -webkit-transform: translateZ(-20px) rotateX(-100deg);
    transform: translateZ(-20px) rotateX(-100deg);
  }
  100% {
    opacity: 0;
    -webkit-transform: translateZ(-20px) rotateX(-90deg);
    transform: translateZ(-20px) rotateX(-90deg);
  }
}
</style>