@charset "utf-8";

/* FUENTES TIPOGRÁFICAS */

@font-face {
    font-family: 'oswaldregular';
    src: url('oswald-regular-webfont.woff2') format('woff2'),
         url('oswald-regular-webfont.woff') format('woff'),
         url('oswald-regular-webfont.ttf') format('truetype'),
         url('oswald-regular-webfont.svg#oswaldregular') format('svg');
    font-weight: normal;
    font-style: normal;
    }




@font-face {
    font-family: 'oswaldlight';
    src: url('oswald-light-webfont.woff2') format('woff2'),
         url('oswald-light-webfont.woff') format('woff'),
         url('oswald-light-webfont.ttf') format('truetype'),
         url('oswald-light-webfont.svg#oswaldlight') format('svg');
    font-weight: normal;
    font-style: normal;
    }




@font-face {
    font-family: 'oswaldbold';
    src: url('oswald-bold-webfont.woff2') format('woff2'),
         url('oswald-bold-webfont.woff') format('woff'),
         url('oswald-bold-webfont.ttf') format('truetype'),
         url('oswald-bold-webfont.svg#oswaldbold') format('svg');
    font-weight: normal;
    font-style: normal;
    }


/* ESCRITORIO */


body{
    background-color: #fff500;
    }

img{
    display:block;
    max-width: 60%;
    margin:auto;
    }

    a{
    text-decoration: none;
    display: block;
    }



h1 {font-family: sans-serif;
    text-align: left
    font-size: 2rem;
    color: black;
    }

h2 { font-family:monospace;
    font-weight: 700;
    text-align: left;
    font-size: 2 rem;
    color: #fff500;
    background-color: black
     
    }

h3 {  font-family: monospace;
    font-weight: 200;
    justify-content: space-around;
    text-align: left;
    font-size: 1rem;
    color: black;
    margin: 0.5rem 1rem ;
    }
 
h4 {  font-family: sans-serif;
    text-align: left;
    font-size: 2rem;
    color: #ffffff; 
    margin: 0 0 1rem 0
    }

p {  font-family: 'sans-serif';
     text-align: left;
     font-size: 1rem;
     color: #ffffff;
     }


ul{
    list-style: none;
    font-family: 'oswaldlight';
    font-weight: 300;
    margin: 0;
    padding: 0;
    }


header nav ul li{
    margin: 0 0 0.5rem 0;
    list-style: none;
    }

header nav ul li a{
    color: #fff500;
    font-size: 1 rem;
    text-decoration:none;
    display: block;
    background-color:black;
    text-align: center;
    margin: auto;
    height: 3rem;
    line-height: 3rem;
    font-family: sans-serif;
    }

a{
    text-decoration: none;
    color: #ffffff
    }

hr{
    background-color: black;
    margin: 3rem 5em;
    }


/* NUEVA REGLA GENERAL */

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




/* REGLAS CELULAR */


.padre{
    display: flex;
    flex-flow: column;*/
    justify-content: space-around;
    min-width: 5rem; 
    flex-grow: 0rem;
    color: #fff500
}

.hijo{
    justify-content:space-around;
    flex-grow: 5rem; 
    background-color: #fff500;
    min-width: 24%;
}

.padre2{
    display: flex;
    justify-content:space-around;
    background-color: black;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    }

.hijo2{
    display: flex;
    justify-content:space-between;
    background-color: black;
    flex-direction: column;
    align-content:flex-start;
    margin: 1rem 2em;
    }

.padre3{
    color:#fff500
    display: flex;
    justify-content:flex-end;
    background-color: black;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    }

.hijo3{
    color: #fff500
    display: flex;
    justify-content:space-between;
    background-color: black;
    flex-direction: column;
    align-content:flex-start;
    margin: 1rem 2em;
    }








/* COLOR AL PASAR MOUSE */

nav ul li a:hover {color: black;
    background-color: #fff500;    
           


/* ADAPTAR A DISTINTOS TAMAÑOS */


@media screen and (min-width:20rem) {
    nav ul {
           display: flex;
            }

    .padre{
           display: flex;
           flex-wrap: wrap;
           align-items: flex-start;
           flex-direction: row;
           align-content: center;
           }
    
 

  
@media screen and (min-width:10rem) {   

/* imagen se adapta */  
img {
      max-width:100%;
      }
           

    

@media screen and (min-width:40rem){
    nav ul { display: flex;
           }

    
    
    

    .padre{
           display: flex;           
           justify-content: space-between;
           flex-direction: row;        
          } 
    
    
    