@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Oswald:wght@200..700&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');
body, main, section {
    padding: 0;
    margin: 0;
    width:100%;
    height: 100%;
    box-sizing: border-box;
}

section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    gap: 32px;
    padding: 20px;
    height: 100vh;
    color: white;
    background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0)), url(../assets/heroImage.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

h1, h3, h4 {
    margin: 0;
    text-align: center;
    font-weight: 400;
}

h1 {
    font-family: "Bebas Neue", sans-serif;
    font-weight: 400;
    /* font-size: 150px; */
}

h3 {
    font-family: "Raleway", sans-serif;
    font-size: 24px;
}

h4 {
    font-family: "Bebas Neue", sans-serif;
    font-size: 24px;
}

h1 > .heading-centering {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 24px;
}

.word-container, .i-word-container {
    width: 1ch;
    max-width: fit-content;
    overflow: hidden;
    font-size: min(150px, 10vw);
}

div.i-word-container {
    /* width: 26px; */
    width: min(26px, 2vw);
}

.word-container.open {
    animation-name: openWordAnimation;
    animation-duration: 2.5s;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

.i-word-container.open {
    animation-name: openIWordAnimation;
    animation-duration: 2.5s;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

.word-container.closed {
    animation-name: closeWordAnimation;
    animation-duration: 2.5s;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

.i-word-container.closed {
    animation-name: closeIWordAnimation;
    animation-duration: 2.5s;
    animation-timing-function:linear;
    animation-fill-mode: forwards;
}







@keyframes closeWordAnimation {
    0% {
        width: 100%;
    }
    100% {
        width: 1ch;
    }
}

@keyframes closeIWordAnimation {
    0% {
        width: 100%;
    }
    100% {
        width: min(26px, 2vw);
    }
}


@keyframes openWordAnimation {
    0% {
        width: 1ch;
    }

    100% {
        width: 100%;
    }
}

@keyframes openIWordAnimation {
    0% {
        width: min(26px, 2vw);
    }

    100% {
        width: 100%;
    }
}


@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}