@import url('https://fonts.googleapis.com/css2?family=Chonburi&display=swap');

:root {
    --fondo: #f7d5b1;
    --fuente: #2c3950;
    --fuente-principal: 'Roboto', sans-serif;
    --fuente-titulos: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--fuente-principal);
}


body {
    color: var(--fuente);
    background-color: var(--fondo);    
    font-size: 1.2em;
}

#menu {
    font-size: 0.5em;
    display: flex;
    justify-content: flex-end;
    margin: 30px 50px 0 0;
    cursor: pointer;
}

header {
    width: 50%;
    margin: 2em auto 0 auto;
    text-align: center;
}

h2 {
    font-family: var(--fuente-titulos);
    font-size: 2em;
    font-weight: 100;
}

h2 span {
    font-weight: 300;
}


h4 {
    font-family: var(--fuente-titulos);
}

p {
    margin-top: 2px;
    font-size: 0.7em;
    font-weight: 300;
} 

.div {
    margin: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.div1 {
    border-bottom: 1px solid var(--fuente);   
}

.div2 {
    width: 325px;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.div2 a,
h3 {
    padding: 0 3px;
    margin-top: 1px;
}

div.container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-top: 4em;
}

.bio {
    text-align: center;
    width: 60%;
    border-left: 1px solid var(--fuente);
    border-top: 1px solid var(--fuente);
    margin: 4em auto 0 auto;
    padding: 15px 10px 40px 20px;
    
}

div.card {
    color: var(--fuente);
    padding: 7px;
    padding: 15px 10px 40px 20px;
    border-left: 1px solid var(--fuente);
    border-top: 1px solid var(--fuente);
    width: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    margin: 20px;

}

footer { 
    width: 50%;
    margin: 2em auto 0 auto;
    text-align: center;
    border-top: 1px var(--fuente) solid;
    padding: 1em;
    font-size: 0.55rem;
    font-weight: 300;
    margin-top: 125px;
}

footer p {
    font-size: 1.1em;
}

a {
    text-decoration: none;
    color: var(--fuente);
}

h3:hover,
.div2 a:hover {
    color: var(--fondo);
    background-color: var(--fuente);
}

h3,
.div2 a,
div.card,
div.bio {
    transition: color 0.3s ease, background-color 0.3s ease;
}


div.card:hover,
div.bio:hover {
    color: var(--fondo);
    background-color: var(--fuente);
}

@media (prefers-color-scheme: dark) {
    body {
        color: var(--fondo);
        background-color: var(--fuente);    
    }
    .div1 {
        border-bottom: 1px solid var(--fondo);   
    }
    
    .bio {
        border-left: 1px solid var(--fondo);
        border-top: 1px solid var(--fondo);
    }
    
    div .card {
        color: var(--fondo);
        border-left: 1px solid var(--fondo);
        border-top: 1px solid var(--fondo);
    }
    
    footer {
        border-top: 1px var(--fondo) solid;
    }
    
    a {
        text-decoration: none;
        color: var(--fondo);
    }

    h3:hover,
    .div2 a:hover {
    color: var(--fuente);
    background-color: var(--fondo);
    }

    div.card:hover, 
    div.bio:hover {
        color: var(--fuente);
        background-color: var(--fondo);
    }
} 