@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;300;400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    font-family: "Poppins", sans-serif;
}

body {
    background-color: #000;
    color: #eee;
    font-size: 12px;

    overflow: hidden;
}

header {
    width: 80%;
    height: 50px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
    margin: auto;

    & a {
        color: #eee;
        margin-right: 40px;
        font-weight: 300;
    }
}

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

    margin-top: -50px;
    overflow: hidden;

    & .list > .list-item {
        width: 100%;
        height: 100%;

        position: absolute;

        & img {
            object-fit: cover;
            width: 100%;
            height: 100%;

            filter: brightness(50%);
        }

        & .content {
            position: absolute;
            top: 20%;
            right: 10%;
            padding-right: 30%;
            width: 80%;
            color: #eee;
            text-shadow: 0 5px 10px #0004;

            & .title {
                font-size: 5em;
                font-weight: 700;
                line-height: 1.3em;
            }

            & .description {
                font-size: 1.5em;
            }

            & .buttons {
                display: grid;
                grid-template-columns: repeat(2, 130px);
                grid-template-rows: 40px;
                margin-top: 20px;
                gap: 5px
            }

            & .buttons > button {
                border: none;
                background-color: #eee;
                letter-spacing: 3px;
                font-weight: 500px;
                cursor: pointer;

                text-transform: uppercase;
            }

            & .buttons > button:hover {
                background-color: transparent;
                border: 1px solid #eee;
                color: #eee;
                transition: 0.7s;
            }

            & .buttons > button:nth-child(2) {
                background-color: transparent;
                border: 1px solid #eee;
                color: #eee;
            }

            & .buttons > button:nth-child(2):hover {
                background-color: #eee;
                color: #000;
            }
        }
    }

    & .thumb {
        position: absolute;
        bottom: 50px;
        left: 50%;
        display: flex;
        gap: 20px;
    }

    & .thumb > .thumb-item {
        width: 135px;
        height: 200px;
        position: relative;
        z-index: 3;
    }

    & .thumb > .thumb-item > img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 10px;
        filter: brightness(80%);
    }

    & .thumb .content {
        position: absolute;
        bottom: 10px;
        left: 10px; 
    }

    & .arrows {
        display: flex;
        align-items: center;
        gap: 10px;
        position: absolute;
        bottom: 120px;
        left: 120px;
        width: 300px;

        & button {
            border-radius: 10px;
            border: none;
            padding: 12px 17px;
            background-color: #eee4;
            color: #eee;
            cursor: pointer;
            font-weight: 700;
            font-size: 1.5em;
        }

        & button:hover {
            background-color: #eee;
            color: #000;
            transition: 0.7s;
        }
    }
}
/* Movimento da Thumb */

.container.next .thumb {
    animation: effectNextThumb 0.5s linear 1 forwards;
}

@keyframes effectNextThumb {
    from {
        transform: translateX(150px);
    }
}

/* Movimento última Thumb */

.container.next .thumb .thumb-item:nth-last-child(1) {
    animation: effectLastThumb 0.5s linear 1 forwards;
}

@keyframes effectLastThumb {
    from {
        width: 0;
        opacity: 0;
    }
}


/* Textos Principais */

.container .list .list-item:nth-last-child(1) .content .title,
.container .list .list-item:nth-last-child(1) .content .buttons,
.container .list .list-item:nth-last-child(1) .content .description {
    transform: translateY(50px);
    filter: blur(20px);
    opacity: 0;
    animation: showContent 0.5s 1s linear 1 forwards;
}

@keyframes showContent {
    to {
        transform: translateY(0);
        filter: blur(0);
        opacity: 1;
    }
}

.container .list .list-item:nth-last-child(1) .content .title {
    animation-delay: 1.2s;
}

.container .list .list-item:nth-last-child(1) .content .buttons {
    animation-delay: 2s;
}

.container .list .list-item:nth-last-child(1) .content .description {
    animation-delay: 1.6s;
}

/* Imagem Principal Next*/
.container.next .list .list-item:nth-last-child(1) img {
    width: 150px;
    height: 220px;
    position: absolute;
    bottom: 50px;
    left: 50%;
    border-radius: 30px;
    animation: showMainImage 0.5s linear 1 forwards;
}

@keyframes showMainImage {
    to {
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}

/* Imagem Principal Back */

.container.back .list .list-item:nth-last-child(1) img {
    position: absolute;
    bottom: 0;
    left: 0;
    animation: hideMainImage 0.5s linear 1 forwards;
    z-index: 2;
}

@keyframes hideMainImage {
    to {
        width: 135px;
        height: 200px;

        border-radius: 10px;
        left: 50%;
        bottom: 50px;
    }
}