/*
Theme Name: Respond
Theme URI: www.a2wd.com/respond/
Author: a2wd.com
Author URI: http://www.a2wd.com/
Description: A responsive flat theme designed by a2wd.com as a homepage theme
Version: 1.7
License: General Public License (GPL) v3 or later
License URI: http://www.gnu.org/copyleft/gpl.html
Tags: one-column, two-columns, right-sidebar, red, gray, white, responsive-layout, dark, sticky-post
Text domain: respond
 */

/* Normalised design, courtesy of necolas.github.io */
/*! normalize.css v3.0.0 | MIT License | git.io/normalize */

/**
 * 1. Set default font family to sans-serif.
 * 2. Prevent iOS text size adjust after orientation change, without disabling
 *    user zoom.
 */

html {
  font-family: sans-serif; /* 1 */
  -ms-text-size-adjust: 100%; /* 2 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/**
 * Remove default margin.
 */

body {
  margin: 0;
}

/* HTML5 display definitions
   ========================================================================== */

/**
 * Correct `block` display not defined in IE 8/9.
 */

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section,
summary {
  display: block;
}

/**
 * 1. Correct `inline-block` display not defined in IE 8/9.
 * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
 */

audio,
canvas,
progress,
video {
  display: inline-block; /* 1 */
  vertical-align: baseline; /* 2 */
}

/**
 * Prevent modern browsers from displaying `audio` without controls.
 * Remove excess height in iOS 5 devices.
 */

audio:not([controls]) {
  display: none;
  height: 0;
}

/**
 * Address `[hidden]` styling not present in IE 8/9.
 * Hide the `template` element in IE, Safari, and Firefox < 22.
 */

[hidden],
template {
  display: none;
}

/* Links
   ========================================================================== */

/**
 * Remove the gray background color from active links in IE 10.
 */

a {
  background: transparent;
}

/**
 * Improve readability when focused and also mouse hovered in all browsers.
 */

a:active,
a:hover {
  outline: 0;
}

/* Text-level semantics
   ========================================================================== */

/**
 * Address styling not present in IE 8/9, Safari 5, and Chrome.
 */

abbr[title] {
  border-bottom: 1px dotted;
}

/**
 * Address style set to `bolder` in Firefox 4+, Safari 5, and Chrome.
 */

b,
strong {
  font-weight: bold;
}

/**
 * Address styling not present in Safari 5 and Chrome.
 */

dfn {
  font-style: italic;
}

/**
 * Address variable `h1` font-size and margin within `div.section` and `article`
 * contexts in Firefox 4+, Safari 5, and Chrome.
 */

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/**
 * Address styling not present in IE 8/9.
 */

mark {
  background: #ff0;
  color: #000;
}

/**
 * Address inconsistent and variable font size in all browsers.
 */

small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` affecting `line-height` in all browsers.
 */

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sup {
  top: -0.5em;
}

sub {
  bottom: -0.25em;
}

/* Embedded content
   ========================================================================== */

/**
 * Remove border when inside `a` element in IE 8/9.
 */

img {
  border: 0;
}

/**
 * Correct overflow displayed oddly in IE 9.
 */

svg:not(:root) {
  overflow: hidden;
}

/* Grouping content
   ========================================================================== */

/**
 * Address margin not present in IE 8/9 and Safari 5.
 */

figure {
  margin: 1em 40px;
}

/**
 * Address differences between Firefox and other browsers.
 */

hr {
  -moz-box-sizing: content-box;
  box-sizing: content-box;
  height: 0;
}

/**
 * Contain overflow in all browsers.
 */

pre {
  overflow: auto;
}

/**
 * Address odd `em`-unit font size rendering in all browsers.
 */

code,
kbd,
pre,
samp {
  font-family: monospace, monospace;
  font-size: 1em;
}

/* Forms
   ========================================================================== */

/**
 * Known limitation: by default, Chrome and Safari on OS X allow very limited
 * styling of `select`, unless a `border` property is set.
 */

/**
 * 1. Correct color not being inherited.
 *    Known issue: affects color of disabled elements.
 * 2. Correct font properties not being inherited.
 * 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome.
 */

button,
input,
optgroup,
select,
textarea {
  color: inherit; /* 1 */
  font: inherit; /* 2 */
  margin: 0; /* 3 */
}

/**
 * Address `overflow` set to `hidden` in IE 8/9/10.
 */

button {
  overflow: visible;
}

/**
 * Address inconsistent `text-transform` inheritance for `button` and `select`.
 * All other form control elements do not inherit `text-transform` values.
 * Correct `button` style inheritance in Firefox, IE 8+, and Opera
 * Correct `select` style inheritance in Firefox.
 */

button,
select {
  text-transform: none;
}

/**
 * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
 *    and `video` controls.
 * 2. Correct inability to style clickable `input` types in iOS.
 * 3. Improve usability and consistency of cursor style between image-type
 *    `input` and others.
 */

button,
html input[type="button"], /* 1 */
input[type="reset"],
input[type="submit"] {
  -webkit-appearance: button; /* 2 */
  cursor: pointer; /* 3 */
}

/**
 * Re-set default cursor for disabled elements.
 */

button[disabled],
html input[disabled] {
  cursor: default;
}

/**
 * Remove inner padding and border in Firefox 4+.
 */

button::-moz-focus-inner,
input::-moz-focus-inner {
  border: 0;
  padding: 0;
}

/**
 * Address Firefox 4+ setting `line-height` on `input` using `!important` in
 * the UA stylesheet.
 */

input {
  line-height: normal;
}

/**
 * It's recommended that you don't attempt to style these elements.
 * Firefox's implementation doesn't respect box-sizing, padding, or width.
 *
 * 1. Address box sizing set to `content-box` in IE 8/9/10.
 * 2. Remove excess padding in IE 8/9/10.
 */

input[type="checkbox"],
input[type="radio"] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Fix the cursor style for Chrome's increment/decrement buttons. For certain
 * `font-size` values of the `input`, it causes the cursor style of the
 * decrement button to change from `default` to `text`.
 */

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome.
 * 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome
 *    (include `-moz` to future-proof).
 */

input[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  -moz-box-sizing: content-box;
  -webkit-box-sizing: content-box; /* 2 */
  box-sizing: content-box;
}

/**
 * Remove inner padding and search cancel button in Safari and Chrome on OS X.
 * Safari (but not Chrome) clips the cancel button when the search input has
 * padding (and `textfield` appearance).
 */

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * Define consistent border, margin, and padding.
 */

fieldset {
  border: 1px solid #c0c0c0;
  margin: 0 2px;
  padding: 0.35em 0.625em 0.75em;
}

/**
 * 1. Correct `color` not being inherited in IE 8/9.
 * 2. Remove padding so people aren't caught out if they zero out fieldsets.
 */

legend {
  border: 0; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Remove default vertical scrollbar in IE 8/9.
 */

textarea {
  overflow: auto;
}

/**
 * Don't inherit the `font-weight` (applied by a rule above).
 * NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
 */

optgroup {
  font-weight: bold;
}

/* Tables
   ========================================================================== */

/**
 * Remove most spacing between table cells.
 */

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

td,
th {
  padding: 0;
}

/* ======================================================================== */
/* Theme styles begin here */
html, body {
	height:100%;
}

body {
	font-family: 'Source Sans Pro', sans-serif;
	background-color:#222228;
}

img {
	max-width:100%;
	height:auto;
}

.ie img {
	width:100%;
}

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

a:hover {
	color:#c0392b;
}

/* Styling for the nav menu */
.top-nav {
	float:right;
}

#top-menu li, #top-menu ul {
	list-style:none;
	margin:0;
	padding:0;
}

#top-menu li {
	text-align:left;
	display:inline-block;
	position:relative;
	height:2em;
}

#top-menu a {
	background-color:#fafafa;
	margin:0;
	padding:0.415em;
	display:inline-block;
	white-space:nowrap;
}

#top-menu a:hover {
	background-color:#c0392b;
	color:#fafafa;
}

#top-menu ul ul {
	float:left;
	border-bottom:3px solid #c0392b;
	position:absolute;
	top:2em;
	left:-999em;
	z-index:999;
}

#top-menu li li {
	display:block;
	height:auto;
}

#top-menu ul ul ul {
	top:0;
	left:-999em;
}

#top-menu ul ul a {
	width:9em;
}

#top-menu ul li:hover > ul {
	left:auto;
}

#top-menu ul ul li:hover > ul {
	left:100%;
}

#mobile-nav-toggle {
	display:none;
}

/* Menu reset for mobile */
@media screen and (max-width:20em) {
	div.main > div.header {
		padding-bottom:0.2075em;
	}

	#mobile-nav-toggle {
		display:block;
		margin-top:0.415em;
		padding:0.83em;
		font-size:1.2em;
		color:#515151;
	}

	#mobile-nav-toggle:hover {
		background-color:#c0392b;
		color:#fafafa;
	}

	nav.top-nav {
		display:block;
		margin: 0 auto;
		width:auto;
		float:none;
	}
	
	#top-menu {
		display:block;
		margin:0.83em auto 0 1.66em;
	}

	#top-menu.hide {
		display:none;
	}

	#top-menu li, #top-menu ul.sub-menu {
		border:none;
		position:static;
		width:100%;
		display:block;
		left:0;
		height:auto;
		clear:both;
		padding:0 0 0 0.415em;
	}

	#top-menu li a {
		width:auto;
	}
}

/* Theme typographic styles */

h1 {
	padding-left:5px;
	font-size:1.5em;
}

h1 > a {
	color:#c0392b;
}

h2 {
	font-size:1.25em;
	padding: 0.415em 0;
}

h3 {
	padding: 0.83em 0 0 0.415em;
	margin: 0.83em 0 0 0;
	color:#666666;
}

/* Theme styling */

div.header, div.respond, div.respond-sidebar > li, div.respond-sidebar > li > h2, div.article > div.section {
	border-radius:3px;
}

div.header, div.respond {
	margin: 5px 5% 0 5%;
	border-bottom: 3px solid #c0392b;
	display: table;
	width:88%;
	padding:10px 1%;
	background-color:#fafafa;
}

div.header_image {
	margin: 5px 5% 0 5%;
	padding:0;
	border-radius:3px;
	width:90%;
}

div.header_image img {
	border-radius:3px;
	width:100%;
	height:100%;
}

div.respond {
	margin: 0.83em 5% 0.415em 5%;
	border-bottom:none;
	border-top: 3px solid #c0392b;
	text-align:left;
}

div.respond > span {
	margin: 0;
}

div.article {
	height:auto;
}

div.footer {
	display:table-row;
	height:1px;
}

div.nav, div.header > h1 {
	display:table-cell;
	vertical-align:middle;
	text-align:left;
}

div.nav {
	text-align:right;
}

div.main {
	display:table;
	width:100%;
	height:100%;
	/* Image width forces cells to be too wide unless table-layout is fixed */
	table-layout:fixed;
}

div.article {
	margin: 0 0 0 5%;
	float:left;
	width:69%;
}

div.article > div.section {
	border-bottom:1px solid #ccc;
	background-color:#fafafa;
	padding:0 5px;
}

div.article > div.section p {
	padding:0.6em;
}

div.article > div.section p.meta {
	font-size:0.9em;
	color: #666666;
}

div.article > div.section.title {
	margin-top:1em;
	border-bottom:3px solid #c0392b;
}

div.article > div.section.title > h2 {
	text-transform:uppercase;
	text-align:right;
	font-size:1.2em;
	margin:0;
	padding:5px;
	color:#c0392b;
}

/* Handle pagination */

div.article > div.pages {
	text-align:center;
}

div.article > div.pages > p > a, div.article > div.pages > p > span, div.article > div.post_pages > p {
	padding: 0.415em 0.83em;
	background-color:#fafafa;
	border-radius:3px;
}

div.article > div.post_pages {
	margin-top:1.235em;
	text-align:center;
}

div.article > div.post_pages > p {
	display:inline;
}

div.article > div.post_pages > p > a {
}

div.article > div.pages > p > a:hover, div.article > div.pages > p > span {
	background-color:#c0392b;
	color:#fff;
}

/* Wordpress-specific post styling */
div.article > div.section.format-aside > p {
	border-top:1px dotted #515151;
	border-bottom:1px dotted #515151;
}

div.article > div.section.format-status > p:before {
	content: " ";
	display:inline-block;
	width:10px;
	height:10px;
	background-color:#c0392b;
	margin-right:10px;
	border-radius:50%;
}

div.article > div.section.format-status > p.meta:before {
	content:none;
}

div.article > div.section.sticky {
	background-color:#666662;
	color:#fff;
	border-bottom:3px solid #c0392b;
}

div.article > div.section.sticky > h3 > a {
	color:#fff;
	background-color:#c0392b;
	padding:5px;
	border-radius:3px;
}

div.article > div.section.sticky > p.meta, div.article > div.section.sticky > p.meta a  {
	color:#fff;
}

div.article > div.section.sticky > p.meta a:hover {
	text-decoration:underline;
}

div.article > div.section.sticky > p.meta > a:hover {
	text-decoration:underline;
}

div.article > div.section.sticky > h3 > a:hover {
	background-color:#f6f6f6;
	color:#c0392b;
}

/* Wordpress-specific formats */
.size-auto, 
.size-full,
.size-large,
.size-medium,
.size-thumbnail {
	max-width: 100%;
	height: auto;
}

.wp-caption {
}

.wp-caption-text {
}

.gallery-caption {
}

.bypostauthor {
}

.alignright, .alignleft, .aligncenter {
	margin:0.83em;
}

.alignright {
	float:right;
}

.alignleft {
	float:left;
}

.aligncenter {
	float:none;
	margin: 0 auto;
}

/* Pre tags can break the layout */
code, pre {
	border: 1px solid #cecece;
	padding:3px;
	max-width:100%;
	overflow:auto;
	white-space:pre;
	white-space:pre-wrap;
	word-wrap:break-word;
}

.ie pre, .ie code{
	width:100%;
}

/* Remove float in pingbacks */
div.article.comment-body {
	float:none;
	margin-top:0.83em;
}

img.wp-post-image {
	display:block;
	margin: 0.83em auto;
}

code {
	margin: 0.83em;
	display:block;
	font-size:0.83em;
}

tr, th, td {
	border-top:1px solid #666666;
	border-bottom:1px solid #666666;
	border-collapse:collapse;
	padding: 2px 5px;
}

/* Tags Styling */
span.tags {
	float:right;
	display:inline;
}

p.meta:after, p.meta:before {
	content:" ";
	display:table;
}

p.meta:after {
	clear:both;
}

.ie span.tags {
	zoom:1;
}

/* Forms & comments styling */
div.comments {
	border-right:3px solid #666666;
	border-left:3px solid #666666;
	padding:0;
}

div.comments > h3 {
	margin: 0;
	padding:0.83em;
}

div.comments > li {
	padding:0;
	list-style-type:none;
}

div.comments li div.comment-body {
	padding:0.83em;
}

div.comments li div.comment-body:hover, li.pingback:hover {
	background-color:#ececec;
}

div.vcard {
	display:table-row;
}

b.fn, cite.fn, span.says {
	padding: 0 0 0 0.415em;
	display:table-cell;
	vertical-align:middle;
}

form.comment-form > p {
	margin:0;
	padding-bottom:0;
}
form.comment-form > p > input[type='text'] {
	margin-bottom:0;
	width:25em;
}
form.comment-form > p > label {
	width: 5em;
	float:left;
}
form.comment-form > p > textarea {
	padding:3px;
	resize:none;
	width:25em;
}

div.comments ul.children, div.comments li.comment {
	list-style:none;
}

div.comments li.comment, li.pingback{
	border-top:1px solid #ececec;
}

div.comments div.comment-respond {
	border-top:1px solid #ececec;
}

div.comments_pages {
	margin:0.83em 0;
	padding:0.83em;
	background-color:#666666;
	color:#fafafa;
	text-align:center;
}

div.comments_pages a {
	color:#fafafa;
}

div.comments_pages a:hover {
	text-decoration:underline;
}

div.comment-respond h3 {
	margin-top:0;
}

/* Navigation styling */

div.nav > ul {
	margin:0;
	padding:0;
	list-style-type:none;
}

div.nav > ul > li {
	display:inline;
}

div.nav > ul > li > a {
	padding:5px;
}

div.respond-sidebar {
	font-size:0.8em;
	float:right;
	margin-right:5%;
	margin-bottom:1em;
	width:20%;
}

div.respond-sidebar > li > ul,
div.respond-sidebar > li > form,
div.respond-sidebar > li > table {
	padding-top:0.83em;
	margin-top:0.83em;
}

div.respond-sidebar li {
	list-style-type:none;
	background-color:#f6f6f6;
	color: #666666;
	padding-bottom:0.1em;
}

div.respond-sidebar a {
	color:#666666;
}

div.respond-sidebar a:hover {
	color:#c0392b;
	background-color:#f6f6f6;
}

div.respond-sidebar > li > h2 {
	border-bottom:1px solid #ececec;
	background-color:#fafafa;
}

div.respond-sidebar > li > ul {
	padding:0 1.235em;
}

div.respond-sidebar > li > ul > li {
	padding-bottom:0.83em;
}

div.respond-sidebar > li > ul > li:last-child {
	padding-bottom:0;
}

div.respond-sidebar form {
	padding-left:1.235em;
}

div.respond-sidebar form label span {
	display:none;
}

input {
	display:inline;
	margin:0 0 1.235em 0;
	padding:3px;
	outline:none;
	border: 1px solid #cecece;
}

div.respond-sidebar input[type='text'] {
	width:65%;
}

div.respond-sidebar input[type='submit'] {
	width:25%;
}

input[type='submit'] {
	outline:none;
	background-color:#ededed;
	color:inherit;
	border: 1px solid #cecece;
	padding:3px;
}

input[type='submit']:hover {
	border-color: #c0392b;
	background-color:#c0392b;
	color:#fff;
}

div.respond-sidebar h2.widget_name {
	text-align:center;
}

/* WP-Widget Styling */
#calendar_wrap {
	margin-top:1.235em;
}

#wp-calendar {
	width:95%;
	text-align:center;
	margin:0.415em;
}

#wp-calendar > caption {
	margin: 0.83em;
}

#wp-calendar > tbody > tr > td,
#wp-calendar > tbody > tr,
#wp-calendar  > thead > tr,
#wp-calendar  > thead > tr > th,
#wp-calendar > tfoot > tr,
#wp-calendar > tfoot > tr > td {
	border-top:none;
	border-bottom:none;
	padding:0;
}

#wp-calendar > tbody > tr > td > a{
	display:block;
	margin:auto;
	padding:1px;
	width:50%;
	border-radius:50%;
}

#wp-calendar > tbody > tr > td > a {
	background-color:#c0392b;
	color:#fff;
}

#wp-calendar > tbody > tr > td > a:hover {
	background-color:#666666;
}

div.respond-sidebar > li.widget_pages > ul > li {
	border-bottom:1px dotted #666666;
}

div.respond-sidebar > li.widget_pages > ul > li {
	padding: 0.415em 0 0.415em 0;
}

div.respond-sidebar ul.children {
	padding-left:0;
}

/* Responsive width changes */

/* 20em -> 320px */
@media screen and (max-width:20em) {
	body {
		font-size: 0.6em;
	}

	div.header, div.article, div.respond-sidebar {
		margin: 0 1%;
		width: 99%;
	}
	
	div.header_image {
		margin 5px 1%;
		width:99%;
	}

	div.article > div.section p.meta {
		font-size:0.54em;
	}
}

/* 40em -> 640px */
@media screen and (max-width:40em) {
	body {
		font-size:0.83em;
	}
	
	div.article > div.section p.meta {
		font-size:0.63em;
	}
}

/* 45em -> 720px */
@media screen and (max-width:45em) {
	div.header {
		text-align:center;
		margin: 5px 2% 0 2%;
		width:94%;
	}

	.top-nav {
		float:none;
	}

	div.article, div.respond-sidebar {
		float:none;
		width:96%;
		margin: 0 2%;
	}

	div.header_image {
		width:96%;
		margin: 5px 2%;
	}

	div.respond {
		font-size:0.83em;
		margin-left:2%;
		margin-right:2%;
		width:94%;
	}


	div.respond-sidebar input[type='text'] {
		width:70%;
	}

	/* reset comments */
	form.comment-form > p > label {
		display:block;
	}

	form.comment-form > p > input[type='text'], form.comment-form > p > textarea {
		width:100%;
	}

	div.nav, div.header > h1 {
		display:inline;
		text-align:center;
	}

	div.nav  > ul {
		margin-top: 0.83em;
	}
}
