/* --- CSS STYLES --- 
Version: 1.0.2

Theme Name: amaabj
*/
* {
    box-sizing: border-box;
}

body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    background-color: #F0E6DA;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

    /* height: 100vh */
    /* padding: 20px */
    text-align: center;
    padding-top: 6rem;
}

.logo {
    /* width: 13.75rem */
    max-width: 80vw;

    /* height: auto */
    /* margin-bottom: 25px */
    display: block;
    z-index: 10;
    max-width: 10rem;
}

.text-container {
    position: relative;
    width: 100%;
    height: 40px;
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.word {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #000000;
}

.letter {
    opacity: 0;
    display: inline-block;
    will-change: opacity, transform;

    /* TOTAL DURATION = 12s */
    animation: loopSequence 12s infinite ease-in-out;
}

/* FIXED ANIMATION TIMING:
           To prevent overlap between words (especially with 3 words),
           the sequence must finish by 25% (3 seconds).
           Because the stagger adds ~1s delay to the last letter, 
           3s + 1s = 4s (perfect fit for the next word). */
@keyframes loopSequence {
    0% {
        opacity: 0;
        transform: translateY(5px);
    }

    5% {
        opacity: 1;
        transform: translateY(0);
    }

    15% {
        opacity: 1;
        transform: translateY(0);
    }

    25% {
        opacity: 0;
        transform: translateY(-5px);
    }

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

.image {
    max-width: 65%;
    margin-top: 0.8rem;
}

@media (max-width: 981px) {
    .image {
        max-width: 100%;
    }
}