@import url("normalize.css");
@import 'https://fonts.googleapis.com/css?family=Exo:300,400,700';

* {
    margin: 0;
    padding: 0;
    font-family: 'Exo', arial, helvetica, sans-serif;
    box-sizing: border-box;
    list-style: none;
}

body {
    background-color: #F5F5F5;
}

header {
    margin-top: 1em;
    background-color: white;
}

main {
    background-color: white;
}

header h1 {
    text-align: center;
    padding: .2em;
    color: rgb(0, 100, 200);
  }

nav {
    background-color: dodgerblue;
}

nav ul {
    list-style: none;
    padding: .2em;
}
    nav ul li {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 3em;
        background-color: rgb(0, 100, 200);
        max-width: 95%;
        margin: auto;
        margin-bottom: .3em;
        
    }

        nav ul li a {
            text-align: center;
            text-decoration: none;
            color: white;
            font-weight: 300;
        }

            nav ul li:hover {
                color: lightcyan;
                background-color: rgba(255,255,255,0.3);
            }

main h2{
    margin: auto;
    max-width: 90%;
    padding-left: 1em;
    padding-right: 1em;
    background-color:lightblue;
}

main h3 {
    margin: auto;
    max-width: 90%;
    background-color: gainsboro;
    margin-top: .5em;
    padding-left: 1em;
}

main h4 {
    margin: auto;
    max-width: 90%;
    margin-bottom: .3em;
    margin-top: .5em;
}

main h5 {
    margin: auto;
    max-width: 90%;
    
}

main ul {
    margin: auto;
    max-width: 95%;
    padding-left: 1em;
}

main ul li {
    margin-bottom: .1em;
    margin-top: .1em;
}

main > ul li {
    color: cadetblue;
    font-weight: 400;
    font-size: 1.2em;
    margin-bottom: .2em;
    margin-top: .5em;
}

main p {
    margin-bottom: .2em;
}

main > p {
    margin: auto;
    margin-top: .8em;
    margin-bottom: .8em;
    width: 90%;
}

footer {
    background-color: rgb(0, 100, 200);
}

footer p {
    text-align: justify;
    font-size: .75em;
    font-stretch: 300;
    color: white;
    margin-top: .5em;
    margin-bottom: .5em;
    padding: .6em;
}

#foto {
    display: flex;
    margin: auto;
    margin-top: .5em;
    padding: 1em;
    background-color:dodgerblue;
    height: 10em;
    width: 10em;
    }

.Iluminado {
    background-color: lightblue;
    color: rgb(0, 100, 200);
}
/*
------------------------------Responsive---------------------------------*/

#contenedor {
    height: 100%;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

header, footer {
    -webkit-box-flex: 0;
    -webkit-flex: 0 1 auto;
    -ms-flex: 0 1 auto;
    flex: 0 1 auto;
}

.contenidos {
    margin: auto;
    width: 100%;
    background-color: white;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
     -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
     -webkit-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
}

@media screen and (min-width:30em) {
    header div {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1em;
    }

    header h1 {
        margin: auto;
        justify-content: center;
        text-align: left;
        flex: 1;
    }
    
    nav ul {
        margin: auto;
        max-width: 95%;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    nav ul li {
        margin-left: .2em;
        flex-basis: auto;
        flex: 1;
    }
}

@media screen and (min-width:50em){
    header, main, footer {
        margin: auto;
        max-width: 80%;
        min-width: 80%;
    }
    
    header h1 {
        margin-left: .5em;
        flex: 1;
    }
    
    .contenidos {
        max-width: 80%
    }
}
