@charset "utf-8";
/*
Theme Name: BirdTIPS
Theme URI: http://www.sysbird.jp/birdtips-theme/
Description: BirdTIPS is a flexible three-column blog theme. Its responsive layout and is therefore optimized for tablet pcs and smart phones.  You can also choose the text color, link color, article title color and navigation menu color on the Theme Customize.
Author: Sysbird
Author URI: http://www.sysbird.jp
Version: 1.09
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: three-columns, right-sidebar, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-image-header, featured-images, full-width-template, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready, blog
Text Domain: birdtips

This theme, like WordPress, is licensed under the GPL.

*/

@import "compass";
@import "compass/reset";

// variable
$background_color: #F5F5F5;
$text_color: #555;
$link_color: #06A;
$navigation_color: #DDD;
$title_color: #D63;
$border-color: #CCC;
$meta-color: #999;
$line-height: 1.7;

/* Font Awesome
--------------------------------------------- */
@font-face {
  font-family: 'FontAwesome';
  src: url("font-awesome/fontawesome-webfont.eot?v=4.1.0");
  src: url("font-awesome/fontawesome-webfont.eot?#iefix&v=4.1.0") format("embedded-opentype"), url("font-awesome/fontawesome-webfont.woff?v=4.1.0") format("woff"), url("font-awesome/fontawesome-webfont.ttf?v=4.1.0") format("truetype"), url("font-awesome/fontawesome-webfont.svg?v=4.1.0#fontawesomeregular") format("svg");
  font-weight: normal;
  font-style: normal; }

@mixin font-awesome() {
	display: inline-block;
	font-family: FontAwesome;
	font-style: normal;
	font-weight: normal;
	line-height: 1;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;}

/* Link
--------------------------------------------- */
a {
	color: $link_color;
	text-decoration: none;

	&:hover {
		decoration: underline;
	}
}

/* Structure
--------------------------------------------- */
body {
    margin: 0;
    padding: 0;
    border: 0;
    width: 100%;
	background-color: $background_color;
	font-family: 'Lato', Verdana, Arial, Meiryo, "Hiragino Kaku Gothic Pro", sans-serif;
	font-size: 0.92em;
	color: $text_color;

	* {
		-webkit-box-sizing: border-box;
		-moz-box-sizing: border-box;
		-o-box-sizing: border-box;
		-ms-box-sizing: border-box;
		box-sizing: border-box;
	}
}

#container {
	max-width: 1075px;
	margin: 0 auto;
	padding: 0;
	background-color: #fff;
	z-index: 0;
}

#header {
	max-width: 100%;
	margin: 0 auto;
	position: relative;
}

#wrapper {
	margin:0 0 0;
	padding:25px 25px 25px 75px;
	padding: #{$line-height}em #{$line-height}em #{$line-height}em 75px;
	@include display-flex();
}

#main {
	flex: 4;
	min-width: 0;
	@include display-flex();
}

#content {
	flex: 3;
	min-width: 0;
	word-break:break-all;
}

#leftcolumn {
	flex: 1;
	padding-left: 3%;
	padding-right: 3%;
	min-width: 0;
	word-break:break-all;
}

#rightcolumn {
	flex: 1;
	min-width: 0;
	word-break:break-all;
}

#footer {
	clear: both;
	padding:25px 25px 25px 75px;
	overflow: hidden;
}

/* Header
--------------------------------------------- */
#header {
	img {
		width: 100%;
		height: auto;
		vertical-align:bottom;
	}

	#branding {
		position: absolute;
		left: 75px;
		top: 0;
		color: $navigation_color;

		#site-title {
			margin: 0;
			padding: #{$line-height /2}em 0 0 0;
			font-size: 2rem;
			line-height: 1.2;

			a {
				color: $navigation_color;
				font-weight: bold;
				text-decoration: none;
			}
		}

		#site-description {
			margin: 3px 0;
		}
	}

	&.no-title {
		padding-top: 2em;

		#branding {
			position: absolute !important;
			clip: rect( 1px, 1px, 1px, 1px );
		}
	}

	&.no-image {
		#branding {
			position: static;
			margin: 0 0 2em 75px;
		}

		#menu-wrapper {
			position: relative;
		}
	}
}

