header {
    color: white;
    background-color: teal;
    text-align: left;
    margin-bottom: 1em;
    position: sticky;
    top: 0;
    font-family: Menlo, Consolas, Monaco, Adwaita Mono, Liberation Mono, Lucida Console, monospace;
}

body {
    margin: 0px;
    background-color: snow;
    font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, Adwaita Sans, Cantarell, Ubuntu, roboto, noto, helvetica, arial, sans-serif;
}

h1 {
    margin: 0px 1vw;
}

a {
    color: inherit;
}

.grid-proyectos {
    display: grid;
    grid: auto / auto auto;
}

.Proyecto-carta {
    position: relative;
    color: black;
    padding: 1%;
    border-style: solid;
    border-width: 1px;
    border-color: lightgray;
    border-radius: 1vw;
    padding: 1vw;
    text-decoration: none;
    margin: 0.5vw;
    background: #ffffff;
    background: linear-gradient(150deg, rgba(255, 255, 255, 1) 0%, rgba(255, 250, 242, 1) 70%, rgba(0, 128, 128, 0.1) 100%);

}

.Proyecto-carta:hover {
    border-color: teal;
    background: #ffffff;
    background: linear-gradient(150deg, rgba(255, 255, 255, 1) 0%, rgba(255, 250, 242, 1) 70%, rgba(0, 128, 128, 0.2) 100%);
}

.Proyecto-titulo {
    margin: auto;
    padding: 1ch 0px;
    text-align: left;
    text-wrap: balance;
}

.Proyecto-descripcion {
    margin: auto;
    margin-bottom: 1em;
    color: dimgray;
    text-align: left;
    float: left;
    width: 90%;
}

.Proyecto-imagen {
        display: inline;
        border-radius: 1vw;
        width: 10vw;
        float: left;
        height: 10vw;
}


/* Cuando el aspect ratio esta por debajo de 0.8 (incluido) cambia la forma en la que muestra el contenido */
@media (max-aspect-ratio: 0.8) {
    .Proyecto-imagen {
        max-width: 30vh;
        display: inline;
        border-radius: 1vw;
        width: 100%;
        float: left;
        height: auto;
    }
}

.tag {
    border-radius: 100vw;
    font-weight: bold;
    color: white;
    padding: 0em 0.5em;
    text-transform: lowercase;
    margin: 0px;
    position: absolute;
    bottom: 8px;
    right: 16px;
}


.tag-gamedev {
    background: #4169E1;
    background: linear-gradient(60deg, rgba(65, 105, 225, 1) 0%, rgba(106, 90, 205, 1) 100%);
}

.tag-web {
    background: #DC143C;
    background: linear-gradient(60deg, rgba(220, 20, 60, 1) 0%, rgba(255, 69, 0, 1) 100%);
}

.tag-electronica {
    background: #2E8B57;
    background: linear-gradient(60deg, rgba(46, 139, 87, 1) 0%, rgba(128, 128, 0, 1) 100%);
}

.tag-programacion {
    background: #B8860B;
    background: linear-gradient(90deg, rgba(184, 134, 11, 1) 0%, rgba(218, 165, 32, 1) 100%);
}
