/*
	Theme Name: Custom Theme, Bases on HTML5 Blank
	Theme URI: http://html5blank.com
	Description: HTML5 Blank WordPress Theme
	Version: 1.4.3
	Author: Todd Motto (@toddmotto)
	Author URI: http://toddmotto.com
	Tags: Blank, HTML5, CSS3

	License: MIT
	License URI: http://opensource.org/licenses/mit-license.php
*/

/*------------------------------------*\
    NORMALIZE
\*------------------------------------*/

/*! normalize.css v2.1.3 | MIT License | git.io/normalize */
article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block}audio,canvas,video{display:inline-block}audio:not([controls]){display:none;height:0}[hidden],template{display:none}html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}a{background:transparent}a:focus{outline:thin dotted}a:active,a:hover{outline:0}h1{font-size:2em;margin:.67em 0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0}mark{background:#ff0;color:#000}code,kbd,pre,samp{font-family:monospace,serif;font-size:1em}pre{white-space:pre-wrap}q{quotes:"\201C" "\201D" "\2018" "\2019"}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:0}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{border:0;padding:0}button,input,select,textarea{font-family:inherit;font-size:100%;margin:0}button,input{line-height:normal}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=search]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}textarea{overflow:auto;vertical-align:top}table{border-collapse:collapse;border-spacing:0}

/*------------------------------------*\
    MAIN
\*------------------------------------*/

/* global box-sizing */
*,
*:after,
*:before {
	-moz-box-sizing:border-box;
	box-sizing:border-box;
	-webkit-font-smoothing:antialiased;
	font-smoothing:antialiased;
	text-rendering:optimizeLegibility;
}
html {
	font-size:62.5%;
}
body {
	background-color: #414141;
}
/* clear */
.clear:before,
.clear:after {
    content:' ';
    display:table;
}

.clear:after {
    clear:both;
}
.clear {
    *zoom:1;
}
img {
	max-width:100%;
	vertical-align:bottom;
}
a {
	color:#444;
	text-decoration:none;
}
a:hover {
	color:#fff;
}
a:focus {
	outline:0;
}
a:hover,
a:active {
	outline:0;
}
input:focus {
	outline:0;
	border:1px solid #04A4CC;
}

hr.solid {
	border: 0;
	height: 1px;
	background-color: #888;
	margin: 2rem 0;
}

*:focus { outline: none; border: none; }

img {
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-o-user-select: none;
user-select: none;
}

/* These can be set in the writings to control the width of the text blocks */

span.width {
	display: inline-block;
}

@media screen and (max-width: 640px){
	span.width {
		width: 100% !important;
	}
}

/*------------------------------------*\
	TYPOGRAPHY
\*------------------------------------*/

body {
	font: Helvetica, Arial, sans-serif;
	color:#eee;
	font-size: 1.3rem;
	line-height: 1.4;
}

a, .a-color {
	color: #95e4e2;
}

a {
	text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0;
	padding: 0;
}

h1 {
	font-size: 1.8rem;
	margin-bottom: 1rem;
}

.header h2 {
	font-size: 1.4rem;
	font-weight: normal;
	color: #fff;
	text-transform: lowercase;
}

.header h2 a {
	color: #fff;
	text-decoration: none;
}	

.nav a {
	color: #fff;
	text-decoration: none;
}

p { 
	margin: 0 0 1rem 0; 
}


/*------------------------------------*\
	FLEXSLIDER 2
\*------------------------------------*/

/*
 * jQuery FlexSlider v2.2.0
 * http://www.woothemes.com/flexslider/
 *
 * Copyright 2012 WooThemes
 * Free to use under the GPLv2 license.
 * http://www.gnu.org/licenses/gpl-2.0.html
 *
 * Contributing author: Tyler Smith (@mbmufffin)
 */


/* Browser Resets
*********************************/
.flex-container a:active,
.flexslider a:active,
.flex-container a:focus,
.flexslider a:focus  {outline: none;}
.slides,
.flex-control-nav,
.flex-direction-nav {margin: 0; padding: 0; list-style: none;}

/* Icon Fonts
*********************************/
/* Font-face Icons */
@font-face {
	font-family: 'flexslider-icon';
	src:url('fonts/flexslider-icon.eot');
	src:url('fonts/flexslider-icon.eot?#iefix') format('embedded-opentype'),
		url('fonts/flexslider-icon.woff') format('woff'),
		url('fonts/flexslider-icon.ttf') format('truetype'),
		url('fonts/flexslider-icon.svg#flexslider-icon') format('svg');
	font-weight: normal;
	font-style: normal;
}

/* FlexSlider Necessary Styles
*********************************/
.flexslider {margin: 0 0 0 0; padding: 0;}
.flexslider .slides > li {display: none; -webkit-backface-visibility: hidden;} /* Hide the slides before the JS is loaded. Avoids image jumping */
.flexslider .slides img {width: 100%; display: block;}
.flex-pauseplay span {text-transform: capitalize;}

/* Clearfix for the .slides element */
.slides:after {content: "\0020"; display: block; clear: both; visibility: hidden; line-height: 0; height: 0;}
html[xmlns] .slides {display: block;}
* html .slides {height: 1%;}

/* No JavaScript Fallback */
/* If you are not using another script, such as Modernizr, make sure you
 * include js that eliminates this class on page load */
.no-js .slides > li:first-child {display: block;}

/* FlexSlider Default Theme
*********************************/
/*.flexslider { margin: 0 0 60px; background: #fff; border: 4px solid #fff; position: relative; -webkit-border-radius: 4px; -moz-border-radius: 4px; -o-border-radius: 4px; border-radius: 4px; -webkit-box-shadow: 0 1px 4px rgba(0,0,0,.2); -moz-box-shadow: 0 1px 4px rgba(0,0,0,.2); -o-box-shadow: 0 1px 4px rgba(0,0,0,.2); box-shadow: 0 1px 4px rgba(0,0,0,.2); zoom: 1; }*/
.flex-viewport { max-height: 2000px; -webkit-transition: all 1s ease; -moz-transition: all 1s ease; -o-transition: all 1s ease; transition: all 1s ease; }
.loading .flex-viewport { max-height: 300px; }
.flexslider .slides { zoom: 1; }
.carousel li { margin-right: 5px; }

.flexslider { max-width: 86rem; margin: 0 0 1rem; background: transparent; border: none; position: relative; zoom: 1; }


/* Direction Nav */
/*.flex-direction-nav {*height: 0;}
.flex-direction-nav a  { text-decoration:none; display: block; width: 40px; height: 40px; margin: -20px 0 0; position: absolute; top: 50%; z-index: 10; overflow: hidden; opacity: 0; cursor: pointer; color: rgba(0,0,0,0.8); text-shadow: 1px 1px 0 rgba(255,255,255,0.3); -webkit-transition: all .3s ease; -moz-transition: all .3s ease; transition: all .3s ease; }
.flex-direction-nav .flex-prev { left: -50px; }
.flex-direction-nav .flex-next { right: -50px; text-align: right; }
.flexslider:hover .flex-prev { opacity: 0.7; left: 10px; }
.flexslider:hover .flex-next { opacity: 0.7; right: 10px; }
.flexslider:hover .flex-next:hover, .flexslider:hover .flex-prev:hover { opacity: 1; }
.flex-direction-nav .flex-disabled { opacity: 0!important; filter:alpha(opacity=0); cursor: default; }
.flex-direction-nav a:before  { font-family: "flexslider-icon"; font-size: 40px; display: inline-block; content: '\f001'; }
.flex-direction-nav a.flex-next:before  { content: '\f002'; }*/


.flex-direction-nav {*height: 0;}
.flex-direction-nav a  { text-decoration:none; display: block; width: 20%; height: 100%; margin: -20px 0 0; margin: 0; position: absolute; top: 0; z-index: 10; overflow: hidden; opacity: 0; background-color: none; cursor: pointer; color: rgba(255,255,255,0.8); text-shadow: 1px 1px 0 rgba(0,0,0,0.4); -webkit-transition: all .3s ease; -moz-transition: all .3s ease; transition: all .3s ease; }
.flex-direction-nav .flex-prev { left: -50px; left: 0;}
.flex-direction-nav .flex-next { right: -50px; right: 0; }
.flexslider:hover .flex-prev { opacity: 0.7; opacity: 0; left: 10px; left: 0; text-align: center; }
.flexslider:hover .flex-next { opacity: 0.7; opacity: 0; right: 10px; right: 0; text-align: center; }
.flexslider:hover .flex-next:hover, .flexslider:hover .flex-prev:hover { opacity: 1; opacity: 0 !important; }
.flex-direction-nav .flex-disabled { opacity: 0!important; filter:alpha(opacity=0); cursor: default; }
.flex-direction-nav a:before  { font-family: "flexslider-icon"; line-height: 40px;  font-size: 30px; display: inline-block; content: '\f001'; content: ' '; opacity: 0 !important;}
.flex-direction-nav a.flex-next:before  { content: '\f002'; content: ' '; opacity: 0 !important;}


/* Pause/Play */
.flex-pauseplay a { display: block; width: 20px; height: 20px; position: absolute; bottom: 5px; left: 10px; opacity: 0.8; z-index: 10; overflow: hidden; cursor: pointer; color: #000; }
.flex-pauseplay a:before  { font-family: "flexslider-icon"; font-size: 20px; display: inline-block; content: '\f004'; }
.flex-pauseplay a:hover  { opacity: 1; }
.flex-pauseplay a.flex-play:before { content: '\f003'; }

/* Control Nav */
.flex-control-nav {width: 100%; position: absolute; bottom: -40px; text-align: center;}
.flex-control-nav li {margin: 0 6px; display: inline-block; zoom: 1; *display: inline;}
.flex-control-paging li a {width: 11px; height: 11px; display: block; background: #666; background: rgba(0,0,0,0.5); cursor: pointer; text-indent: -9999px; -webkit-border-radius: 20px; -moz-border-radius: 20px; -o-border-radius: 20px; border-radius: 20px; -webkit-box-shadow: inset 0 0 3px rgba(0,0,0,0.3); -moz-box-shadow: inset 0 0 3px rgba(0,0,0,0.3); -o-box-shadow: inset 0 0 3px rgba(0,0,0,0.3); box-shadow: inset 0 0 3px rgba(0,0,0,0.3); }
.flex-control-paging li a:hover { background: #333; background: rgba(0,0,0,0.7); }
.flex-control-paging li a.flex-active { background: #000; background: rgba(0,0,0,0.9); cursor: default; }

.flex-control-thumbs {margin: 5px 0 0; position: static; position: absolute; bottom: -70px; overflow: hidden;}
.flex-control-thumbs li {width: 25%; float: left; margin: 0; background-color: #fff; }
.flex-control-thumbs img {width: 100%; display: block; opacity: .7; cursor: pointer;}
.flex-control-thumbs img:hover {opacity: 1;}
.flex-control-thumbs .flex-active {opacity: 1; cursor: default;}

.flex-control-thumbs {margin: 0 0 0 0; position: static; overflow: hidden; padding: 0; }

@media screen and (max-width: 640px) {
	.flex-direction-nav a { height: 100%; background-color: lime; opacity: 0 !important; }
  .flex-direction-nav .flex-prev { opacity: 1; opacity: 0 !important; left: 10px; left: 0; content: ''; }
  .flex-direction-nav .flex-next { opacity: 1; opacity: 0 !important; right: 10px; right: 0; content: ''; }
}

.flex-control-thumbs {
	background: #000;
}

.flex-control-thumbs li {
	width: 4rem;
	background-color: #fff;
	margin: 0 .5rem .5rem 0;
	margin: 0 0 0 0;
}

p.flex-captions {
	margin: .5rem 0 .5rem 0;
	font-size: 1.2rem;
	display: none;
}


/*------------------------------------*\
    STRUCTURE
\*------------------------------------*/

/* wrapper */
.wrapper {
	width:100%;
	margin:0 auto;
	position:relative;
	z-index: 2;
}

/*@media screen and (min-device-width: 1024px) {
	.wrapper {
		min-width: 960px;
	}
}*/

.tint {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
	background-color: rgba(0,0,0,0.8);
}

.home .tint {
	opacity: 0;
}

/* header */
.header {
	position: relative;
	width: 100%;
	padding: 2rem;
}

@media screen and (min-width: 640px){
	.header {
		position: fixed;
		top: 0;
		bottom: 0;
		left: 0;
		z-index: 2;
		width: 22rem;
		padding: 0.5rem 2rem 0 2rem;
		margin-bottom: 0;
	}
}

.home .header {
		background-color: rgba(0,0,0,0.7);
}

/* nav */

.nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	line-height: 2rem;
	font-size: 1.4rem;
	text-transform: lowercase;	
}

@media screen and (min-width: 640px){
	.nav > ul {
		margin-top: 4rem;
	}
}

.nav .sub ul {
	display: none;
	margin-top: 0;
	padding: .25rem 0 1rem .5rem;
}

.nav .sub ul li {
	opacity: .6;
	line-height: 1.2;
	margin-bottom: .2rem;
}	

.no-touch .nav .sub ul li:hover {
	opacity: 1;
}	
.nav .sub ul li.current {
	font-style: italic;
	text-decoration: underline;
	opacity: 1;
}

/* sidebar */
.sidebar {

}
/* footer */
.footer {
	display: none;
	clear: both;
}

#main {
	padding: 0;
	margin: 0;
	background-color: rgba(0,0,0,0.4);
}

.home #main {
	background-color: rgba(0,0,0,0);
}

#main > section {
	padding: 2rem 2rem 10rem 2rem;	
}

@media screen and (min-width: 640px){
	#main {
		float: left;
		margin-left: 22rem;
	}
	.home #main {
		margin-left: 0;
	}
	#main > section {
		padding: 2rem 2rem 6rem 2rem;		
	}

}

