* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

body {
    font-family: Arial, sans-serif;
    background: url('assets/background-home.jpg') no-repeat center center fixed;
    background-size: cover;
}


.item {
    width: 100vw;
    height: 100vh;

    display: grid;
    grid-template-rows: 1fr 1fr 1fr 1fr;

    background-color: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(15px);

    list-style-type: none;

    animation: slideUp 4s linear infinite;
    animation-fill-mode: both;

    &.hovered {
        animation-play-state: paused;
    }

    &:has(h1) {
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 5rem;
        animation: fadeOutUp 4s linear 1;
        animation-fill-mode: forwards;
        z-index: 100;
        position: absolute;
        top: 0;
    }

    &>li {
        width: 100%;
        height: 100%;

        &>a {
            width: 100%;
            height: 100%;

            display: flex;
            align-items: center;
            justify-content: flex-start;

            padding: 0.5rem 1rem;

            font-size: 3rem;
            color: white;
            text-decoration: none;

            transition: all 0.1s ease;

            &:hover {
                justify-content: center;
                background-color: rgba(255, 255, 255, 0.2);

                &>a {
                    transform: scale(1.2);
                }
            }
        }

        &:nth-child(odd)>a {
            justify-content: flex-end;

            &:hover {
                justify-content: center;
            }
        }
    }
}

@keyframes fadeOutUp {
    0% {
        opacity: 1;
        top: 0;
    }

    99% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        top: calc(-100vh);
    }
}

@keyframes slideUp {
    0% {
        transform: translateY(0);
    }

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