/*
 * css para ajipirijou.com
 * por josé tomás albornoz
 */

/* Global Reset */

* {
 margin: 0;
 padding: 0;
}

html, body {
 height: 100%;
}

body {
 background-color: white;
 font: 13.34px helvetica, arial, clean, sans-serif;
 *font-size: small;
 text-align: left;
}

h1, h2, h3, h4, h5, h6 {
 font-size: 100%;
}

h1 {
 margin-bottom: 1em;
}

p {
 margin: 1em 0;
}

a, a:visited {
 color: #FF6517;
}

a:hover {
 color: #00baff;
}

/*a:visited {
 color: #ff4800;
}*/

table {
 font-size: inherit;
 font: 100%;
}

/* -- main -- */
body {
  background: url('background.png') #f5f4f0;
  color: #333; /*#424242;*/
  font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
  /* font-weight: 400; */
}
#container {
  padding: 0 30px;
  width: 800px;
  margin: 1em auto;
}
strong {
  font-weight: 600;
}
h1, h2, h3, h4, h5, h6 {
  font-family: "Josefin Sans";
  font-weight: 600;
}
hr {
  border: 1px solid #eee;
}

/* -- header -- */

header h1 {
  font-size: 2.3em;
}

header a {
  color: #ff4800;
  text-decoration: none;
}

header a:hover {
  color: #ff4800;
}

header h1 small {
  color: #FF6517;
  display: block;
  font-size: 0.7em;
}

/* -- post -- */

article {
  font-size: 1.2em;
  padding-bottom: 5px;
  border-bottom: 1px solid #ddd;
  margin-top: 15px;
  min-height: 150px;
}

article.main {
  padding-bottom: 30px;
  margin-bottom: 30px;
}

article.main p {
  margin: 1em 0;
  font-size: 1.18em;
  font-weight: 300;
  line-height: 1.4em;
  letter-spacing: 0.01em;
}

article.main li {
  margin: 0.5em 0;
  font-size: 1.18em;
  font-weight: 300;
  line-height: 1.4em;
}

article.main p:nth-child(3) {
  margin-top: 20px;
}

article h2 {
  margin-top: 1.5em;
  font-weight: 700;
}

article h2 a, article h2 a:visited{
  text-decoration: none;
  color: #000;
}

article h2 a:hover{
  text-decoration: none;
  color: #00baff;
}

article a, article a:visited {
  color: hsla(20,100%,35%,1);
}

article a:hover {
 color: #00baff;
}


article > section.photo {
  float: right;
 /*  margin: 20px 0 10px 10px; */
  margin-left: 10px;
}

article > section.photo img {
  width: 120px;
  height: auto;
}

article.main > section.photo img {
  width: 200px;
}

article p a img, article p img {
  max-width: 640px;
  height: auto;
  max-height: 360px;
  display: block;
}

article div.embed img {
  max-width: 640px;
  height: auto;
}

article div.embed {
  text-align: center
}

article div.embed.video iframe {
  width: 640px;
  height: 360px;
}

article blockquote {
  font-size: 0.9em;
  border-left: 1px solid #888;
  padding-left: 5px;
  margin-left: 5px;
}

article p img, article p a img {
  margin: 0 auto;
}

/* -- older posts -- */

h2 {
  font-size: 1.8em;
}

h3 {
  font-size: 1.37em;
}

section.older-posts, div.pagination {
  margin: 1em 0;
  line-height: 1.5em;
  font-size: 1.1em;
}
section.older-posts h3 {

}
section.older-posts ul {
  list-style: none;
  margin: 0.5em 0;
}
section.older-posts span {
  color: #777;
  width: 100px;
  display: inline-block;
}

div.pagination a {
  background-color: #ff4800;
  padding: 5px;
  color: #fdfdfd;
  text-decoration: none;
  margin: 5px 0;
}

div.pagination a:hover {
  background-color: #ffa200;
}

div.pagination a.all-posts {
  display: block;
  width: 135px;
  text-align: center;
  margin: 5px 0;
}

/* -- aside -- */

aside {
  margin: 1em 0;
}

aside h3 {
  font-size: 1.3em;
  margin: 0.5em 0;
}

aside ul {
  list-style: none;
  line-height: 1.3em;
  color: #888;
}

/* -- footer -- */
footer {
  margin: 2em 0 1em 0;
  padding-bottom: 80px;
}
footer p {
  float: left;
  margin-right: 3em;
}
footer p {
  list-style: none;
  line-height: 1.3em;
  margin-top: 5px;
}
footer p a, footer p a:visited {
  color: #333;
  text-decoration: none;
}
footer p a:hover {
  color: #00baff;
}

/* -- other -- */
div.highlight {
  overflow: auto;
  width: 100%;
}


/* responsive blablabla */
@media only screen and (max-width: 320px) {
  #container {
    padding: 0 10px;
    width: 300px;
    padding-bottom: 20px;
    font-weight: 400;
  }
  article > section.photo img {
    width: 300px !important;
  }
  article > section.photo {
    float: none;
    margin: 20px 0;
    display: block;
  }
  article div.embed.video iframe {
    width: 300px;
    height: 168px;
  }
}

@media only screen and (min-width: 321px) and (max-width: 480px) {
  #container {
    padding: 0 10px;
    width: 460px;
    padding-bottom: 20px;
    font-weight: 400;
  }
  article > section.photo img {
    width: 460px !important;
  }
  article > section.photo {
    float: none;
    margin: 20px 0;
    display: block;
  }
  article div.embed.video iframe {
    width: 460px;
    height: 240px;
  }
}

@media only screen and (min-width: 481px) and (max-width: 1024px) {
  #container {
    width: 90%;
    font-weight: 400;
  }
  article div.embed.video iframe {
    width: 70%;
    height: 300px;
  }
}
