*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    scroll-behavior: smooth;
}


body{
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    text-align: left;
    background-color: black;
    color: white;
}


h1, h2, h3{
color:rgb(187, 3, 3) ;
}

p{
    text-indent: 5%;
}


/*SCROLLBAR*/
::-webkit-scrollbar {
    background-color: transparent;
    width: 10px;
  }  
  
::-webkit-scrollbar-thumb {
    background: linear-gradient(#021663, red);
    border-radius: 100px;
  }




/*NAVEGACION*/
.header {
    position: fixed;
    top: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    padding: 0.2rem 1rem;
    background-color: white;
    backdrop-filter: blur(10px);
    color: black;
    border-radius: 3rem;
    box-shadow: 0 0 15px rgba(209, 9, 9, 0.986);
    z-index: 1000;
    width: fit-content;
}

.logo {
    width: 40px;
    height: 40px;
}

.logo:hover {
    opacity: 60%;
}

#menu-icon {
    font-size: 2rem;
    margin-left: 2rem;
    cursor: pointer;
}
#menu-icon:hover {
    opacity: 60%;
}

.navigation {
    list-style: none;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(255, 255, 255, 0.829);
    padding: 1rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 20%;
    transform: translateY(-10px);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.navigation.activar {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.navigation li a {
    color: black;
}

.navigation li a:hover {
    color: rgb(8, 34, 107);
}

.navigation li a:active {
    color: red;
}

.active {
    font-style: italic;
    font-weight: bold;
}




/*HOME PAGE*/
.main-container{
    margin: 5% 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.home-image img{
    width: 60vw;
    margin-top: 7rem;
    margin-bottom: 1rem;
    border-radius: 50%;
    animation: floatImage 4s ease-in-out infinite;
    transition: 0.4s ease;
}

@keyframes floatImage{
    0%{
        transform: translateY(0);
    }
    50%{
        transform: translateY(-2.4rem);
    }
    100%{
        transform: translateY(0);
    }
}

.home-content{
    margin-top: 5%;
}

.home-content h1{
    font-size: 50px;
}

#especial{
 text-indent: 0;
}




/*BIO PAGE*/
.bio-image img{
    width: 60vw;
    margin-top: 4rem;
    border: 1px solid rgb(65, 3, 116);
    border-radius: 50%;
    box-shadow: 0 0 25px rgba(79, 1, 143, 0.8);
    transition: 0.4s ease;
}

.bio-image img:hover {
    box-shadow: 0 0 25px rgba(79, 1, 143, 0.8),
                0 0 35px rgba(79, 1, 143, 0.8),
                0 0 45px;
}

.bio-content{
    margin-top: 15vw;
}

h3{
    margin-top: 10%
}

.listado{
    margin-left: 5%;
}



/*WORKS PAGE*/
.works-content {
    margin-top: 3rem;
    display:grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-auto-rows: 25vh;
    grid-gap: 10px;
    animation: appear 1s ease-in-out;
    transition: 0.4s ease;
}
@keyframes appear{
    from{
        opacity: 0.2;
        transform: translateY(35rem);
    }
    to{
        opacity: 1;
        transform: translateY(0rem);

    }
}

.col {
    background-color: white;
    position:relative;
}

.col-1 {
    grid-column: 1 / 3;
    grid-row:2 / 4;
}
.col-2 {
    grid-column: 1 / 4;
    grid-row:5 / 5; 
}
.col-3 {
    grid-row-start: 4;
    grid-row-end:4;
    grid-column-start: 1;
    grid-column-end: 5;
}
.col-4 {
    grid-column: 3 / 5;
    grid-row:2 / 4;
}
.col-6 {
    background: none;
    font-size: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    grid-column: 1 / 5;
    grid-row:1 / 1;
}
.col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.caption{
    color:rgb(102, 0, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    background-color:rgba(255, 255, 255, 0.6);
    position: absolute;
    width: 100%;
    height:100%;
    opacity:0;
    transition: opacity 0.4s ease-in;
}

.caption:hover{
    opacity:1;
}




/*ALL WORK PAGES*/
.pagina-content{
    margin-top: 4rem;
}

.pagina-content h3 {
    display: inline-flex;
    margin-top: 2rem;
    margin-right: 15%;
    color: white
}

.pagina-fotos {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    justify-items: center; 
    margin-top: 2rem;
}

.pagina-fotos img {
    width: 100%;
    max-width: 600px;
    height: auto;
    object-fit: contain;
    max-height: 80vh;
}


.comic-fotos{
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    justify-items: center; 
    margin-top: 2rem;
}

.comic-fotos img {
    width: 100%;
    height: auto;
    object-fit: contain;
}



/*CONTACT PAGE*/
.contact-content{
    margin-top: 10vw;
    text-align: center;
}

.contact-content h1, h2{
    margin-top: 10%;
    color: white;
}

#insta, #pinterest, #mail {
    font-size: 2rem;
    color: rgb(255, 17, 0);
}

#fbk, #mail{
    font-size: 2rem;
}

#nombre{
    margin-top: 3%;
}

