/* Colores 
- Gris: #8b8b8b;
- Blanco: #ffffff;
- Verde 1: #388561;
- Verde 2: #3d6452;
- Verde 3: #e2ffc0;
*/

/* Tipografías */
/* Bitcount Prop Single font */
@import url('https://fonts.googleapis.com/css2?family=Bitcount+Prop+Single:wght@100..900&display=swap');
/* Google Sans Code font */
@import url('https://fonts.googleapis.com/css2?family=Google+Sans+Code:ital,wght,MONO@0,300..800,1;1,300..800,1&display=swap');

html {
    height: 100%;
    font-size: 16px;
}

body {
    font-family: "Google Sans Code", monospace;
    margin: 0;
    padding: 1.75rem;
    background: #d6d6d6;
    background: linear-gradient(0deg, rgba(139, 139, 139, 1) 0%, rgba(56, 133, 97, 1) 100%);
    background-attachment: fixed;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    display: block;
}

header {
    color: #fff;
    text-align: left;
}

#nombre {
    margin: 0 0 0 0.25rem;
    font-family: "Bitcount Prop Single", system-ui;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
        "slnt" 0,
        "CRSV" 0.5,
        "ELSH" 0,
        "ELXP" 0;
    color: #ffffff;
    border-bottom: 1px solid;
    font-size: 2.25rem;
}


main {
    display: flex;
    margin-top: 1rem;
}

nav {
    text-align: left;
    font-size: 0.75rem;
    display: flex;
    flex: 0 0 20%;
    flex-direction: column;
    max-width: 200px;
    margin-right: 20px;
}

nav a {
    color: #ffffff;
    background-color: #3d6452;
    text-decoration: none;
    margin-top: 0.5rem;
    padding-left: 0.2rem;
    padding-right: 0.2rem;
    width: fit-content;
}

#nav-img {
    width: 140px;
    margin-top: 1rem;
    padding-left: 0.2rem;
    padding-right: 0.2rem;
    filter: hue-rotate(190deg)
}

#contenido {
    flex: 1;
    max-width: 600px;
    font-size: 0.75rem;
    font-weight: 400;
    color: #ffffff;
}

#contenido>* {}

#contenido p {
    line-height: 1.5;
}

#contenido img {
    max-width: 100%;
}

#galeria img {
    margin: 0 auto;
    margin-bottom: 1rem;
}

#cover-home-mobile {
    display: none;
}

#cover-home-mobile, #nav-img{
    animation: 3s linear infinite alternate hue-rotate;
}


@media (max-width: 720px) {

    main {
        flex-direction: column;
    }

    nav {
        flex-wrap: wrap;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        max-width: 100%;
        margin: 0;
    }

    nav a {
        margin-right: 0.25rem;
    }

    #nav-img {
        display: none;
    }

    #cover-home-mobile {
        filter: hue-rotate(190deg);
        display: block;
        margin: 2rem auto;
        max-width: 260px !important;
    }

    #contenido {
        margin-top: 1rem;
        text-align: justify;
    }
}

@keyframes hue-rotate {
  from {
    filter: hue-rotate(0);
  }

  to {
    filter: hue-rotate(360);
  }
}