/* Menu
-------------------------------------------------------------- */
#menu-wrapper {
	position: absolute;
	bottom: 5px;
	padding-left: 75px;
	z-index: 9;

	.menu {
		#small-menu {
			display: none; /* hide small menu initially */
		}

		ul#menu-primary-items {
			@include pie-clearfix;

			li {
				position: relative;

				&:hover > ul {
					display: block; /* show dropdown on hover */
				}

				ul {
					position: absolute;
					top: #{ 1.2 + $line-height /2}em;
					left: 0;
					margin: 0;
					border: solid 1px $border-color;
					display: none; /* hide dropdown */
					width: 200px;
					z-index: 2;

					li {
						margin: -1px 0 0 0;
						padding: 0;

						a {
							display: block;
							padding: #{$line-height /2}em;
							background: $background_color;
							color: $text-color;
							border-top: dotted 1px $border-color;
							line-height: 1.2;
							text-decoration: none;
							white-space: normal;

							&:hover {
								background: #FFF;
							}
						}

						&:first-child a {
							border-top: solid 1px $border-color;
						}

						&.menu-item-has-children {
							>a:after {
								@include font-awesome();
								padding-left: 5px;
								content: "\f0da";
							}
						}

						ul {
							top: 0;
							left: 100%;
						}
					}
				}

				&.menu-item-has-children {
					>a:after {
						@include font-awesome();
						padding-left: 5px;
						content: "\f0da";
					}
				}
			}

			> li {
				display: inline-block;

				> a {
					display: block;
					padding: #{$line-height /4}em #{$line-height /2}em;
					color: $navigation_color;
					border-left: solid 1px $navigation_color;
					line-height: 1.2;

					&:hover {
						text-decoration: underline;
					}
				}

				&:first-child a {
					border: none;
					padding-left: 0;
				}

				&.menu-item-has-children {
					>a:after {
						@include font-awesome();
							padding-left: 5px;
							content: "\f0d7";
					}
				}
			}

			li[class*="current-menu"] {
				> a {
					font-weight: bold;
				}
			}
		}
	}
}