#nombre, #correo, #review {
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(79, 1, 143, 0.8);
    text-align: center;
    width: 65vw;
}

#insta:hover, #fbk:hover, #pinterest:hover, .contact p:hover {
 opacity: 50%;
}

input[type="button"] {
    background-color: white;
    box-shadow: 0 0 15px rgba(139, 0, 0, 0.8);
    border: none;
    border-radius: 20px;
    padding: 10px 10px;
    cursor: pointer;
}

input[type="button"]:hover {
    background-color: rgb(236, 8, 8);
    color:white;
}

input[type="button"]:active {
    background-color: rgb(79, 1, 143);
    color:white;
}




/*RESPONSIVE*/
@media (min-width: 1024px) {
    body{
        font-size: 15px;
    }

    /*NAVEGACION*/
    .header {
        top: 1rem;
        padding: 0.2rem 1.5rem; 
        gap: 2rem; 
    }

    .logo{
        width: 45px;
        height: 45px;
    }

    .active{
    font-style: normal;
    }

    .navigation {
        list-style: none;
        display: flex;
        flex-direction: row;
        position: static;
        width: auto;
        background-color: transparent;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        gap: 2rem;
        opacity: 1;
        transform: translateY(0);
    }

    #menu-icon {
        display: none;
    }


    /*HOME PAGE*/
    .main-container{
        flex-direction:row;
    }

    .home-image img{
        width: 25vw;
        margin-top: 6rem;
    }

    .home-content{
        margin-left: 5rem;
    }



    /*BIO PAGE*/
    .bio-image img{
        width: 25vw;
        margin-top: 6rem;
        margin-left: 5rem;
    }

    .bio-content{
        margin-top: 4rem;
    }

    h3{
        margin-top: 5%
    }



/*WORKS PAGE*/
    .works-content {
        grid-auto-rows: 13vw; 
    }
    .col-1 {
        grid-column: 1 / 2;
        grid-row:1 / 4;
    }
    .col-2 {
        grid-column: 2 / 4;
        grid-row:1 / 2; 
        
    }
    .col-3 {
        grid-row-start: 3;
        grid-row-end:3;
        grid-column-start: 2;
        grid-column-end: 4;
        
    }
    .col-4 {
        grid-column: 4 / 4;
        grid-row:1 / 3;
    }
    .col-5{
        grid-column: 4 / 4;
        grid-row:3 / 3;
    }
    .col-6{
        grid-column: 2 / 4;
        grid-row:2 / 3;
    }



    /*APPLY TO EACH WORK PAGES */
    .pagina-fotos {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 50px;
        width: 100%;
    }
    
    .pagina-fotos img {
        width: 100%;
        height: auto;
    }

    .comic-fotos img {
       width: 55%;
    }



/*CONTACT PAGE*/
.contact-content{
        margin-top: 5px;
}

#insta, #fbk, #pinterest, #mail{
        font-size: 3rem;
}
 #nombre, #correo, #review {
        width:40vw;
    }
}