body {
    margin: 0;
    overflow-x: hidden;

}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {

    .active {
        width: 20%;
    }

    .active img {
        width: 100%;
    }

    .apart {
        display: flex;
        justify-content: space-between;
    }

    #vacio {
        width: 0%;
        margin: 0%;
        padding-left: 0%;
        padding-top: 0%;
        padding-bottom: 0%;
        padding-right: 0%;

    }

    .lleno {
        width: 30%;
        font-size: 12px;


    }




    .cuadro {
        width: 100%;
        height: 50vh;

    }


    main {

        width: 100%;

    }
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
    .active {
        width: 10%;
    }

    .active img {
        width: 100%;
    }

    .apart {
        display: flex;
        justify-content: space-between;

    }

    #vacio {
        width: 0%;
        margin: 0%;
        padding-left: 0%;
        padding-top: 0%;
        padding-bottom: 0%;
        padding-right: 0%;

    }

    .lleno {
        width: 30%;
        font-size: 12px;

    }




    .cuadro {
        width: 100%;
        height: 50vh;


    }

    main {

        width: 100%;

    }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
    .active {
        width: 10%;
    }

    .active img {
        width: 100%;
    }

    .apart {
        display: flex;
        justify-content: space-between;

    }

    #vacio {
        width: 0%;
        margin: 0%;
        padding-left: 0%;
        padding-top: 0%;
        padding-bottom: 0%;
        padding-right: 0%;

    }

    .lleno {
        width: 30%;
        font-size: 17px;

    }




    .cuadro {
        width: 100%;
        height: 50vh;


    }


    main {

        width: 100%;

    }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
    .active {
        width: 20%;
    }

    .active img {
        width: 100%;
    }

    .apart {
        display: flex;
        justify-content: flex-end;


    }

    #vacio {
        width: 0%;
        margin: 0%;
        padding-left: 0%;
        padding-top: 0%;
        padding-bottom: 0%;
        padding-right: 0%;

    }

    .lleno {
        width: 10%;
        font-size: 20px;
        margin-left: 5%;
        margin-right: 5%;



    }




    .cuadro {
        width: 33.33333333333333%;
        height: 50vh;

    }

    #lila {
        width: 100%;
        height: 50vh;
    }
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
    .active {
        width: 10%;
    }

    .active img {
        width: 100%;
    }

    .apart {
        display: flex;
        justify-content: flex-end;

    }


    #vacio {
        width: 0%;
        margin: 0%;
        padding-left: 0%;
        padding-top: 0%;
        padding-bottom: 0%;
        padding-right: 0%;

    }

    .lleno {
        width: 10%;
        font-size: 22px;
        margin-left: 5%;
        margin-right: 5%;

    }






    .cuadro {
        width: 33.33333333333333%;
        height: 50vh;

    }

    #lila {
        width: 100%;
        height: 50vh;
    }


    main {

        width: 100%;

    }
}



.topnav {
    overflow: hidden;
    background-color: #1f1f1f;

}

.topnav a {
    float: left;
    display: block;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
}

.lleno:hover {
    background-color: #1f1f1f;
    color: rgb(204, 255, 0);
    text-decoration: line-through
}

.topnav a.active {
    background-color: #1f1f1f;
    color: white;
    padding-left: 10%;


}

.topnav .icon {
    display: none;

}





@media screen and (max-width: 600px) {
    .topnav a:not(:first-child) {
        display: none;
    }

    .topnav a.icon {
        float: left;
        display: block;
    }

    .topnav a.active {
        text-align: left;

    }
}

@media screen and (max-width: 600px) {
    .topnav.responsive {
        position: relative;
    }

    .topnav.responsive .icon {
        position: absolute;
        right: 10%;
        top: 0;
    }

    .topnav.responsive a {
        float: none;
        display: block;

    }
}

@media screen and (max-width: 768px) {
    .topnav a:not(:first-child) {
        display: none;
    }

    .topnav a.icon {
        float: left;
        display: block;
        padding-right: 10vw;
    }

    .topnav a.active {
        text-align: left;
    }
}

@media screen and (max-width: 768px) {
    .topnav.responsive {
        position: relative;
    }

    .topnav.responsive .icon {
        position: absolute;
        right: 0;
        top: 0;
    }

    .topnav.responsive a {
        float: none;
        display: block;

    }
}




#trabajos {
    width: 100%;
    display: flex;
    padding: 0px;
    margin: 0px;
    flex-wrap: wrap;
    z-index: 99;

}

.cuadro {

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    object-fit: cover;
    list-style-type: none;



}

#lila {

    background-color: #780AE9;

}


#amarillo {
    background-color: #FFC803;

}


#rosa {
    background-color: #EF82EB;
}

#verde {
    background-color: #00B775;
}



.overlay img {

    width: 100%;
    height: 100%;
    object-fit: cover;

}


.overlay {
    /* position: absolute; */
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80%;
    width: 90%;
    opacity: 0;
    transition: .5s ease;
    background-color: #18ad6c;


}

h1 { text-align: center;
   font-size: 30pt;
    position: absolute;
font-family: Arial, Helvetica, sans-serif;
color: #f2f2f2;
}

.cuadro:hover .overlay {
    opacity: 1;
}


::-webkit-scrollbar {
    width: 0.8rem;


}


/* Track */
::-webkit-scrollbar-track {
    /* box-shadow: inset 0 0 20px black;  */
    background: linear-gradient(0deg, rgba(0, 183, 117, 1) 0%, rgba(0, 183, 117, 1) 50%, rgba(120, 10, 233, 1) 50%, rgba(120, 10, 233, 1) 100%);

}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #1f1f1f;


}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #313131;

}