/*
Theme Name: Daily Onigiri
Theme URI: 
Description: Daily Onigiri Theme
Version: 1.0
Author: dailyonigiri.com
Author URI: 
*/

html, body{
   height: 100%;
   margin: 0;
   background: white;
}

body {
  font-size: 2.0em; /* currently ems cause chrome bug misinterpreting rems on body element */
  line-height: 1.4;
  font-weight: normal;
  /*font-family: "myriad-pro-semiextended",sans-serif;*/
  font-family: "proxima-nova",sans-serif;
  letter-spacing: 0;
  color: black;
}

@media (min-width: 550px) { body { font-size: 1.7em; line-height: 1.4; } }

.container {
  max-width: 700px;
}

/*                           header
/* ---------------------------------------------------------- */

#header {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 550px) { #header { margin-bottom:1rem; } }

#header a.logo {
  background: url("http://www.dailyonigiri.com/wp-content/themes/dailyonigiri/images/LogoChara.svg") top left no-repeat;
  width: 6rem;
  height: 6rem;
  display: block;
  cursor: pointer;
}

@media (min-width: 400px) { #header a.logo { margin-left:0; } }
@media (min-width: 550px) { #header a.logo { margin-left:0; } }
@media (min-width: 750px) { #header a.logo { margin-left:0; } }
@media (min-width: 1000px) { #header a.logo { margin-left:-6rem; } }
@media (min-width: 1200px) { #header a.logo { margin-left:-6rem; } }

/*                    typography & links
/* ---------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 { font-weight: normal;}

h1 { font-size: 3.3rem; line-height: 1.1;  letter-spacing: -0.07rem; }
h2 {
  font-size: 1.1rem;
  font-weight: bold;
  text-transform: uppercase;
  line-height: 1;
  padding:0.6rem;
  letter-spacing: 0.15rem;
  border-radius: 4px;
  color: white;
  margin-bottom:0.8rem;
}
h3 {
  font-size:2.5rem;
  letter-spacing: 0;
}

a:link, a:visited { color: black; text-decoration: underline; cursor:pointer; }
a:hover, a:active { color: red; text-decoration: none; cursor:pointer; }

h1 a:link, h1 a:visited { color: black; text-decoration: none; cursor:pointer; }
h1 a:hover, h1 a:active { color: red; text-decoration: none; cursor:pointer; }

.red {
  color: red;
}

hr {
  height: 1px;
  color: #ddd;
  background: #ddd;
  font-size: 0;
  border: 0;
  margin: 0.3rem 0 1rem 0;
}

/*                        main content
/* ---------------------------------------------------------- */
#content {
  min-height: 100%;
  margin-bottom: -10rem;
}

#content .main .nav p {
  float: left;
  font-weight: bold;
}

/*                           footer
/* ---------------------------------------------------------- */

.push {
  height: 10rem;
}

#footer {
  background: black;
  height: 10rem;
  width: 100%;
  color: white;
  font-size: 1.3rem;
  line-height: 1.4;
  padding: 2rem 0 2rem 0;
}

#footer .icon {
  background:url("http://www.dailyonigiri.com/wp-content/themes/dailyonigiri/images/LogoChara.svg") top left no-repeat;
  width:4rem;
  height:4rem;
}

/*                            post
/* ---------------------------------------------------------- */

#content .post {
  margin-bottom:6rem;
}

#content .post p.date {
  margin: 0;
  text-transform: uppercase;
  font-size: 1.2rem;
  line-height: 1;
  color: darkgray;
  letter-spacing:0.1rem;
}

#content .post img {
  max-width: 100%;
  height: auto;
}

#content .post a.readmore {
  font-size: 2.0rem;
  font-style: italic;
}

@media (min-width: 550px) { #content .post a.readmore { font-size: 1.7rem; } }

/*                            widgets
/* ---------------------------------------------------------- */

#widget {
  margin-bottom: 3rem;
}

#widget.quakewatch h2, #widget.dailyonigiri h2, #widget.latest h2 {
  background: black;
}

#widget.quakewatch p {
  font-size:1.2rem;
  line-height:1.2;
  margin:0;
}

#widget.quakewatch .most-recent {
  background:#f5f5f5;
  border-radius:4px;
  padding:0.5rem 0.5rem 0.7rem 0.5rem;
  text-align:center;
  margin:0 auto;
  overflow: hidden;
  margin-bottom:0.5rem;
}

#widget.quakewatch .past-events p {
  margin:0;
  line-height:1.4;
}

#widget hr {
  height: 1px;
  color: #ddd;
  background: #ddd;
  font-size: 0;
  border: 0;
  margin: 0.3rem 0 0.3rem 0;
}

#widget.dailyonigiri p {
  font-size:1.4rem;
  line-height:1.6;
  margin:0;
  font-weight: bold;
}

#widget.dailyonigiri a:link, #widget.dailyonigiri a:visited {
  text-decoration: none;
  color: black;
}

#widget.dailyonigiri a:hover, #widget.dailyonigiri a:active {
  text-decoration: none;
  color: red;
}

#widget.latest p.title {
  font-size:1.6rem;
  line-height:1.4;
  margin:0;
  font-weight: bold;
  margin-top:0.2rem;
  margin-bottom:0.5rem;
}

#widget.latest .thumb {
  margin-top:0.5rem;
  width: auto;
  height: 10rem;
  background-size: 40rem auto;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
  border-radius:4px;
  border:0;
  display:block;
}

@media (min-width: 1000px) {
  #widget.latest .thumb {
    background-size: 20rem auto;
  }
  #widget.latest p.title {
    font-size:1.4rem;
    line-height:1.4;
    font-weight: normal;
  }
}

/*                        social icons
/* ---------------------------------------------------------- */

#widget .social {
  margin-top: 0.8rem;
}

#widget .social a.fb {
  background: url("http://www.dailyonigiri.com/wp-content/themes/dailyonigiri/images/IconFB.svg") top left no-repeat;
  width: 2.7rem;
  height: 2.7rem;
  display: block;
  cursor: pointer;
  float: left;
}

#widget .social a.tw {
  background: url("http://www.dailyonigiri.com/wp-content/themes/dailyonigiri/images/IconTW.svg") top left no-repeat;
  width: 2.7rem;
  height: 2.7rem;
  display: block;
  cursor: pointer;
  float: left;
  margin-left: 1.5rem;
}

#widget .social a.rss {
  background: url("http://www.dailyonigiri.com/wp-content/themes/dailyonigiri/images/IconRSS.svg") top left no-repeat;
  width: 2.7rem;
  height: 2.7rem;
  display: block;
  cursor: pointer;
  float: left;
  margin-left: 1.5rem;
}

.grow { transition: all .1s ease-in-out; }
.grow:hover { transform: scale(1.1); }

/*                           ads
/* ---------------------------------------------------------- */

.ad-top-desktop {
  background:black;
  width:100%;
  text-align:center;
  margin:0 auto;
  padding-top:1rem;
  padding-bottom:0.5rem;
}

.ad-postlist-middle-mobile {
  width:100%;
  text-align:center;
  margin:0 auto;
  margin-bottom:2rem;
  margin-top:-3rem;
}

.ad-postlist-middle-desktop {
  width:100%;
  text-align:center;
  margin:0 auto;
  margin-bottom:2rem;
  margin-top:-3rem;
}

.ad-sidebar-wide {
  background:#fff;
  border-radius:4px;
  width:100%;
  text-align:center;
  margin:0 auto;
}

.ad-content {
  width:100%;
  text-align:center;
  margin:0 auto;
  margin-bottom:2rem;
}