.word-drum {
    position: fixed;
    left: 50%;
    transform: translate(-50%, 0);
    overflow: hidden;
    z-index: 40;
    opacity: 0;
    pointer-events: none;
}

.word-drum-1 {
    top: 35%;
    height: 170px;
    width: 100%;
}

.word-drum-2 {
    top: 56%;
    height: 70px;
    width: 100%;
}

.word {
    position: absolute;
    width: 100%;
    text-align: center;
    font-family: 'Circe Rounded', Arial, sans-serif;
    line-height: 100%;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0;
}

.word-drum-1 .word {
    font-size: 170px;
    letter-spacing: 10%;
    font-weight: 800;
    font-family: 'Circe Rounded', Arial, sans-serif;
}

.word-drum-2 .word {
    font-size: 70px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
    font-family: 'Circe Rounded', Arial, sans-serif;
}

.word-1 {
    animation: wordAnimation1 6s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
    z-index: 3;
}

.word-2 {
    animation: wordAnimation2 6s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
    z-index: 2;
}

.word-3 {
    animation: wordAnimation3 6s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
    z-index: 1;
}

.word-4 {
    animation: wordAnimation4 6s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
    z-index: 3;
}

.word-5 {
    animation: wordAnimation5 6s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
    z-index: 2;
}

.word-6 {
    animation: wordAnimation6 6s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
    z-index: 1;
}

@keyframes wordAnimation1 {
    0%, 25% {
        transform: translateY(0);
        opacity: 1;
    }
    30%, 95% {
        transform: translateY(100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes wordAnimation2 {
    0%, 25% {
        transform: translateY(-100%);
        opacity: 0;
    }
    30%, 60% {
        transform: translateY(0);
        opacity: 1;
    }
    65%, 95% {
        transform: translateY(100%);
        opacity: 0;
    }
    100% {
        transform: translateY(-100%);
        opacity: 0;
    }
}

@keyframes wordAnimation3 {
    0%, 60% {
        transform: translateY(-100%);
        opacity: 0;
    }
    65%, 95% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(100%);
        opacity: 0;
    }
}

@keyframes wordAnimation4 {
    0%, 25% {
        transform: translateY(0);
        opacity: 1;
    }
    30%, 95% {
        transform: translateY(-100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes wordAnimation5 {
    0%, 25% {
        transform: translateY(100%);
        opacity: 0;
    }
    30%, 60% {
        transform: translateY(0);
        opacity: 1;
    }
    65%, 95% {
        transform: translateY(-100%);
        opacity: 0;
    }
    100% {
        transform: translateY(100%);
        opacity: 0;
    }
}

@keyframes wordAnimation6 {
    0%, 60% {
        transform: translateY(100%);
        opacity: 0;
    }
    65%, 95% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-100%);
        opacity: 0;
    }
}

@keyframes hideWordDrum {
    from {
        transform: translate(-50%, 0) scale(1);
        opacity: 1;
    }
    to {
        transform: translate(-50%, 30vh) scale(3);
        opacity: 0;
    }
}

@keyframes showWordDrum {
    from {
        transform: translate(-50%, 30vh) scale(3);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0) scale(1);
        opacity: 1;
    }
}

@keyframes hideWords {
    from {
        transform: translate(-50%, 0) scale(1);
        opacity: 1;
    }
    to {
        transform: translate(-50%, -50px) scale(0.8);
        opacity: 0;
    }
}

@keyframes showWords {
    from {
        transform: translate(-50%, -50px) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0) scale(1);
        opacity: 1;
    }
}

@media screen and (max-width: 768px) {
    .word-drum-1 {
        top: 28%;
        height: 60px;
        width: 100%;
    }

    .word-drum-2 {
        top: 37%;
        height: 28px;
        width: 100%;
    }

    .word-drum-1 .word {
        font-size: 60px;
        letter-spacing: 10%;
        font-weight: 800;
        font-family: 'Circe Rounded', Arial, sans-serif;
    }

    .word-drum-2 .word {
        font-size: 28px;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        font-weight: 600;
        font-family: 'Circe Rounded', Arial, sans-serif;
    }
}

@media screen and (max-width: 415px) {
    .word-drum-1 {
        top: 25%;
    }

    .word-drum-2 {
        top: 36%;
    }

    .word-drum-2 .word {
        font-size: 24px;
    }
} 