/* ------------------------------------------------------------------ Base styles */
body {
	background: url(../img/pinstripe.png);
	margin: 40px 0 20px;
}
body, input, textarea {
	font: 400 13.5px/1.5 'Open Sans', sans-serif;
	color: #333;
}
h1, h2, h3, h4, h5, h6 {
	font: 700 'Open Sans', sans-serif;
	color: #333;
	line-height: 1;
}
a {
	color: #333;
	border-bottom: 1px dotted #999;
	text-decoration: none;
	padding: 0 1px;
}
a:hover {
    background: #FFF1E7;
    border-bottom: 1px solid #F0BD97;
}
.clear {
    clear: both;
    display: block;
    height: 0;
    overflow: hidden;
    visibility: hidden;
    width: 0;
}



/* ------------------------------------------------------------------ Aside */
aside section {
	background: #fff;
	padding: 15px;
	margin-bottom: 20px;
	
	-moz-box-shadow: 1px 1px 5px rgba(0,0,0,0.25);
	-webkit-box-shadow: 1px 1px 5px rgba(0,0,0,0.25);
	box-shadow: 1px 1px 5px rgba(0,0,0,0.25);
	
	behavior: url(pie.htc);
}
aside section h3 {
	margin: 5px 0 12px;
	font-size: 19px;
}
aside p { font-size: 12.5px; }

/* ------------------------------ Section introduction */
#introduction h1 {
	font-size: 27px;
	margin: 12px 0 9px;
	letter-spacing: -0.02em;
}
#introduction h2 {
	font-size: 19px;
	color: #999;
	margin: 0 0 15px;
	letter-spacing: -0.01em;
}
#introduction figure + p { margin-top: 0; }
#introduction figure img {
	float: left;
	background: #fff;
	border: 1px solid #e5e5e5;
	padding: 5px;
	margin: 0 10px 10px 0;
	width: 90px;
	height: 120px;
}
#introduction h3 {
	margin: 0 0 5px;
	font-size: 18px;
}
#introduction h3 + p { margin-top: 0; }

/* ------------------------------ Section recent listening/reading */
figure.imageSet { margin-bottom: 3px; }
figure.imageSet img {
	background: #fff;
	border: 1px solid #e5e5e5;
	padding: 5px;
	margin: 0 3px 3px 0;
}
#recentListening figure.imageSet img {
	width: 50px;
	height: 50px;
}
#recentReading figure.imageSet img {	
	width: 50px;
	height: 75px;
}
#recentListening a, #recentReading a {
	color: #333;
    background: #fff1e7;
    border-bottom: 1px solid #f0bd97;
    font-size: 12px;
    padding: 1px 4px;
    text-decoration: none;
}
#recentListening a:hover, #recentReading a:hover {
	background: none;
	border-bottom: 1px dotted #f0bd97;
}

/* ------------------------------ Tooltips */
.tipsy {
	padding: 5px;
	font-size: 12px;
	opacity: 0.9;
	filter: alpha(opacity=90);
	background-repeat: no-repeat;
	background-image: url(../img/tipsy.gif);
}
.tipsy-inner {
	padding: 5px 8px 4px 8px;
	background-color: black;
	color: white;
	max-width: 200px;
	text-align: center;
}
.tipsy-inner {
	-moz-border-radius: 6px;
	-webkit-border-radius: 6px;
	border-radius: 6px;
	
	behavior: url(pie.htc);	
}
.tipsy-north { background-position: top center; }
.tipsy-south { background-position: bottom center; }
.tipsy-east { background-position: right center; }
.tipsy-west { background-position: left center; }


/* ------------------------------ Section social media */
.socialMedia { padding-top: 4px; }
.socialMedia a {
	border: 0;
	background: none;
	padding: 0;	
	margin-right: 6px;
}

/* ------------------------------------------------------------------ Portfolio */
#portfolio article {
	background: #fff;
	padding: 15px;
	margin-bottom: 20px;
	
	-moz-box-shadow: 1px 1px 5px rgba(0,0,0,0.25);
	-webkit-box-shadow: 1px 1px 5px rgba(0,0,0,0.25);
	box-shadow: 1px 1px 5px rgba(0,0,0,0.25);
	
	behavior: url(pie.htc);	
}
#portfolio article h2 {
    font-size: 25px;
    letter-spacing: -0.02em;
    margin: 20px 0 12px;
}
#portfolio article h2 + p { margin-top: 0; }
#portfolio article p:nth-last-of-type(1) { margin-bottom: 25px; }
#portfolio article p:last-child { margin-bottom: 5px; }
#portfolio a.goToWebsite {
    background: #fff1e7;
    border-bottom: 1px solid #f0bd97;
    padding: 1px 6px;
    margin-left: -2px;
    text-decoration: none;
}
#portfolio a.goToWebsite:hover {
	background: none;
	border-bottom: 1px dotted #f0bd97;
}
#portfolio small {
	margin-left: 6px;
	font-size: 11px;
	color: #999;
}

