@charset "uft-8"; 
@import url(https://fonts.googleapis.com/css?family=Cabin:400,700,400italic);

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "cabin", sans-serif;;
    background-color: white;
    min-height: 100vh;

    /* caja flexible*/
    display: flex;

    /* direccion de sus elementos */
    flex-direction: column;
    
    /* organizaciÃ³n de los elementos segun ele eje principal
        (vertical por la propiedad anterior) */
    justify-content: space-between;
}

header,
footer {
    background-color: #e1c347;
    padding: .25em;
}

header {
    height: 3em;
    
    /* caja flexible */
    display: flex;
    
    /* elementos colocados en los extremos del eje principal */
    justify-content: space-between;
    
    /* elementos centrados en el eje secundario */
    align-items: center;
    
}

.logofadu {
    display: block;
    width: 9em;
}

.app {
    display: block;
    width: 3em;
}

.cerrar {
    display: block;
    width: 3em;
}


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

/************ MAIN **/

main {
    background-color: black;

    /* crece para "llenar" la caja contenedora */
    flex-grow: 1;
    
    /* es caja flexible contenedora */
    display: flex;
    flex-direction: column;
}

.diseñografico {
    padding: 0.8em;
    font-weight: 100;
    color: white;
    margin-bottom: -1em;
}


.materias {
    display: flex;
    flex-direction: column;
    padding: 0.5em;
    justify-content: space-between;
    width: 100%;
    height: 12em;

}

.materias h3 {
    color: #e1c347;
    padding: 0.2em;
    text-align: center
}

.cadamateria {
    display: flex;
    flex-direction: column;
    padding: 0.5em;
    justify-content: space-between;
    width: 100%;
    height: 12em;
    
}

a {
    text-decoration: none;
    
}

 .historia {
    color: white;
    background-color: #e1c347;
    display: flex;
    justify-content: center;
    width: 100%;
    align-content: center;
    height: 2em;
    align-items: center
    
        
}


.tecnologia {
    color: white;
    background-color: #e1c347;
    display: flex;
    justify-content: center;
    width: 100%;
    align-items: center;
    height: 2.5em;

}

.diseño h2 {
    padding: 0.4em;
}


.diseño {
    color: white;
    background-color:#e1c347;
    display: flex;
    justify-content: center;
    width: 100%;
    align-items: center;
    height: 2.5em;

}

.comunicacion h2 {
    padding: 0.4em;
}



footer {
    background-color: white;
}



nav ul {
    list-style: none;
    
    /* caja contenedora flexible */
    display: flex;
    
    /* elementos separados */
    justify-content: space-between;
    
}

nav ul li {
    /* se les permite crecer para "llenar" toda la caja contenedora flexible "nav ul" */
    flex-grow: 1;
}

nav ul li:not(:first-child) {
    /*  todos los "nav ul li" 
        MENOS el que es "primer hijo" */
    margin-left: .25em
}

nav ul li {
    background-color: #e1c347;
}

nav ul li a {
     height: 2.5em;
    
   
    /* caja flexible */
    display: flex;
    
    /* centrado en la horizontal */
    justify-content: center;

    /* centrado en la vertical */
    align-items: center;
    
}


.apuntes {
    display: block;
    width: 3em;
    margin: auto;
}

.calendario {
    display: block;
    width: 3em;
    margin: auto;
}

.notas {
    display: block;
    width: 3em;
    margin: auto;
}

.mundo {
    display: block;
    width: 3em;
    margin: auto;
}

