@charset "utf-8";

@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,500i,700,900');

* {
    box-sizing: border-box;
    list-style: none;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color:white;
}

#contenedor {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contenidos{
    background-color: ivory;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: auto;
    width: 900px;
}



body {
    background-color:white;
    padding: 10px;
}

/* ---------------HEADER NAVEGADOR----------------------- */

.header-nav{
    background-color: rgb(240, 245, 206);
    display: flex;
    justify-content: space-between;
    align-content: center;
    flex-wrap: wrap;
    width: 900px;
     margin: auto;
    margin-bottom: 50px;
}

.header-nav img {
  width: 90px;
  margin-left: 20px;
}

.header-nav ul{
    display: flex;
    flex-wrap: wrap;
}

a{
    font-size: 0.8em;
}

nav ul li {
    list-style-type: none; /* quita las viñetas de la lista*/
    line-height:2rem; /* interlinea*/
    position:relative;   
}

nav ul li ul{
    position:absolute;
    background-color:rgb(240, 245, 206);
    transition:1s all;
    margin: auto;
    padding: 0;
}

nav ul li a{
    text-decoration:none; /* quita el subrayado de los vínculos*/
    color:rgb(87,70,32); /* le da color al texto del vínculo */
    padding:0 2.4rem; /* margen interno de un elemento*/
    display:block; /* muestra al elemento como un bloque */
    transition:1s all;
}

nav ul li a:hover{
    background-color:rgba(195, 123, 178, 0.4); 
}

nav ul#principal li:hover>ul{ 
    max-height:500px;
    overflow:visible;
}


/* menu principal */
ul#principal{
    background-color:rgb(240, 245, 206);
    display:flex;
    flex-direction:row;
     position: relative;
}

/* menu secundario y terciario */

ul#principal li ul{
    max-height:0; /* su máxima altura es de 0*/
    overflow:hidden; /* oculto el contenido que desborda del elemento */
    font-size: 0.8em;
}
main section h2{
    color: rgb(248,215,193);
    font-size: 1.3em;
    background-color:rgb(230,62,130);
    border-radius: 0.3em;
    padding: 0.4em;
    font-family:'Roboto', sans-serif;
    font-weight: 700;
}

main section h3{
    color: rgb(192,208,76);
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 1em;
}

.materias{
    color: rgb(87,70,32);
    margin-left: 2em; 
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-style: italic;
    font-size: 0.8em;
}

.tema{
    background-color: white;
    flex-wrap: wrap;
    flex-basis: 25%;
    align-items: center;
    justify-content: space-between;
    margin: auto;
    padding: 2em;
}

h4 {
    background-color:rgb(240, 245, 206);
    color: rgb(87,70,32);
    border-radius: 5px;
    text-align: center;
    font-weight: 700;
    font-size: 1em;
}

h5 {
    color: rgb(230,62,130);
    margin-top: -1em;
    font-weight: 500;
    font-size: 0.9em;
}

aside {
    border-color: rgb(255, 243, 235);
    border-style: double;
    padding: 10px; 
}

aside p {
    color: rgb(87,70,32);
    margin-top: 1.5em;
    margin-bottom: 2em;
    font-weight: 400;
    font-size: 0.8em;
}

aside ul{
    color: rgb(87,70,32);
    font-weight: 400;
    font-size: 0.7em;
    padding: 0;
}

footer {
    background-color: white;
    color:darkgrey; 
    font-weight: 400;
    font-size: 0.7em;
    padding-top: 1em;
    padding-bottom: 1em;
}

.main-img img{
    display: block;
    margin: auto;
    height: 250px;
    width: 250px;
    border-radius: 50%;
    border: 0.2em dotted rgb(248,215,193);
    margin-top: 20px;
}

h1{
    color: rgb(230,62,130);
    text-align: center;
    font-size: 1.5em;
    font-weight: 500;
}

.destacado{
    text-align: center;
    color: rgb(87,70,32);
    margin-top: -1.1em;
    font-weight: 400;
    font-size: 0.75em; 
    margin-bottom: 2em;
}

