@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

:root {
    --height-box: 25%; /* details modal*/
    --height-buttons: 0;
    --height-card-1: 0;
    --height-card-2: 0;
    --height-img: 130px; /* details modal*/

    --height-screen: 0;
    --height-title-pro: 0;
}

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

body {
    background-color: #eaeaea;
    font-family: "Ubuntu", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-weight: 400;
    overflow: hidden;
    user-select: none;
}

.containers {
    box-shadow: 0 30px 50px #dbdbdb;
    height: 100%;
    left: 50%;
    overflow-x: hidden;
    overflow-y: auto;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}

#slide {
    margin-top: 50px;
    width: max-content;

}

.buttons {
    left: calc(50% + 13%);
    position: absolute;
    top: calc(50% + 180px);
    width: 100%;
    z-index: 3;

    & button {
        background-color: #001f60;
        border: 1px solid #001f60;
        border-radius: 10px;
        color: #FFF;
        font-family: "Ubuntu", sans-serif;
        font-size: 12pt;
        padding: 5px 15px !important;
        transition: 0.5s;
    }

    :hover {
        background-color: #071538;
        color: #FFF;
        cursor: pointer;
    }
}


.info_project {
    color: #eee;
    display: block;
    font-family: "Ubuntu", sans-serif;
    font-size: 40px;
    font-weight: bold;
    left: calc(100vw - 37%);
    position: absolute;
    top: calc(50% - 220px);
    z-index: 2;
}

/* cartoes fechados */
.item-pro {
    background-position: 50% 50%;
    background-size: cover;
    border-radius: 20px;
    box-shadow: 0 18px 20px 7px #00000052;
    display: inline-block;
    height: 300px;
    position: absolute;
    top: 50%;
    transform: translate(0, -50%);
    transition: 0.5s;
    width: 200px;
    z-index: 1;


    .content {
        color: #eee;
        display: none;
        font-family: "Ubuntu", sans-serif;
        left: 100px;
        padding: 0;
        position: absolute;
        text-align: left;
        top: 50%;
        transform: translate(0, -50%);
        width: 500px;


        .content-social {
            animation: showcontent 0.5s ease-in-out 0.5s 1 forwards;
            display: inline-flex;
            font-size: 19pt;
            left: 0;
            list-style: none;
            opacity: 0;
            padding: 0;
            position: relative;

            & li {
                padding: 0 15px !important;
                text-align: center;
            }
        }


    }

    .name {
        animation: showcontent 0.5s ease-in-out 1 forwards;
        font-size: 40px;
        font-weight: bold;
        opacity: 0;
    }

    .des {
        animation: showcontent 0.5s ease-in-out 0.3s 1 forwards;
        margin-bottom: 25px !important;
        opacity: 0;
    }

    button {
        animation: showcontent 0.5s ease-in-out 0.6s 1 forwards;
        background-color: #001f60;
        border: none;
        border-radius: 10px;
        color: #FFF;
        opacity: 0;
        padding: 10px 20px !important;
        position: relative;
        text-decoration: none;
        top: -7px;
    }

    [role='button'] {
        animation: showcontent 0.5s ease-in-out 0.6s 1 forwards;
        background-color: #001f60;
        border: none;
        border-radius: 10px;
        color: #FFF;
        display: inline-block;
        opacity: 0;
        padding: 5px 15px !important;
        position: relative;
        text-decoration: none;
    }

    &:not(:nth-child(2)) {
        background-attachment: fixed;
        background-image: var(--img);
        background-position: center center;
        background-repeat: no-repeat;
        background-size: cover;
    }

    &:nth-child(2) {

        background: linear-gradient(to bottom, rgba(0, 0, 0, .55), rgba(0, 0, 0, .55)), var(--img);
        background-attachment: fixed;
        background-position: center center;
        background-repeat: no-repeat;
        background-size: cover;
    }

    &:nth-child(1),
    &:nth-child(2) {
        border-radius: 0;
        box-shadow: none;
        height: 100%;
        left: 0;
        top: 0;
        transform: translate(0, 0);
        width: 100%;
    }

    &:nth-child(2) .content {
        display: block;
        z-index: 11111;
    }


    &:nth-child(3) {
        left: calc(100vw - 37%);
    }

    &:nth-child(4) {
        left: calc(100vw - 20%);
    }

    &:nth-child(n+5) {
        left: calc(100vw + 50%);
        opacity: 0;
    }


}

