body, html {
    margin: 0;
    padding: 0;
    height: 100%;
}

.root{
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.back{
    width: 100%;
    height: 100%;
    position: absolute;
}

#content-project-index{
    width: 85%;
    height: 92%;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

#projects-title-index{
    height: 120px;
}

#projects-container-index{
    width: 100%;
    height: 100%;
}


#project01{
    position: absolute;
    top: 19%;
    left: 14%;
    width: 14%;
    height: 45%;
    max-width: 14%;
    max-height: 45%;
    object-fit: fill;
}

#project02{
    position: absolute;
    bottom: 0%;
    left: 44%;
    width: 16%;
    height: 45%;
    max-width: 16%;
    max-height: 45%;
    object-fit: fill;
}


#project03{
    position: absolute;
    top: 25%;
    right: 10%;
    width: 14%;
    height: 45%;
    max-width: 14%;
    max-height: 45%;
    object-fit: fill;
}

#project01 img, #project02 img, #project03 img{
    width: 100%; 
    height: auto; 
    display: block; 
    max-width: 100%;
}

.back-video{
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

@supports (scrollbar-width: auto) {
    #projects-container-index {
        scrollbar-color: var(--scrollbar-color-thumb) var(--scrollbar-color-track);
        scrollbar-width: var(--scrollbar-width);
    }
}

@supports selector(::-webkit-scrollbar) {
    #projects-container-index::-webkit-scrollbar-thumb {
        background: var(--scrollbar-color-thumb);
    }
    #projects-container-index::-webkit-scrollbar-track {
        background: var(--scrollbar-color-track);
    }
    #projects-container-index::-webkit-scrollbar {
        max-width: var(--scrollbar-width-legacy);
        max-height: var(--scrollbar-width-legacy);
    }
}

@media (max-width: 1000px){
    .content{
        width: 100%;
        height: 100%;
    }

    #projects{
        position: relative;
        top: 0%;
        left: 0%;
    }

    #content-project-index{
        width: 100%;
    }

    #projects-container-index{
        width: 100%;
        height: 100%;
        display: flex;
        overflow-x: hidden;
        overflow-y: auto;
        position: relative;
        flex-direction: column;
        justify-content: start;
        align-items: center;
        text-align: center;
        box-sizing: border-box;
        padding-left: 32px;
        padding-right: 32px;
        padding-top: 16px;
        padding-bottom: 16px;
        gap: 80px;
        --scrollbar-color-thumb: red;
        --scrollbar-color-track: black;
        --scrollbar-width: thin;
        --scrollbar-width-legacy: 10px;
    }

    #project01 img, #project02 img, #project03 img{
        width: 100%; 
        height: auto; 
        display: block; 
        max-width: 100%;
    }

    #project01{
        position: relative;
        top: 0%;
        left: -30%;
        width: 173px;
        height: 300px;
        max-width: 50%;
        max-height: 50%;
    }

    #project02{
        position: relative;
        top: 0%;
        left: 15%;
        width: 205px;
        height: 300px;
        max-width: 50%;
        max-height: 50%;
    }

    #project03{
        position: relative;
        top: 0%;
        right: 30%;
        width: 176px;
        height: 300px;
        max-width: 50%;
        max-height: 50%;
    }

    .back-video{
        object-fit: cover;
    }
}