/*
	Theme Name: Corn Stories
	Description: A theme for stories about corn
	Version: 1.0.0
	Author: Clinny
	Author URI: http://cornstories.com
	Tags: Corn, Stories

	License: MIT
	License URI: http://opensource.org/licenses/mit-license.php
*/
/*CLEARFIX*/
.clearfix:after {
  visibility: hidden;
  display: block;
  font-size: 0;
  content: " ";
  clear: both;
  height: 0;
}

.clearfix {
  display: inline-block;
}

/* start commented backslash hack \*/
* html .clearfix {
  height: 1%;
}

.clearfix {
  display: block;
}

/* close commented backslash hack */
.nopadding {
  padding: 0px !important;
}

.blue-gradient-button {
  color: white !important;
  background-color: #007ebf;
  background-color: #007ebf;
  /* Old browsers */
  background-image: -moz-linear-gradient(top, #0096cb 0%, #0068b4 100%);
  /* FF3.6+ */
  background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #0096cb), color-stop(100%, #0068b4));
  /* Chrome,Safari4+ */
  background-image: -webkit-linear-gradient(top, #0096cb 0%, #0068b4 100%);
  /* Chrome10+,Safari5.1+ */
  background-image: -o-linear-gradient(top, #0096cb 0%, #0068b4 100%);
  /* Opera 11.10+ */
  background-image: -ms-linear-gradient(top, #0096cb 0%, #0068b4 100%);
  /* IE10+ */
  background-image: linear-gradient(to bottom, #0096cb 0%, #0068b4 100%);
  /* W3C */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#0096cb', endColorstr='#0068b4',GradientType=0 );
  /* IE6-9 */
  -webkit-box-shadow: inset 0px 0px 0px 1px rgba(0, 0, 0, 0.05), inset 0px -1px 0px 1px rgba(0, 0, 0, 0.2);
  -moz-box-shadow: inset 0px 0px 0px 1px rgba(0, 0, 0, 0.05), inset 0px -1px 0px 1px rgba(0, 0, 0, 0.2);
  box-shadow: inset 0px 0px 0px 1px rgba(0, 0, 0, 0.05), inset 0px -1px 0px 1px rgba(0, 0, 0, 0.2);
  text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.2);
}

.blue-gradient-button:hover {
  background-color: #0097cc;
  /* Old browsers */
  background-image: -moz-linear-gradient(top, #00abd5 0%, #007ec3 100%);
  /* FF3.6+ */
  background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #00abd5), color-stop(100%, #007ec3));
  /* Chrome,Safari4+ */
  background-image: -webkit-linear-gradient(top, #00abd5 0%, #007ec3 100%);
  /* Chrome10+,Safari5.1+ */
  background-image: -o-linear-gradient(top, #00abd5 0%, #007ec3 100%);
  /* Opera 11.10+ */
  background-image: -ms-linear-gradient(top, #00abd5 0%, #007ec3 100%);
  /* IE10+ */
  background-image: linear-gradient(to bottom, #00abd5 0%, #007ec3 100%);
  /* W3C */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00abd5', endColorstr='#007ec3',GradientType=0 );
  /* IE6-9 */
  text-shadow: none;
}

.blue-gradient-button:active {
  background: #007ebf;
  -webkit-box-shadow: inset 0px 0px 0px 1px rgba(0, 0, 0, 0.05), inset 0px 0px 5px 0px rgba(0, 0, 0, 0.2);
  -moz-box-shadow: inset 0px 0px 0px 1px rgba(0, 0, 0, 0.05), inset 0px 0px 5px 0px rgba(0, 0, 0, 0.2);
  box-shadow: inset 0px 0px 0px 1px rgba(0, 0, 0, 0.05), inset 0px 0px 5px 0px rgba(0, 0, 0, 0.2);
}

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

body {
  line-height: 1;
}

body, html {
  height: 100%;
}

ol, ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

input {
  border-radius: 0px;
}

#wrapper {
  width: calc(100% - 60px);
  max-width: 1260px;
  margin: 30px auto;
}

main#content {
  background: white;
  border-radius: 2px;
  padding: 30px;
}

main#content div.archive-meta {
  margin-bottom: 30px;
}

span.post-date {
  font-size: 0.5em;
  float:right;
  margin-top:-34px !important;
}

.article-list {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-flow: row wrap;
  justify-content: space-evenly;
}

.article-list article.article-link {
  width: calc(33.2% - 19.8px);
}

.article-list article.article-link h1.entry-title,
.article-list article.article-link h2.entry-title {
  font-size: 1em;
  text-align: center;
  margin-bottom: 30px;
}

.article-list article.article-link .article-link-image {
  position: relative;
  max-width: 100%;
}

.article-list article.article-link .article-link-image:before {
  display: block;
  content: "";
  width: 100%;
  padding-top: 100%;
}

.article-list article.article-link .article-link-image > .content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.article-list article.article-link .article-link-image img {
  max-width: 90%;
  height: auto;
  max-height: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  -ms-transform: translate(-50%, -50%);
  /* IE 9 */
  -webkit-transform: translate(-50%, -50%);
  /* Safari */
  transform: translate(-50%, -50%);
}

article.article-page {
  padding: 0 30px;
  margin-left: auto;
  margin-right: auto;
  max-width: 888px;
  /*
	p > a > img {
		margin-left: 50%;
		@include translate(-50%,0);
	}
	*/
}

article.article-page h1.entry-title {
  font-size: 3.2em;
  line-height: 1em;
  text-align: center;
  margin-bottom: 45px;
}

article.article-page > * {
  line-height: 1.7em;
}

article.article-page > *:not(:first-child) {
  margin-top: 15px;
}

article.article-page p:empty {
  display: none;
}

article.article-page p > a[href*="/uploads/"]:first-child,
article.article-page a[rel*="attachment"],
article.article-page div[id*="attachment"] {
  display: block;
  text-align: center;
  width: 100% !important;
  font-size: 0.5em;
}

article.article-page * img {
  max-width: 80%;
  height: auto !important;
}

#header-logo {
  text-align: center;
  position: relative;
}

#header-logo img {
  max-width: 40%;
  position: relative;
  z-index: 2;
}

#header-logo:before {
  content: '';
  display: block;
  width: 100%;
  height: 50%;
  background: white;
  position: absolute;
  left: 0;
  bottom: 0;
  border-radius: 2px 2px 0 0;
}

header#header {
  background: white;
  margin-bottom: 30px;
  text-align: center;
  padding: 0 30px 18px 30px;
  border-radius: 0 0 2px 2px;
  /* -------------------- Select Box Styles: stackoverflow.com Method */
  /* -------------------- Source: http://stackoverflow.com/a/5809186 */
}

header#header nav#menu ul[id*="menu-top-menu"] {
  display: flex;
  justify-content: center;
}

header#header nav#menu ul[id*="menu-top-menu"] > li {
  margin: 0 2%;
}

