*{
    margin: 0;
    cursor: url(../img/cursor.png), auto;
}

::-webkit-scrollbar {
    width: 3px;
}

::-webkit-scrollbar-track {
    background: white;
}

::-webkit-scrollbar-thumb {
    background: black;
}

a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    cursor: url(../img/cursorlink.png), pointer;
}

#loader{
    position: fixed;
    inset: 0;
    background: white;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.5s ease;
}

#loader img{
    width: 180px;
    opacity: 1;
    transition: opacity 0.4s ease;
}

body{
    opacity: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-repeat: no-repeat;
    height: 100vh;
}

#top_bar{
    width: 100%;
    height: 60px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    z-index: 3;
}


#logo{
    width: 180px;
    height: 45px;
    text-align: center;
    margin: 20px;
    background-image: url(../img/cgilpeiro_loop.gif);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

#menu{
    display: flex;
    height: 100%;
    width: 300px;
    margin-right: 20px;
    flex-direction: row;
    font-family: 'Manrope', sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-size: .9em;
    align-items: center;
    justify-content: space-around;
}

#menu a:hover {
    border-bottom: solid black 1px;
    padding-bottom: 1px;
	opacity: 0.4;
}

.selected{
    border-bottom: solid black 1px;
    padding-bottom: 1px;
}

#work_all{
    width: 80%;
    display: flex;
    flex-direction: column;
    margin-top: 10vh;
}

#work_header p{
    font-family: 'Manrope', sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-size: 3em;
}

#work_content{
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: flex-start;
    margin-top: 5vh;
}

.work_item{
    position: relative;
    width: calc((100% - 50px) / 3);
    height: 35vh;
    display: block;
    border-radius: 20px;
    overflow: hidden;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.work_item:hover{
    cursor: url(../img/cursorlink.png), pointer;
}

.work_item::before{
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: .3s ease;
}

.work_item:hover::before{
    background: rgba(0,0,0,0.4);
}

.work_overlay{
    position: absolute;
    left: 20px;
    bottom: 20px;
    z-index: 2;
    color: white;
    font-family: 'Manrope', sans-serif;
    border-radius: 18px;
}

.work_category{
    font-size: 1em;
    font-weight: 500;
    margin-bottom: 4px;

    opacity: 0;
    transform: translateY(-3px);
    transition: .25s ease;
}

.work_item:hover .work_category{
    opacity: 1;
    transform: translateY(0);
}

.work_title{
    font-size: 1.7em;
    font-weight: 700;
    line-height: 1;
}

#footer{
    width: 95%;
    margin: 15vh  5vh;
    font-family: 'Manrope', sans-serif;
}

#footer_top{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 80px;
}

#footer_cta{
    width: 45%;
}

#footer_cta h2{
    font-size: 3em;
    line-height: .95;
    font-weight: 600;
    margin-bottom: 35px;
}

.footer_button{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 26px;
    border-radius: 50px;
    background: black;
    color: white;
    font-weight: 600;
    transition: .25s;
}

.footer_button:hover{
    opacity: .7;
}

#footer_nav{
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-size: 1.1em;
    font-weight: 600;
}

#footer_nav a:hover{
    opacity: .5;
}

#footer_line{
    width: 100%;
    height: 2px;
    background: #d9d9d9;
    margin-bottom: 35px;
}

#footer_bottom{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#footer_logo{
    height: 50px;
}

#footer_bottom p{
    font-size: .9em;
    color: #777;
}



/*TABLET*/

@media only screen and (max-width: 1200px) {

    
}




@media only screen 
and (min-device-width : 500px) 
and (max-device-width : 1200px){
           
        
}


/*MOVIL*/

@media only screen and (max-width: 650px) {
    #top_bar{
        height: 100px;
    }

    #logo{
        width: 250px;
        height: 70px;
    }

    #menu{
        width: 500px;
        font-size: 1.6em;
    }

    #work_all{
        width: 95%;
        margin-top: 5vh;
    }

    #work_content{
        gap: 15px;
        margin-top: 3vh;
    }

    .work_item{
        width: calc((100% - 15px) / 2);
        aspect-ratio: 3 / 2;
        height: auto;
    }

    .work_category{
        opacity: 1;
        transform: none;
        font-size: 1.2em;
    }

    .work_title{
        font-size: 2.1em;
    }
    
}


@media only screen 
and (min-device-width : 100px) 
and (max-device-width : 650px){
    #top_bar{
        height: 100px;
    }

    #logo{
        width: 250px;
        height: 70px;
    }

    #menu{
        width: 500px;
        font-size: 1.6em;
    }

    #work_all{
        width: 95%;
        margin-top: 5vh;
    }

    #work_content{
        gap: 15px;
        margin-top: 3vh;
    }

    .work_item{
        width: calc((100% - 15px) / 2);
        aspect-ratio: 3 / 2;
        height: auto;
    }

    .work_category{
        opacity: 1;
        transform: none;
        font-size: 1.2em;
    }

    .work_title{
        font-size: 2.1em;
    }
    
}