/*------------------------------------*\
    RESPONSIVE VIDEOS
\*------------------------------------*/

.arve-wrapper {
	margin-bottom: 1rem;
}

/*------------------------------------*\
    CONTENT ROWS 
\*------------------------------------*/

.content-row {
	clear: both;
	margin: 0 0 1rem 0;
}

.content-row .image {
	padding-bottom: 1rem;
}	

.content-row .image img {
	max-width: 100%;
}

@media screen and (min-width: 768px){
	.content-row .image {
		width: 40%;
		float: left;
		text-align: right;
		padding-bottom: 0;
	}	

	.content-row .text {
		width: 60%;
		float: left;
		padding-left: 2rem;
	}	

	.content-row .text *:first-of-type {
		margin-top: 0;
	}

}


/*------------------------------------*\
    PAGES & TEMPLATES
\*------------------------------------*/

.single article {
	width: 100%;
	padding: 0;
	max-width: 82rem;
}	

.single .header {
	/*background-color: transparent;*/
}

.page article {
	max-width: 82rem;
}

/*.page article p,
.page article .arve-wrapper,
.page article img {
	max-width: 80rem;
}*/

@media screen and (min-width: 640px){
	.single article {
		padding: 0 0 2rem 0;
	}	
}

@media screen and (min-width: 640px){
	.page-template-template-aside-php article {
		width: 65%;
		max-width: 72rem;
		float: left;
	}
}