/* Posts
--------------------------------------------- */
#content{
	.hentry {
		margin-bottom: #{$line-height *2}em;

		.entry-content {
			@include clearfix;
		}

		.entry-meta {
			clear: both;
			margin-top: 1em;
			line-height: 1.4;
			display: block;
			background: $background_color;
			font-size: 0.96em;
			padding: #{$line-height /4}em;
			color: $meta-color;
			@include clearfix;

			span {
				padding: 0 #{$line-height /4}em;
				display: inline-block;

				&:before {
					@include font-awesome();
				}
			}

			a {
				padding: 0 #{$line-height /4}em;
			}

			.postdate {
				&:before {
					content: "\f133";
				}
			}

			.author {
				&:before {
					content: "\f007";
				}
			}

			.category {
				&:before {
					content: "\f07b";
				}
			}

			.tag {
				&:before {
					content: "\f02c";
				}
			}

			.comment {
				&:before {
					content: "\f075";
				}
			}
		}

		.entry-header {
			position: relative;
			margin: 0;
			display: block;

			.entry-title {
				color: $title_color;
				font-size: #{$line-height}rem;
				font-weight: normal;
				margin: 0 0 1em 0;
				padding: 0 0 #{$line-height /2}em 0;
				line-height: 1.2;
				border-bottom: dotted 2px $border-color;

				a {
					color: $title_color;
					text-decoration:none;
					border: none;

					&:hover {
						text-decoration: underline;
					}
				}
			}

			.postdate {
				font-size: 1.1em;
				font-style: italic;
				position: absolute;
				left: -75px;
				top: 0;
				background: $title_color;
				color: #FFF;
				padding: 5px 7px 15px 0;
				text-align: right;
				width: 60px;
				line-height: 1.1;

				&.circle {
					left: -95px;
					top: -1em;
					border-radius: 100%;
					width: 5em;
					height: 5em;
					text-align: center;
					padding: 0.6em 0;
				}

				span {
					display: block;
				}
			}
		}

		&.sticky .entry-header .postdate {
			background: $link_color;
		}

		.page-link {
			clear: both;
			margin: #{$line-height}em 0;
			color: $link-color;

			span {
				background: $link-color;
				color: #FFF;
				padding: #{$line-height /8}em #{$line-height /4}em;
				text-decoration:none;
				font-weight: normal;
				text-align: center;
				border: solid 1px $link-color;
				display: inline-block;
				line-height: 1;
			}

			a {
				span {
					color: $link-color;
					background: #FFF;

					&:hover {
						background: $background_color;
					}
				}
			}
		}
	}

	a {
		border-bottom: dotted 1px $link_color;

		&:hover {
			text-decoration: none;
			border-bottom: solid 1px $link_color;
			}

		&.more-link {
			display: inline-block;

			&:after {
				@include font-awesome();
				padding-left: #{$line-height /4}em;
				content: "\f061";
			}
		}
	}

	a.thumbnail {
		display: block;
		border-bottom: none;
		margin: 0 0 0.5em 1em;
		float: right;

		img.wp-post-image {
			max-width: 300px;
		}
	}

	h1, h2, h3, h4, h5, h6 {
		margin: 0.7em 0;
		line-height:1.2;
		font-weight: normal;
	}

	h1 {font-size:2.4rem;}
	h2 {font-size:2rem;}
	h3 {font-size:1.8rem;}
	h4 {font-size:1.6rem;}
	h5 {font-size:1.4rem;}
	h6 {font-size:1.2rem;}

	h2 {
		border-bottom: dashed 1px $border-color;
		padding-bottom: #{$line-height /4}em;
	}

	h3 {
		border-left: solid 7px $border-color;
		padding-left: 10px;
	}

	p {
		line-height: $line-height;
		margin: 0 0 #{$line-height}em;
	}

	blockquote {
		margin-left: 1em;
		padding-left: 1em;
		border-left: 10px solid $border-color;

		small {
			display: block;
			line-height: 20px;
			color: $meta-color;
		}

		small:before {
			content: '\2014 \00A0';
		}

		cite:before {
			content: "-";
		}

		cite {
			color: $meta-color;
			display: block;
		}

	}

	table {
		max-width: 100%;
		border-collapse: collapse;
		border-spacing: 0;
		margin-bottom: #{$line-height}em;

		th,
		td {
			border: 1px solid $border-color;
			line-height: 1.4;
			padding: #{$line-height /2}em;
			vertical-align: top;
		}

		th {
			text-align: center;
			font-weight: bold;
			background: $background_color;
		}
	}

	pre {
		border: dashed 1px $border-color;
		padding: #{$line-height /2}em;
		background: $background_color;
		margin-bottom: #{$line-height}em;
		line-height: 1.4;
		white-space: pre-wrap;
		word-wrap: break-word;
	}

	code {
		background: $background_color;
	}

	code, kbd, pre, samp {
		font-family: monospace,serif;
	}

	hr {
		background-color: $border-color;
		border: 0 none;
		height: 1px;
		margin-bottom: #{$line-height}em;
	}

	sup, sub {
		font-size: #{$line-height /2}em;
		height: 0;
		line-height: 0;
		position: relative;
		vertical-align: baseline;
	}

	sub {
		top: 0.5ex;
	}

	sup {
		bottom: 1ex;
	}

	em {
		font-style: italic;
	}

	strong {
		font-weight: bold;
	}

	abbr, acronym {
		border-bottom: 1px dotted #666;
		cursor: help;
	}
	ul,
	ol {
		margin: 0 0 #{$line-height}em 1em;
		padding: 0 0 0 1em;
		line-height: 1.4;

		li {
			padding: 0.2em 0;
		}

		ul,
		ol {
			margin-bottom: 0;
		}
	}

	ul {
		list-style: disc;
		ul {
			list-style: circle;
			ul {
				list-style: square;
			}
		}
	}

	ol {
		list-style: decimal;
		ol {
			list-style:upper-alpha;
			ol {
				list-style:lower-roman;
				ol {
					list-style:lower-alpha;
				}
			}
		}
	}

	dl {
		margin:0 0 1em 0;
		line-height: $line-height;

		dt {
			font-weight: bold;
		}

		dd {
			margin: 0 1.5em #{$line-height}em;
			padding: 0;
		}
	}

	del {
		color: #C00;
	}

	ins {
		background: #ffc;
		text-decoration: none;
	}
}

.home #content .hentry.sticky .entry-header .entry-title,
.home #content .hentry.sticky .entry-header .entry-title a {
	color: $link_color;
}

