.rotating-text {
    display: block;
    overflow: hidden;
    margin: 0 auto;
    margin-left: auto;
    margin-right: auto;
    /* height: 1.3em; */
    /* font-size: 76px; */
    background-color: #0062F7;
    padding: 40px 80px 40px 80px;
    position: relative;
    border-radius: 0px;
    white-space: nowrap;
    width: auto;
    text-align: center;
}

@media (max-width: 768px) {
    .rotating-text {
        padding: 15px 20px;
    }

    .letter {
        transform: translateY(140%);
    }
}

.word-container {
    display: inline-block;
    position: relative;
    white-space: pre;
}

.letter {
    display: inline-block;
    transform: translateY(250%);
    visibility: hidden;
}

.enter {
    animation-fill-mode: forwards;
    animation-name: slideUpIn;
    animation-timing-function: ease-out;
    visibility: visible;
}

@keyframes slideUpIn {
    0% {
        transform: translateY(100%);
        visibility: visible;
    }

    100% {
        transform: translateY(0);
        visibility: visible;
    }
}

@keyframes slideWordOut {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(-100%);
        opacity: 0;
    }
}