@import url('https://fonts.googleapis.com/css2?family=Recursive:wght@400;500;800&display=swap');
*{
    padding: 0;
    margin: 0;
    font-family: 'Recursive', sans-serif;
}
html {
    scroll-behavior: smooth;
}
body{
    background-color: #2a2b36;
}
.page{
    margin: auto;
    max-width: 80%;
    min-height: 100vh;
}
a#button {
    padding: 0.5em 1em;
    background-color: #aa14f0;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    color: white;
    transition: 0.5s;
}
a#button:hover{
   color: #aa14f0;
   background-color: white;
}


/*---- Scroll Bar ----*/
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #383838; 
} 
::-webkit-scrollbar-thumb {
    background: #aa14f0af; 
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #aa14f0; 
}

/*----Barra de Navegación----*/
nav{
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    height: 5vh;
    background-color: #333;
    
}
nav #enlaces{
    margin-right: 4em;
}
nav #enlaces a{
    color: #aa14f0;
    font-weight: 800;
    text-decoration: none;
    margin: 0 2em;
}
/*----Página de Inicio----*/
#inicio{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 95vh;
}
#inicio canvas{
    min-width: 554px;
    width: auto !important;
    height: auto !important;
}
#inicio #presentacion{
    width: 40%;
    padding-left: 17%;
    height: 40vh;
}
#inicio #presentacion * {
    margin: 1em 0;
}
#inicio #presentacion h1{
    color: #aa14f0;

}
#inicio #presentacion p{
    font-weight: 500;
    width: 60%;
    color: white;
    margin-bottom: 3em;
}

/*----Página About Me----*/
.about-page{
    margin-left: 5%;
    width: 90%;
    height: 33vh;
    display: flex;
    align-items: center;
}
.about-page .img-container{
    background-color: #aa14f0;
    border-radius: 10px;
    padding: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.about-page .img-container img{
    width: 160px;
    border-radius: 7px;
}
.about-page .about-info{
    padding:0 3em ;
}
.about-page .about-info h2 {
    margin-bottom: 0.7em ;
    color: #aa14f0;
}
.about-page .about-info p {
    margin-bottom: 0.7em ;
    color: white;
}
.about-page:last-child .about-info p{
    margin-bottom: 1.3em ;
}
/*--Modificacion pares--*/
.about-page:nth-child(2n){
    justify-content: flex-end;
}
.about-page:nth-child(2n) .about-info{
    order: -1;
    text-align: right;
}

/*----Página Proyectos----*/

#proyectos{
    height: auto;
    width: 80%;
    margin-left: 10%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: column;
}
#proyectos > h1 {
    color: #aa14f0;
    margin: 10vh 0;
}
#proyectos-grid{
    width: 90%;
    display: grid;
    grid-template-columns: 25% 25% 25%;
    grid-template-rows: auto;
    column-gap: calc(25% / 2);
    row-gap: 10vh;
}
.proyecto{
    color: white;
    background-color: #aa14f0;
    border-radius: 15px;
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-flow: column;
    padding: 10px;

}
.proyecto h3{
    margin-bottom: 1em;
}
.proyecto img{
    width: 100%;
    border-radius: 10px;
}
.hoverimg{
    position: absolute;
    bottom: 40%;
    border-radius: 10px;
    opacity: 0;
    transition: 0.3s;

}
.proyecto:hover .hoverimg{
    opacity: 1;
}
.proyecto:hover img{
    opacity: 0.5;
}
 

/*----Footer----*/
footer{
    width: 100%;
    height: 30vh;
    margin-top: 20vh;
    padding-top: 5vh;
    display: flex;
    justify-content: space-evenly;
    background-color: #aa14f0;
    border-radius: 10px 10px 0 0;
}
footer h1{
    margin-top: 5vh;
    color: white;
}
#footer-contact a{
    text-decoration: none;
    color: white;
    display: flex;
    margin: 3em;
    align-items: center;
}
#footer-contact a ion-icon{
    font-size: 2em;
}
#footer-contact a p{
    margin-left: 0.5em;
}



/*-------RESPONSIVE------*/
@media screen and (max-width: 1300px) {
    .page{
        max-width: 100%;
    }
    
    #inicio canvas{
        min-width: 0;
        width: 50vw !important;
    }

}
@media screen and (max-width: 800px) {
    .page{
        max-width: 100%;
    }
    /*---Barra de navegación---*/
    nav{
        justify-content: space-evenly;
    }
    nav #enlaces{
        margin: 0;
        display: flex;
        justify-content: space-evenly;
        width: 100%;
    }
    nav #enlaces a{
        margin: 0;
    }
    /*---Página de inicio---*/
    #inicio{
        flex-flow: column;
        text-align: center;
    }
    #inicio canvas{
        width: 70% !important;
        padding: 0;
    }
    #inicio #presentacion{
        width: 80%;
        margin: 0;
        padding: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-flow: column;
    }
    #inicio #presentacion p{
        margin: 0;
        text-align: center;
        width: 100%;
    }
    /*---Página About Me---*/

    .about-page{
        height: 25vh;
    }
    .about-page .about-info{
        width: 70%;
        padding: 0.5em;
    }
    .about-page .about-info h2{
        font-size: 1.5em;
    }
    .about-page .about-info p{
        font-size: small;
    }


    .about-page:nth-child(2n) .img-container img{
        margin: 0;
    }


    /*---Página Proyectos---*/
    #proyectos{
        width: 90%;
        margin-left: 5%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    #proyectos-grid {
        grid-template-columns: 45% 45%;
        column-gap: 10%;
    }
    .proyecto h3{
        text-align: center;
        font-size: 90%;
    }
    .proyecto img{
        margin-bottom: 1em;
    }
    .hoverimg{
        bottom: 30%;
    
    }




    /*---Footer---*/
    footer{
        height: auto;
        flex-flow: column;
    }
    footer h1{
        margin: 1em 0em 1em 1em;
    }
    footer #footer-contact a{
        margin: 1em;
    }

    
    @media screen and (max-width: 600px) {
        
        #inicio canvas{
            width: 90% !important;
            height: auto !important;
        }

        .about-page .img-container{
            padding: 5px;
            border-radius: 7px;
        }
        .about-page .img-container img{
            border-radius: 5px;
            width: 100px;
        }
        
        .about-page .about-info h2{
            font-size: 1em;
        }
        .about-page .about-info p{
            font-size: .7em;
        }
    }

    
    @media screen and (max-width: 300px) {
        
        #inicio canvas{
            width: 90% !important;
            height: 300px !important;
        }
        
        nav #enlaces a{ 
            font-size: small;
        }
        #inicio #presentacion{
            width: 95%;
        }
        #inicio #presentacion h1{
            font-size:1.5em;
        }
        #inicio #presentacion p{
            font-size: small;
        }
        
        .about-page .img-container {
            padding: 4px;
            border-radius: 5px;
        }
        .about-page .img-container img{
            border-radius: 3px;
            width: 80px;
        }

        .about-page .about-info h2 {
            font-size: small;
        }

        .about-page .about-info p {
            font-size: xx-small;
        }

        a#button {
            font-size: small;
        }
    }

  } 