@media screen and (min-width: 640px){
	.page-template-template-aside-php aside {
		width: 35%;
		float: left;
		padding: 0 2rem 0 2rem;
	}
}

/* 
		Home page 
*/

.home #main > section {
	background-color: transparent;
	padding: 2rem 2rem 10rem 2rem;	
}

@media screen and (min-width: 640px){
	.home #main {
		width: 100%;
		float: left;
	}
	.home #main > section {
		width: 100%;
		padding: 0 0 0 222px;		
	}

}


.home #main header {
	text-transform: lowercase;
}

.home #main header h1 {
	font-size: 2rem;
	font-weight: normal;
	letter-spacing: normal;
	text-align: left;
	margin: 0 0 2px 0;
	background-color: rgba(0,0,0,0.7);
	display: inline-block;
	clear: both;
	padding: 0 3rem .25rem 3rem;
}

@media screen and (min-width: 640px){
	.home #main header h1 {
		font-size: 2.4rem;
		height: 38px;
		width: 380px;
	}
}

.home #main header h2 {
	font-size: 1.7rem;
	font-weight: normal;
	margin: 0 0 0 0;
		height: 38px;	
		line-height: 35px;
	text-align: left;
	background-color: rgba(0,0,0,0.7);
	display: inline-block;
	clear: both;
	padding: 0 3rem 0 3rem;	
	width: 380px;
	letter-spacing: normal;
}