.attachment.single {
	#main {
		width: 100%;
	}

	#content {
		width:98%;
		float: none;
	}

	#content .entry-content .attachment {
		text-align: center;
	}
}

/* Link Style */
#content .hentry .entry-meta a,
.single #content #nav-below a,
#content #comments  a.comment-reply-link,
#content #comments .navigation a {
	border: none;

	&:hover {
		text-decoration: underline;
	}
}

/* Pagenation
-------------------------------------------------------------------- */
#content .pagination {
	clear: both;
	color: $link-color;
	@include clearfix;

	a,
	span {
		display: inline-block;
		color: $link-color;
		border:solid 1px $link-color;
		text-align: center;
		padding: #{$line-height /4}em #{$line-height /3}em;
		margin: #{$line-height /8}em;
		text-decoration:none;

		&.prev,
		&.next {
			font-weight: bold;
			border: none;
			padding: #{$line-height /4}em 0;
		}

		&.dots {
			border: none;
			padding: #{$line-height /4}em;
		}
	}

	a:hover {
		background: $background_color;

		&.prev,
		&.next {
			background: none;
			text-decoration: underline;
		}
			}

	span.current {
		font-weight: bold;
		color: #FFF;
		background: $link-color;
	}

	a.page-numbers.prev:before {
		@include font-awesome();
		padding-right: 0.4em;
		content: "\f060";
	}

	a.page-numbers.next:after {
		@include font-awesome();
		padding-left: 0.4em;
		content: "\f061";
	}
}

/* Accessibility
-------------------------------------------------------------- */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	color: #21759b;
	display: block;
	font-size: 14px;
	font-size: 0.875rem;
	font-weight: bold;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000; /* Above WP toolbar. */
}

/* Images
-------------------------------------------------------------- */
#content .hentry img,
.widget img {
	max-width: 100%;
	height: auto;
	border: 1px solid $border-color;
	padding: 1px;
}

img[class*="align"],
img[class*="wp-image-"] {
	height: auto;
}

.aligncenter {
	margin-left: auto;
	margin-right: auto;
	display: block;
}

.alignleft {
	float: left;
	margin-right: 0.75em;
}

.alignright {
	float: right;
	margin-left: 0.75em;
}

img.alignleft,
img.alignright,
img.aligncenter {
	margin-bottom: 0.75em;
}

a:hover img {
	@include opacity(0.9);
}

#content .hentry {
	.wp-caption,
	.gallery-caption {
		font-size: 0.96em;
		line-height: 1;
		color: $meta-color;
		max-width: 100%;
		text-align: center;
	}

	.wp-caption {
		padding: 5px;
		margin-bottom: #{$line-height}em;
		background: $background_color;
		max-width: 100%;

		img {
			padding: 0;
			border: none;
		}

		p {
			text-align: center;
			margin: 5px 0 0 0;
			line-height: 1;
		}

		a {
			border: none;
		}
	}

	.gallery-caption {
		margin: 5px 0 0 0;
	}

	.gallery {
		margin: 0 auto;
		clear: both;

		a {
			border: none;
		}

		.gallery-item {
			float: left;
			padding: 0 5px;
			margin-bottom: 10px;
			text-align: center;
			width: 33%;

			a {
				display: block;
			}

			img {
				vertical-align:bottom;
			}
		}

		&.gallery-columns-2 .gallery-item {
			max-width: 50%;
		}

		&.gallery-columns-3 .gallery-item {
			max-width: 33.33%;
		}
		&.gallery-columns-4 .gallery-item {
			max-width: 25%;
		}

		&.gallery-columns-5 .gallery-item {
			max-width: 20%;
		}

		&.gallery-columns-6 .gallery-item {
			max-width: 16.66%;
		}

		&.gallery-columns-7 .gallery-item {
			max-width: 14.28%;
		}

		&.gallery-columns-8 .gallery-item {
			max-width: 12.5%;
		}

		&.gallery-columns-9 .gallery-item {
			max-width: 11.11%;
		}
	}
}

/*  Make sure videos and embeds fit their containers
-------------------------------------------------------------- */
embed,
iframe,
object,
video {
	max-width: 100%;
}
.entry-content .twitter-tweet-rendered {
	max-width: 100% !important; /* Override the Twitter embed fixed width */
}

