* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
}

body{
    font-family: 'Bree Serif', serif;
    background-color:cadetblue;
    min-height: 100vh;
    display: flex;
    flex-direction:column;
    justify-content: space-between;
}

header{
    background-color:white;
    justify-content: space-between;
    box-sizing: border-box;  
    font-size: 1rem;
    line-height: 1.2em;
}

a {
    color: cadetblue
}

nav ul{
    justify-content: space-between;
    display: flex;
    list-style: none;
    text-decoration: none;
}

header nav ul li{
    height: 3em;
    width: 17%;
    display: flex;
    align-items: center;
    justify-content: center;
    color:cadetblue;
    text-align: center;
    font color: aliceblue;
    }


main{padding: 0.8rem;
    background-color: cadetblue;
    flex-grow: 1;
    margin: 1em 0;
    
}

.perfil{
    align-items: center;
    display: flex;
    flex-direction:row;
    margin-bottom: 1.5em;
    justify-content: center;
    }

main h1{
   color: aliceblue;
    font-size: 3em;
    }

.foto {
    display: flex;
    flex-direction: column;
    border-radius: 50%;
    max-width: 30vw;
    height: auto;
    margin-right: 1em;
    }

.materias{
    justify-content: space-between;
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 1.5em;
}

section div{
    justify-content: space-between;
    margin-bottom: 0.8em;
    width: 25em;  
}

h4{
    padding: 0.2em 1em;
    color: white;
    background-color: darkslategray;
    margin-bottom: 0.6em;
    
}
section div ul li {
    color: darkslategrey;
    font-family: 'Roboto', sans-serif; 
}

.datosfacu{
    background-color: darkslategray;
    color: cadetblue;
    padding: 1.5em;
    margin-bottom: 1em;
    font-size: 0.7em;
    display: flex;
    flex-direction: column;
}

.datosfacu div {
    display: flex; 
    flex-direction: row; 
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
}


.datosfacu div ul {
    width: 25rem; 
    margin-bottom: 1em; 
    
} 

.datosfacu div ul li {
    color: cadetblue; 
    margin-top: 0.3em;
}

h2 {
color: white;
}


img {
    max-width: 100%;
    height: auto;
}

h3{
    color: white;
}

figcaption{
    color: white
}

footer {
    background-color:aliceblue;
    color: cadetblue;
    padding: 10px;
}

h5{
font-family: 'Roboto', sans-serif; 
}

@media (max-width: 500px)
{header {font-size: 0.7em;}}


@media (max-width: 900px)
{main h1 {font-size: 2em;}}

@media (max-width: 500px)
{main h1 {font-size: 1.8em;}}
