@charset "utf-8";
@import url(https://fonts.googleapis.com/css?family=Roboto:400,300,500);
@import url(https://fonts.googleapis.com/css?family=Finger+Paint);

*{
    box-sizing: border-box;}

body{
    background-image:url(imagenes/fondo.jpg);
    background-repeat: no-repeat;
    background-size: cover;
}

main, aside, footer{
    padding:  1em;
}

#contenedor{
    max-width: 90%;
    margin: auto;
    font-family: Roboto;
}

header{
    width: 100%;
    height: 4em;
   
}

header nav ul li{
    list-style: none;
    width: 25%;
    float: left;
}

header nav ul{
    padding: 0;
}

nav ul li a img{
     width: 100%;
}

main{
    background-color: lightgrey;
    font-size: 0.7em;
    color:dimgrey;
}

p{
    margin: 0em;
}

aside{
    background-color: rgb(87,123,53);
    height: 7em;
}
aside nav ul{
    list-style: none;
    padding: 0;
    width: 40%;
    float: left;
}
aside nav ul a{
    text-decoration: none;
    color:lightgrey;
}

aside nav ul li a:hover{
    font-style: italic;
}

h1{
   width: 40%;
  float: right;
    text-align: right;
    font-family: "Finger Paint";
    color:lightgrey;
}


div img{
    width: 100%;
}

footer{
    background-color: lightgrey;
    color: dimgrey;
    font-size: 0.6em;
    text-align: center;
}

@media screen and (min-width: 35em){

    header nav ul{
        width:85%;
        float: right;
    }
    
    aside{
       width: 15%;
        height:25em;
        float: left;       
     }
    
    aside nav ul{
        width: 100%;

    }
    
   h1{
        float:none;
        margin: auto;
        width: 100%;
       text-align:center;
       font-size: 3em;
       margin-top: 6.5em;
    }
    
    
    main{
     width: 85%;
    float: right;
    }
    
    section{
        width: 25%;
        float: left;
        margin: 0 3em;
        }
    
    
}