/* Comments
-------------------------------------------------------------- */
#content #comments {
	margin-top: 20px;
	display: block;

	.navigation {
		position: relative;
		height: 1em;
		padding-bottom: 10px;
		margin-bottom: 1em;

		.nav-previous a {
			position: absolute;
			top: 0;
			right: 0;
			padding-left: 1em;
		}

		.nav-next a {
			position: absolute;
			top: 0;
			left: 0;
			padding-right: 1em;
		}
	}

	ol.commentlist {
		list-style: none;
		margin: 0;
		padding-left: 0;

		li.pingback,
		li.comment {
			border-left: 2px solid $border-color;
			clear: both;
			margin-bottom: #{$line-height}em;
			padding: 0 0 0 10px;
			position: relative;
			list-style: none;

			&:after {
				@include clearfix;
			}

			.comment-author {
				.fn {
					font-weight: bold;
					color: #000;
				}

				img {
					border: none;
					margin: 0 10px 10px 0;
					float: left;
				}
			}

			.comment-meta {
				font-size: 0.96em;
				line-height: $line-height;
				margin-bottom: #{$line-height}em;

				a {
					border-bottom: none;
					color: $meta-color;
				}
			}

			.comment-awaiting-moderation {
				font-size: 0.96em;
				color: $meta-color;
			}

			&.bypostauthor .comment-author .fn {
				color: $title_color;
			}

			.reply {
				margin-bottom: #{$line-height}em;

				a.comment-reply-link {
					&:before {
						@include font-awesome();
						padding-right: 0.2em;
						content: "\f0da";
					}
				}
			}
		}
	}
}

/* Forms
-------------------------------------------------------------- */
form {
	input {
		font-size: 100%;
	}
}

#commentform {
	border: 1px dotted $border-color;
	padding: 10px 15px 0;
	margin-bottom: #{$line-height}em;

	p {
		margin-bottom: #{$line-height /2}em;
	}

	label {
		padding: 0 0 5px 0;
		display: block;
	}

	input:not([id="submit"]) {
		width: 100%;
		max-width: 300px;
		padding: 5px;
		background: #FFF;
		border: solid 1px $border-color;
	}

	textarea {
		width: 100%;
		height: 100px;
		padding:5px;
		background: #FFF;
		border: solid 1px $border-color;
	}

	input#submit {
		padding: 5px 10px;
	}

	#email-notes	 {
		display: block;
	}

	.form-allowed-tags {
		line-height: 1.2;

		code {
			display: block;
		}
	}
}

.post-password-form {
	input:not([type="submit"]) {
		padding: 5px;
		background: #FFF;
		border: solid 1px $border-color;
	}
}

/* Searcform
--------------------------------------------- */
#searchform {
	width: 100%;
	height: 30px;
	position: relative;

	#s {
		width: 80%;
		padding: 5px 10px 5px 5px;
		height: 30px;
		line-height: 1;
		border: solid 1px $border-color;
	}

	#searchsubmit {
		position: absolute;
		top: 0;
		right: 1px;
		border: 0 none;
		cursor: pointer;
		width: 20%;
		height: 30px;
		margin: 0;
		background: $border-color;
		color: #FFF;
		-webkit-appearance: button;

		&:before {
			font-size: 1.4rem;
			@include font-awesome();
			content: "\f002";
		}
	}
}

/* Archive
-------------------------------------------------------------------- */
.archive #content ul,
.error404 #content ul {
	margin: 0;
	padding: 0;
	list-style: none;

	li {
		border-bottom: dotted 1px $border-color;
		padding: 0;
		@include clearfix;

		a {
			text-decoration: none;
			color: $text_color;
			border: none;
			padding: 0.5em 0;
			@include display-flex();

			&:hover {
				background: $background_color;
			}
		}

		span {
			text-indent: -0.3em;
			margin-left: 0.6em;
			flex: 2;

			&:before {
				@include font-awesome();
				padding-right: 0.2em;
				content: "\f0da";
			}
		}

		em {
			flex: 1;
			text-align: right;
			font-style: normal;
		}
	}
}

.search #content {
	h2 {
		font-size: #{$line-height}em;

		a {
			border: none;

			&:hover {
				text-decoration: underline;
			}
		}
	}
}