.home #main header h2 span {
	margin-left: 0;
}

.home article {
	width: 100%;
	max-width: 100%;
	text-transform: lowercase;
	padding-bottom: 10rem;
}

.home #main p {
	display: block;
	float: left;
	font-style: italic;
	margin: 0 1rem 1rem 0;
}

.home #main ul {
	display: block;
	float: left;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media screen and (min-width: 1024px){
	.home #main p {
		margin-left: 0;
	}
}

/* 
		About page 
*/

.about p:first-of-type {
	margin-top: 0;
}

.about .nav .about.sub ul, 
.parent-pageid-15 .nav .about.sub ul {
	display: block;
}

/* 
		Tangents page 
*/

.tangents p:first-of-type {
	margin-top: 0;
}

.tangents .nav .tangents.sub ul, 
.parent-pageid-334 .nav .tangents.sub ul {
	display: block;
}



/* 
	Project template
*/

.single-project #main > section {
	padding-top: 0;
}

.single-project article {
	max-width: 100%;
}

.single-project .nav .projects ul {
	display: block;
}

#lead-slider {
	margin-bottom: 0;
}

.single-project article header {
	padding: 1rem 0;
}

.single-project article .bgcolor {
	padding: 0 1.25rem 1.25rem 1.25rem;
	margin-bottom: 0;
}