@keyframes showcontent {
    from {
        opacity: 0;
        transform: translate(0, 100px);
        filter: blur(33px);
    }
    to {
        opacity: 1;
        transform: translate(0, 0);
        filter: blur(0);
    }
}

@media (width >= 1400px) {
    .item-pro {

        &:nth-child(3) {
            left: calc(50% + 220px);
        }

        &:nth-child(4) {
            left: calc(50% + 440px);
        }

        &:nth-child(n+5) {
            left: calc(50% + 660px);
            opacity: 0;
        }
    }

    .buttons {
        left: calc(50% + 220px);
    }
}

@media (513px <= width <= 975px) {
    .info_project {
        font-size: 2.5vw;
    }

    .item-pro {
        width: 15%;

        .content {
            :is(img) {
                display: block;
                margin: 0 auto !important;
                position: relative;
                width: fit-content;
            }

            .name {
                font-size: 3.3vw;
            }
        }

        &:not(:nth-child(2)) {

        }

        &:nth-child(2) .content {
            left: 10%;
            width: calc(100% - 50%);

        }

        &:nth-child(3) {
        }

        &:nth-child(4) {
        }

        &:nth-child(n+5) {
        }
    }


}

@media (width <= 512px) {
    .containers {
        left: 0;
        top: 0;
        transform: none;
    }

    #slide {
        height: 100vh;
        left: 0;
        position: relative;
        width: auto;
    }

    .item-pro {
        .content {
            :is(img) {
                display: block;
                margin: 0 auto !important;
                position: relative;
                width: 40vw;
            }

            .name {
                font-size: 5.5vw;
            }

            .des {
                margin-bottom: 25px !important;
                max-height: 4.5rem;
                min-height: 60px;
                overflow: auto;
            }
        }

        &:nth-child(2) .content {
            left: 0;
            padding: 15px 20px !important;
            top: 0;
            transform: none;
            width: 100%;

        }

        &:nth-child(3) {
            height: 5.6rem;
            left: 20px;
            margin: 0 auto !important;
            top: var(--height-card-1);
            width: calc(100% - 40px);
        }

        &:nth-child(n+4) {
            opacity: 0;
        }
    }

    .info_project {
        font-size: 6.2vw;
        left: 20px;
        position: relative;
        top: var(--height-title-pro) !important;
        z-index: 2;
    }

    .buttons {
        left: 20px;
        top: var(--height-buttons);

        & button {
            padding: 5px 15px !important;
        }
    }
}


/* MODAL */
.modal-body {
    .btn-close-modal {
        background: transparent;
        border: 0;
        color: #FFF;
        display: inline-block;
        font-size: 26pt;
        mix-blend-mode: difference;
        opacity: 1;
        position: absolute;
        right: 25px;
        top: 5px;
        z-index: 1;
    }

    .left-content {
        background: linear-gradient(to bottom, rgba(0, 0, 0, .65), rgba(0, 0, 0, .65)), var(--img);
        background-attachment: local;
        background-position: center center;
        background-repeat: no-repeat;
        background-size: cover;
        height: 100vh;
        position: relative;

        & p {
            max-height: 100px;
            overflow: auto;
            text-align: justify;
        }

        .logo-port {
            height: 120px;
        }
    }

    .right-content {
        height: 100vh;
        overflow-x: hidden;
        overflow-y: auto;
        position: relative;
    }

    .bottom-logo {
        bottom: 0;
        position: absolute;
        width: 100%;
    }
}

@media (768px <= width <= 991px ) {
    .modal-body {
        .left-content {
            .logo-port {
                height: 100px;
            }
        }
    }
}

@media (width <= 767px) {
    .modal-body {
        .left-content {
            height: 100%;

            .logo-port {
                height: 80px;
            }
        }

        .right-content {
            overflow-y: hidden !important;
            height: 100%;
        }

        .bottom-logo {
            position: relative;
        }
    }
}