/* Single
-------------------------------------------------------------------- */
.single {

	#content #nav-below {
		@include display-flex();

		.nav-previous {
			flex: 1;
			text-align: right;

			a:after {
				@include font-awesome();
				padding-left: 0.4em;
				content: "\f061";
			}
		}

		.nav-next {
			flex: 1;

			a:before {
				@include font-awesome();
				padding-right: 0.4em;
				content: "\f060";
			}
		}
	}
}

/* Attachment
-------------------------------------------------------------------- */
.attachment {

	#content {
		.hentry {

			.entry-attachment {
				text-align: center;
				margin-bottom: #{$line-height}em;

				.wp-caption {
					background: none;
				}
			}

			.attachment a {
				border: none;
			}
		}
	}
}

/* Sidebars
--------------------------------------------- */
.widget {
	margin-bottom: #{$line-height}em;
	line-height: #{$line-height * 0.8}em;

	a {
		text-decoration: none;

		&:hover {
			text-decoration: underline;
		}
	}

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

	h3 {
		font-size: 1.2em;
		font-weight: normal;
		margin: 0 0 10px 0;
		padding: 0 0 5px 0;
		border-bottom: solid 3px $border-color;
	}

	ul {
		list-style: none;
		padding: 0;
		margin-left: 0;
		overflow: hidden;

		li {
			margin-top: -1px;
			border-top: dotted 1px $border-color;
			padding:  #{$line-height /4}em 0 #{$line-height /4}em 0.6em;
			text-indent: -0.3em;

			a {
				color: $text-color;
			}

			&:before {
				@include font-awesome();
				padding-right: 0.2em;
				content: "\f0da";
			}

			ul {
				padding: 0.5em 0 0 0.5em;
			}
		}
	}

	table {
		width: 100%;
		margin-bottom: 0;
		padding-bottom: 0;
	}

	.textwidget{
		line-height: 1.4;

		a {
			text-decoration: underline;
		}
	}

	#wp-calendar {
		/* Calendar Widget */
		border-collapse: collapse;
		border-spacing: 0;

		caption {
			font-size: 1.2em;
			font-weight: bold;
		}

		tbody {
			th,
			td {
				text-align: center;
				border-top: dotted 1px $border-color;
				padding: 2px;

				a {
					display: block;
					background: $link-color;
					color: #FFF;
				}
			}
		}

		thead {
			th {
				padding: 5px 2px;
				text-align: center;
			}
		}

		tfoot {
			border-top: 1px dotted $border-color;

			#next {
				text-align: right;
			}

			td {
				padding: 5px 2px;
			}
		}
	}
}

/* Footer
--------------------------------------------- */
#footer {
	background: $title_color;
	color: #FFF;

	.site-title {
		padding: 1em 0;
		line-height: $line-height;

		.home {
			font-weight: bold;
		}

		a {
			color: #FFF;
		}

		.generator {
			font-family: Georgia, "Bitstream Charter", serif;
			font-style: italic;

			a:after {
				@include font-awesome();
				padding-left: 0.4em;
				padding-right: 0.2em;
				content: "\f19a";
			}
		}
	}

	#back-top {
		position: fixed;
		bottom: 10px;
		right: 10px;
		z-index: 3;

		a {
			color: $border-color;
			display: block;
			height: 60px;
			width: 60px;
			text-decoration: none;
			@include opacity( 0.7 );

			span {
				@include hide-text;
				display: block;
			}

			&:hover {
				text-decoration: none;
				@include opacity( 0.8 );
			}

			&:before {
				@include font-awesome();
				content: "\f0aa";
				font-size: 60px;
				display: block;
			}
		}
	}
}

/* Media queries for responsive design
--------------------------------------------- */
/* --- iPad Landscape --- */
@media screen and (max-width: 1000px) {
	/* --- General --- */
	#container {
		margin: 0 auto;
	}

	#wrapper {
		overflow: hidden;
	}

	#wrapper {
		display: block;
	}

	#content {
		padding-right: 0;
	}

	/* --- Sidebars --- */
	#leftcolumn {
		padding-right: 0;

		.widget ul li {
			border: none;
			display: inline;

			a {
				text-decoration: underline;

				&:hover {
					color: $meta-color;
				}
			}

			ul li {
				border-top: none;
			}
		}
	}

	#rightcolumn {
		padding-top: #{$line-height *2}em;
	}
}