header#header select {
  -webkit-appearance: button;
  -webkit-border-radius: 2px;
  -webkit-box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
  -webkit-padding-end: 20px;
  -webkit-padding-start: 2px;
  -webkit-user-select: none;
  background-image: url(http://i62.tinypic.com/15xvbd5.png), -webkit-linear-gradient(#FAFAFA, #F4F4F4 40%, #E5E5E5);
  background-position: 97% center;
  background-repeat: no-repeat;
  border: 1px solid #AAA;
  color: #555;
  font-size: inherit;
  overflow: hidden;
  padding: 5px 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body {
  font-size: 20px;
  font-family: sans-serif;
}

h1 {
  font-size: 2em;
}

h2 {
  font-size: 1.5em;
}

h3, h4 {
  font-size: 1em;
}

h5 {
  font-size: 0.8em;
}

h6 {
  font-size: 0.5em;
}

a {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

hr {
  margin: 15px 0;
  border: none;
  border-top: solid 2px gray;
}

footer#footer {
  margin-top: 15px;
  margin-bottom: 15px;
  padding: 15px 0;
  border-top: solid 2px;
  text-align: center;
}

@media (max-width: 820px) {
  body {
    font-size: 17px;
  }
  #wrapper {
    width: 93%;
  }
  .article-list article.article-link {
    width: calc(50% - 15px);
  }
  article.article-page {
    padding: 0;
  }
  article.article-page h1.entry-title {
    font-size: 2.3em;
    margin-bottom: 15px;
  }
  article.article-page a[rel*="attachment"],
  article.article-page div[id*="attachment"],
  article.article-page * img,
  article.article-page p > a > img {
    max-width: 100%;
  }
  main#content {
    padding: 4%;
  }
}

@media (max-width: 550px) {
  body {
    font-size: 16px;
  }
  article.article-page > * {
    line-height: 1.5em;
  }
  .article-list article.article-link {
    width: 100%;
  }
  .article-list article.article-link .article-link-image:before {
    display: none;
  }
  .article-list article.article-link .article-link-image img {
    position: relative;
    top: 0;
    left: 0;
    -ms-transform: translate(0, 0);
    /* IE 9 */
    -webkit-transform: translate(0, 0);
    /* Safari */
    transform: translate(0, 0);
  }
}