/* ------------------------------ More projects */
#portfolio #moreProjects h2 { margin-top: 4px; }



/* ------------------------------------------------------------------ Exeptions */
#portfolio article h2.notFound { margin-top: 16px; }
img.imgNotFound {
	width: 610px;
	height: 380px;
}



/* ------------------------------------------------------------------ To top */
#toTop {
	display:none;
	text-decoration:none;
	position:fixed;
	bottom:10px;
	right:10px;
	overflow:hidden;
	width:51px;
	height:51px;
	border:none;
	text-indent:-999px;
	background:url(../img/ui.totop.png) no-repeat left top;
}
#toTopHover {
	background:url(../img/ui.totop.png) no-repeat left -51px;
	width:51px;
	height:51px;
	display:block;
	overflow:hidden;
	float:left;
	opacity: 0;
	-moz-opacity: 0;
	filter:alpha(opacity=0);
}

#toTop:active, #toTop:focus { outline:none; }



/* ------------------------------------------------------------------ Responsive layout */

/* ------------------------------ Default 940px */
.container {
	width: 940px;
	margin: 0 auto;
	-webkit-text-size-adjust: 100%;
}
aside {
	width: 280px;
	margin-right: 20px;
	float: left;
}
#portfolio {
	width: 640px;
	float: right;
}

/* ------------------------------ Tablet 768px */
@media only screen and (min-width: 768px) and (max-width: 991px) {
	body { margin: 30px 0 10px; }
	body, input, textarea { font: 400 13px/1.5 'Open Sans', sans-serif; }
	.container {
		width: 768px;
		margin: 0 auto;		
	}
	aside { width: 230px; }
	#portfolio { width: 518px; }
	
	/* aside */
	aside p { font-size: 12px; }
	aside section h3 { margin-top: 0; }
	/* introduction */
	#introduction h1 {
		font-size: 25px;
		margin: 5px 0 5px;
	}
	#introduction h2 { margin: 0 0 10px; }
	#introduction figure img {
		width: 85px;
		height: 113px;
	}
	/* recent listening/reading */
	#recentListening figure.imageSet img {
		width: 45px;
		height: 45px;
	}
	#recentReading figure.imageSet img {	
		width: 45px;
		height: 67px;
	}	
	/* Portfolio */
	#portfolio article h2 {	
		font-size: 23px;
		margin: 15px 0 9px;
	}
	/* not found */
	img.imgNotFound {
		width: 488px;
		height: 304px;
	}
}

/* ------------------------------ Mobile portrait 320px */
@media only screen and (max-width: 767px) {
	body { margin: 15px 0 0; }
	body, input, textarea { font: 400 13px/1.5 'Open Sans', sans-serif; }
	.container {
		width: 320px;
		margin: 0 auto;
	}
	aside {
		width: 290px;
		margin: 0 15px;
		float: none;
	}
	#portfolio {
		width: 290px;
		margin: 0 15px;
		float: none;
	}
	
	/* aside */
	#recentListening, #recentReading { display: none; }
	/* portfolio */
	#portfolio article h2 {	
		font-size: 23px;
		margin: 15px 0 9px;
	}
	/* not found */
	img.imgNotFound {
		width: 260px;
		height: 161px;
	}
}

/* ------------------------------ Mobile landscape 480px */
@media only screen and (min-width: 480px) and (max-width: 767px) {
	body { margin: 20px 0 0; }
	body, input, textarea { font: 400 13px/1.5 'Open Sans', sans-serif; }
	.container {
		width: 480px;
		margin: 0 auto;
	}
	aside {
		width: 440px;
		margin: 0 20px;
		float: none;
	}
	#portfolio {
		width: 440px;
		margin: 0 20px;
		float: none;
	}
	
	/* aside */
	aside p { font-size: 12px; }
	aside section h3 { margin-top: 0; }
	/* introduction */
	#introduction h1 {
		font-size: 25px;
		margin: 0 0 5px;
	}
	#introduction h2 { margin: 0 0 10px; }
	#introduction figure img { margin-bottom: 0; }
	/* recent listening/reading */
	#recentListening, #recentReading { display: none; }
	/* portfolio */
	#portfolio article h2 {	
		font-size: 23px;
		margin: 15px 0 9px;
	}	
	/* not found */
	img.imgNotFound {
		width: 410px;
		height: 255px;
	}
}