/* --- iPad Portrait --- */
@media screen and (max-width: 800px) {

	#header {
		#branding {

			#site-title {
				padding: 5px 0 0;
			}

			#site-description {
				display: none;
			}
		}
	}

	#main {
		display: block;
	}

	/* --- Sidebars --- */
	#leftcolumn {
		padding-left: 0;
		padding-top: #{$line-height *2}em;
	}

	#leftcolumn aside:last-child {
		margin-bottom: 30px;
		border-bottom: 1px solid $border-color;
	}

	#rightcolumn {
		padding-top: 0;
	}

	#rightcolumn aside:last-child {
		margin-bottom: 0;
		border-bottom: none;
	}
}

/* --- Smartphones and small Tablet PCs --- */
@media screen and (max-width: 650px) {

	body {
		font-size: 1.04rem;
	}

	#wrapper {
		padding:10px;
	}

	#header {
		#branding {
			left: 0;
			padding: 0 10px;

			#site-title {
				font-size: 1.2rem;
			}
		}

		&.no-image {
			#branding {
				padding: 1em 10px;
				margin: 0;
			}

			#menu-wrapper {
				position: absolute;
			}
		}

		&.no-menu {
			padding-top: 0;

			#branding {
				top: 0;
			}
		}
	}

	/* small menu */
	#menu-wrapper {
		bottom: 0;
		width: 100%;
		padding: 0;

		.menu {
			#small-menu {
				cursor: pointer;
				display: block;
				margin: 0 10px 10px 0;
				font-size: 24px;
				color: $navigation_color;
				float: right;

				&:after {
					@include font-awesome();
					content: "\f0c9";
				}
			}

			ul#menu-primary-items {
				clear: both;
				position: absolute;
				top: 34px;
				width: 100%;
				display: none; /* visibility will be toggled with jquery */
				background: $background_color;

				li {
					ul {
						position: static;
						padding-left: #{$line-height /2}em;
						display: block;
						border: none;
						width: auto;

						li {
							border-top: dotted 1px $border-color;

							a {
								border-top: none;
								padding: #{$line-height /4}em;
								background: none;

								&:hover {
									background: none;
								}
							}

							&.menu-item-has-children {
								>a:after {
									content: "";
								}
							}

							&:first-child a {
								border-top: none;
							}
						}
					}
				}

				> li {
					display: block;
					border-top: dotted 1px $border-color;

					> a {
						color: $text-color !important;
						border-left: none;
						line-height: 1.2;
						padding: #{$line-height /4}em;

						&:hover {
							text-decoration: none;
						}
					}

					&:first-child a {
						padding-left: #{$line-height /4}em;
					}

					&.menu-item-has-children {
						>a:after {
							content: "";
						}
					}
				}

				li[class*="current-menu"] {
					> a {
						font-weight: normal;
					}
				}
			}
		}

		&.current {
			.menu {
				#small-menu {
					&:after {
						@include font-awesome();
					}
				}
			}
		}
	}

	#content .hentry {
		.entry-header {
			position: static;

			.entry-title {
				margin: 0;
			}

			.postdate {
				position: static;
				color: $title_color;
				background: none;
				padding: 0.5em 0 1em 0;
				width: 100%;
				text-align: left;
				background: none !important;
				display: block;

				&.circle {
					height: auto;
					width: 100%;
					text-align: left;
				}

				span {
					display: inline;
					padding-right: 5px;
				}
			}

			a:hover .postdate {
				text-decoration: underline;
			}
		}

		a.thumbnail {
			float: none;
			margin-left: 0;
			text-align: center;

			img.wp-post-image {
				max-width: 100%;
			}
		}
	}

	.single {

		#content #nav-below {
			display: block;

			.nav-previous {
				display: block;
				margin-top: #{$line-height /2}em;
				text-align: left;
			}

			.nav-next {
				display: block;
			}
		}
	}

	#footer {
		padding-left:10px;
	}

	.archive #content ul,
	.error404 #content ul {

		li {

			a {
				display: block;
			}

			span {
				display: block;

			}

			em {
				display: block;
				margin-left: 0.6em;
				font-size: 0.86em;
			}
		}
	}
}

@media screen and (min-width: 650px) {
	ul#menu-primary-items {
		/* ensure .menu is visible on desktop version */
		display: block !important;
	}
}
