/* Hoja de estilos
Contiene los estilos de un sitio web responsive.
*/

@font-face {
  font-family: "mifuente";
  src: url("mifuente.woff2");
}

@font-face {
  font-family: "mifuente2";
  src: url("mifuente2.woff2");
  font-style: italic;
  font-weight: 400;
}

h1 {
  font-family: "mifuente", cursive;
  font-weight: 400;
  font-style: normal;
  font-size:5em;
  margin-top:0;
  margin-bottom:0;
}

.container {
  width:1080px;
  margin:0px auto;
  font-size:1em;
  font-family: "mifuente2", Georgia, Serif;
  font-size: 18px;
}
header {
  text-align:center;
  /*border: 1px solid #ccc;*/
  border-bottom:1px dotted #ccc;
  /*background: #fafafa*/
}
a {
  color: #333;
  text-decoration: none;
}
section,aside {
  padding: 10px;
  -moz-border-radius:3px;-webkit-border-radius:3px;-o-border-radius:3px;border-radius:3px;

}
section {
  float: left;
  width: 70%;
  /*background: #fafafa;*/
  /*border: 1px solid #ccc;*/
}
aside {
  float: right;
  width: 25%;
  /*background:#ccc;*/
  /*color: #333;*/
  border-left:1px dotted #ccc;
}
nav {
  overflow: hidden;
  /*background:#444;*/
  margin-top: 0.5%;
  margin-bottom: 0.5%;
  border-bottom:1px dotted #ccc;
}
nav ul {
  list-style-type:none;
  float:left;
  padding:0px;
  width: 100%;
  display: table;
  text-align: center;
}
nav ul li {
  display: inline-block;
  float: none;
  padding:3px 10px;
  margin:2px;
  background:#fafafa;
  -moz-border-radius:3px;-webkit-border-radius:3px;-o-border-radius:3px;border-radius:3px;
}
nav ul li:hover {
    background-color: #ccc;
    text-decoration: underline;
}
nav a {
 display:block;
 text-align:center;
 text-decoration:none;
 color: #333;
}
footer {
  position: fixed;
  Width: 100%;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 5px 0px 5px 0px;
  background-color: #333;
  text-align: center;
}
footer a {
  color: #fff;
}

section article {
	border:1px dotted #ccc;
	background-color: #f0f0f0;
}

/* pantalla media maximo 980px */
@media screen and (max-width:980px) {
  .container {
    width:98%;
  }
  section {
    width:68%;
  }
}

/* pantalla media maximo 700px */
@media screen and (max-width:700px) {
  aside,section {
    float:none;
    width:96%;
    font-size:1.2em;
  }
  nav, section {
    font-size:1.2em;
  }
  aside {
    margin-top:5px;
    /*background:#333;*/
    /*color: #fff;*/
  }
  nav ul {
    float:none;
    clear:both;
  }
}


/* pantalla media maximo 480px */
@media screen and (max-width:480px) {
  aside {
    display:block;
    /*background:#333;*/
    /*color: #fff;*/
    font-size:1.5em;
  }
  nav, section {
    font-size:1.5em;
  }
  section {
    width:94%;
  }
  nav ul {
    display: table;
    text-align: center;
    float: none;
    width:100%;
  }
  nav ul li {
    float:none;
  }
}
