/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

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;
}
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;
}


/* end RESET */


/*** TYPOGRAPHY *************/
@import url(//fonts.googleapis.com/css?family=Arimo:400,400italic,700,700italic);
body {
	font-family: 'Arimo', 'open sans';
    -webkit-animation-delay: 0.1s;
    -webkit-animation-name: fontfix;
    -webkit-animation-duration: 0.1s;
    -webkit-animation-iteration-count: 1;
    -webkit-animation-timing-function: linear;
}

@-webkit-keyframes fontfix {
    from { opacity: 1; }
    to   { opacity: 1; }
}
/*** HOMEPAGE ***************/
.logo {
	position: relative;
	margin: 0 auto;
	padding: 0;
	top: 0;
	height: auto;
	overflow: auto;
	max-width: 320px;
}

@media only screen and (min-width: 1024px) {
	.logo {
		margin: 0 50px 0 auto;
	}
}

.logo img {
	width: 100%;
	margin: 0;
	padding: 0;
	position: relative;
	top: 0;
}

h1 {
	font-size: 42px;
	line-height: 46px;
	margin: 0;
	padding: 0;
}
.homepage nav {
	max-width: 1024px;
	overflow: hidden;
}

.homepage nav ul {
	width: 100%;
	clear: both;
	overflow: auto;
	padding: 0;
	margin: 0;
	text-align: center;

}

.homepage nav ul li {
	display: inline-block;
	padding: 15px 60px 15px 0;
}

.homepage .logo,
.homepage nav a {
	text-decoration: none;
	text-transform: uppercase;
}

@media only screen and (max-width: 800px) {
	.homepage nav ul li {
		padding: 10px 40px;
	}
}
/*** SIDEBAR ****************/

/** Content Styles **/
body {
	color: #242021;
	font-size: 14px;
}

h1, h2, h3, h4, h5, p, ul, ol, li {
	padding: 10px;
}

h1, h2, h3, h4, h5 {
	color: #242021;
}

h3 {
	color: #f04f51;
	font-size: 14px;
	font-weight: bold;
	margin: 1.5em 0 .5em 0;
}

header h1 {
	color: #f04f51;
	font-size: 53px;
	text-transform: uppercase;
}

header h2 {
	font-size: 18px;
}

header {
	padding: 3em 0 3.5em 0;
	
}

p {
	font-size: 14px;
}

p, ul, li, a {
	line-height: 1.7em;
}

.portfolio p {
	max-width: 510px;
}

ul {
	margin: 0 0 3em 0;
}

ul li {
	margin: 0;
	padding: 0;
	line-height: 1.7em;
}

a {
	color: #888;
}

a:hover,
a:active {
	color: #000;
}

.halfHeight {
	display: none;
	position: relative;
	overflow: auto;
}

.dark-bg {
	background: #1f1e1d;

}

.dark-bg header h2 {
	color: #fff;
}

.light-bg {
	background: #fff;
}

.light-bg header h2 {
	color: #1f1e1d;
}

.grey-bg {
	background: #f6f6f6;
}

.grey-bg header h2 {
	color: #484644;
}

/******************************************************************/
/** Portfolio Structure **/
/*****************************************************************/
.portfolio {
	border-left: solid 1px #e1e1e1;
}
.portfolio > section > header,
.portfolio > section > article,
.portfolio > section > aside > section > header {
	margin: 0 0 0 3em;
}

.portfolio .asset-right {
	text-align: right;
	margin: 0 0 0 auto;
}

.portfolio .asset-center {
	text-align: center;
	margin: 0 auto;
}

.portfolio .assets > section {
	padding: 0 0 3em 0;
}

.portfolio .assets header {
	text-align: left;
}

.portfolio .assets > section img {
	max-width: 70%;
}

.portfolio {
	/*display: none;*/
}



.portfolio {
	width: auto;
	height: 100%;
	position: absolute;
	top: 0;
}

.wrapper.off-screen {
	width: auto;
}



/******************************************************************/
/** Structure **/
/*****************************************************************/
body {
	position: absolute;
	height: 100%;
	width: 100%;
}
.wrapper {
	position: relative;
	height: 100%;
	width: 100%;
	overflow: auto;
}

.sidepiece {
	height: 100%;
	width: 28%;
	min-width: 320px;
	position: relative;
  overflow: hidden;
	margin: 0;
	padding: 0;
	float: left;
}

.main {
	width: auto;
	height: 100%;
	position: relative;
	margin: 0;
	padding: 0;
	overflow: hidden;
}

@media only screen and (max-width: 800px) {
	.sidepiece {
		height: 80px;
		width: 100%;
		float: none;
		position: fixed;
		background: #fff;
		z-index: 10000;
		border-bottom: solid 1px #eee;

	}
	.sidepiece .logo {

	}
	.main {
		position: relative;
		top: 120px;
		width: auto;
		height: auto;
		overflow: visible;
	}
	.portfolio {
		overflow: visible;
	}
	
}