.single-project article div.bgcolor {
	padding-top: 1rem;
}	

.single-project header h1 {
	font-size: 1.6rem;
	margin: 1rem 0 .5rem 0;
	text-decoration: underline;
	font-style: italic;
}

.single-project #main {
	padding-top: 0;
}

@media screen and (min-width: 920px){

	.single-project #main {
		padding-right: 0rem;
	}

	.single-project article header {
		position: relative;
	}

	.single-project article header .intro {
		max-width: 82rem;
	}

	.single-project article header .intro p {
	}

	.single-project article header aside {
		width: 32rem;
		float: right;
		margin: 0 0 0 2rem;
	}

	.single-project article header aside p:last-of-type {
		margin-bottom: 0;
	}	

}

.single-project article header aside iframe,
.single-project article header aside img {
	max-width: 100%;
}

.single-project .flex-control-paging li a {
	background: #666;
}

.single-project .flex-control-paging li a.flex-active {
	background: #222;
}	

.flex-container {
    position: relative;
    padding-bottom: 100%;
    padding-top: 0;
    height: 0;
    overflow: hidden;
}

.flex-container iframe,   
.flex-container object,  
.flex-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.single-project .content {
	max-width: 86rem;
}

/*
	Writings
*/

.single-writing .nav .writing ul {
	display: block;
}

.single h1 {
	font-size: 1.6rem;
	margin: -.2rem 0 1rem 0;
	text-decoration: underline;
	font-style: italic;
}






/*------------------------------------*\
    MISC
\*------------------------------------*/

::selection {
	background:#04A4CC;
	color:#FFF;
	text-shadow:none;
}
::-webkit-selection {
	background:#04A4CC;
	color:#FFF;
	text-shadow:none;
}
::-moz-selection {
	background:#04A4CC;
	color:#FFF;
	text-shadow:none;
}

/*------------------------------------*\
    WORDPRESS CORE
\*------------------------------------*/

.alignnone {
	margin:5px 20px 20px 0;
}
.aligncenter,
div.aligncenter {
	display:block;
	margin:5px auto 5px auto;
}
.alignright {
	float:right;
	margin:5px 0 20px 20px;
}
.alignleft {
	float:left;
	margin:5px 20px 20px 0;
}
a img.alignright {
	float:right;
	margin:5px 0 20px 20px;
}
a img.alignnone {
	margin:5px 20px 20px 0;
}
a img.alignleft {
	float:left;
	margin:5px 20px 20px 0;
}
a img.aligncenter {
	display:block;
	margin-left:auto;
	margin-right:auto;
}
.wp-caption {
	background:#FFF;
	border:1px solid #F0F0F0;
	max-width:96%;
	padding:5px 3px 10px;
	text-align:center;
}
.wp-caption.alignnone {
	margin:5px 20px 20px 0;
}
.wp-caption.alignleft {
	margin:5px 20px 20px 0;
}
.wp-caption.alignright {
	margin:5px 0 20px 20px;
}
.wp-caption img {
	border:0 none;
	height:auto;
	margin:0;
	max-width:98.5%;
	padding:0;
	width:auto;
}
.wp-caption .wp-caption-text,
.gallery-caption {
	font-size:11px;
	line-height:17px;
	margin:0;
	padding:0 4px 5px;
}
.sticky {

}
.bypostauthor {

}

/*------------------------------------*\
    PRINT
\*------------------------------------*/

@media print {
	* {
		background:transparent !important;
		color:#000 !important;
		box-shadow:none !important;
		text-shadow:none !important;
	}
	a,
	a:visited {
		text-decoration:underline;
	}
	a[href]:after {
		content:" (" attr(href) ")";
	}
	abbr[title]:after {
		content:" (" attr(title) ")";
	}
	.ir a:after,
	a[href^="javascript:"]:after,
	a[href^="#"]:after {
		content:"";
	}
	pre,blockquote {
		border:1px solid #999;
		page-break-inside:avoid;
	}
	thead {
		display:table-header-group;
	}
	tr,img {
		page-break-inside:avoid;
	}
	img {
		max-width:100% !important;
	}
	@page {
		margin:0.5cm;
	}
	p,
	h2,
	h3 {
		orphans:3;
		widows:3;
	}
	h2,
	h3 {
		page-break-after:avoid;
	}
}
