/*
 * HTML5 Boilerplate
 *
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

* { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; }

html,
button,
input,
select,
textarea {
	color: #131111;
}

body {
	font-size: 1em;
	line-height: 1.4;
	background: #991900;
	padding: 0;
	background: #991900 url(/img/hex-tile.png) repeat-x bottom center;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection declarations have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
	background: #b3d4fc;
	text-shadow: none;
}

::selection {
	background: #b3d4fc;
	text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
	display: block;
	height: 1px;
	border: 0;
	border-top: 1px solid #ccc;
	margin: 1em 0;
	padding: 0;
}

/*
 * Remove the gap between images and the bottom of their containers: h5bp.com/i/440
 */

img {
	vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
	border: 0;
	margin: 0;
	padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
	resize: vertical;
}

/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */

.chromeframe {
	margin: 0.2em 0;
	background: #ccc;
	color: #000;
	padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */



.container {
	width: 100%;	
	min-width: 300px;
	margin: 20px auto 0;
	padding: 20px;
	background: rgba(255,255,255,0.9);
	-webkit-box-shadow: 10px 10px 0px 0px rgba(0,0,0,0.4);
	box-shadow: 10px 10px 0px 0px rgba(0,0,0,0.4);
}
.small-screen-hidden {
	display: none;
}
h1,h2,h3 {
	font-family: Bitter;
}
h1,h2,h3,h4,h5 {
	margin: 0 0 20px 0;
}
h1 {
	font-size: 35px;
}
h2 {
	font-size: 36px;
	color: #ffffff;
	background: #252222 url(/img/hexagons-h2.png) no-repeat right -21px;
	padding: 10px 20px;
}
h3 {
	font-size: 20px
}
h4 {
	font-size: 16px;
}
h5 {
	font-size: 16px;
	color: #991900;
}
a {
	color: #991900;
	-webkit-transition: color 0.3s ease-out; 
       -moz-transition: color 0.3s ease-out; 
         -o-transition: color 0.3s ease-out;
            transition: color 0.3s ease-out; 
}
a:visited {
	color: #6a463f;
}
a:hover {
	color: #ff2a00;
}
.intro a {
	color: #252222;
}
.intro a:visited {
	color: #99908E;
}
.intro a:hover {
	color: #ff2a00;
}
.main.hexagons {
	background: url(/img/hexagons-tile.png) center;
	-webkit-box-shadow: inset 0px 10px 0px 0px rgba(0,0,0,0.4);
		box-shadow: inset 0px 10px 0px 0px rgba(0,0,0,0.4);
}
.site-title {
	margin-bottom: 0;
	letter-spacing: 4px;
}
.contact-email {
	font-size: 16px;
	margin-bottom: 0;
	text-align: left;
	color: #aaa;
	letter-spacing: 1px;
}
.contact-email a{
	text-decoration: none;
	color: #aaa;
}
.job-description {	
	font-size: 25px;
	margin-top: 15px;
	background-image: none;
}
.container.intro,
.container.technology,
.container.productivity {
	background: transparent;
	-webkit-box-shadow: none;
	box-shadow: none;
	color: #fff;
}
.container.intro h2,
.container.technology h2,
.container.productivity h2{
	font-size: 36px;
	background: none;
	padding: 0;
}
.container.cv h3 {
	margin-bottom: 0;
	margin-top: 30px;
}
.container.cv h4{
	margin-bottom: 0;
}
.job-thumb {
	display: none;
}
.job-points li{
	margin-bottom: 0.5em;
	list-style-image: url(/img/bullet.png)
}
.gradient-hover .span {
  -webkit-transition: color 0.3s ease-out; 
     -moz-transition: color 0.3s ease-out; 
       -o-transition: color 0.3s ease-out; 
          transition: color 0.3s ease-out; 
}
.gradient-hover .gradient-hovered0 { color: #991900; }
.gradient-hover .gradient-hovered1 { color: #4b4b4b; }
.gradient-hover .gradient-hovered2 { color: #991900; }
.gradient-hover .gradient-hovered3 { color: #252222; }
.gradient-hover .gradient-hovered4 { color: #6e6e6e; }
.love {
	color: #ff0000;
	font-size: 50px;
	text-shadow: 2px 2px 0px rgba(0,0,0,0.8);
	filter: dropshadow(color=#1f0500, offx=2, offy=2); 
}
.plus {
	font-weight: bold;
	color: #ff8a00;
	font-size: 50px;
	text-shadow: 2px 2px 0px rgba(0,0,0,0.8);
}
.badge-container {
	width: 264px;
	margin: 0 auto 90px auto;
	text-align: center;
	position: relative;
}
.badge {
	background: transparent url(/img/white-hexagon.png) no-repeat;
	height: 125px;
	width: 144px;
	float: left;
	margin: 0 -26px -57px 0;
	position: relative;
	cursor: pointer;	
}
.badge:hover {
	background-position: 0 -125px;
}
.badge-lower {
	margin: 67px -26px -57px 0px;
}
.badge .badge-icon {
	position: absolute;
	top: 24px;
	left: 32px;
	width: 80px;
	height: 80px;
	background-image: url('/img/badge-sprite.png');
	background-repeat: no-repeat;
}
.badge:hover .badge-icon,
.badge.show-description .badge-icon {
	top: 26px;
	left: 34px;
}
.badge.show-description .badge-icon {
	position: absolute;
	margin:  0 auto;
	z-index:3;
	-webkit-transform: translateX(0px) translateY(0px) translateZ(0px) rotateX(0deg) rotateY(360deg) rotateZ(0deg);
	   -moz-transform: translateX(0px) translateY(0px) translateZ(0px) rotateX(0deg) rotateY(360deg) rotateZ(0deg);
	    -ms-transform: translateX(0px) translateY(0px) translateZ(0px) rotateX(0deg) rotateY(360deg) rotateZ(0deg);
	     -o-transform: translateX(0px) translateY(0px) translateZ(0px) rotateX(0deg) rotateY(360deg) rotateZ(0deg);
	-webkit-transition: -webkit-transform 0.6s ease-out;
       -moz-transition: -moz-transform 0.6s ease-out;
		-ms-transition: -ms-transform 0.6s ease-out;
         -o-transition: -o-transform 0.6s ease-out;
            transition: transform 0.6s ease-out;
}
.badge-html5 		{background-position: 0      0;}
.badge-css3 		{background-position: -80px  0;}
.badge-jquery 		{background-position: -160px 0;}
.badge-responsive 	{background-position: -240px 0;}
.badge-backbone 	{background-position: -320px 0;}
.badge-git 			{background-position: -400px 0;}
.badge-photoshop 	{background-position: -480px 0;}
.badge-balsamiq 	{background-position: -560px 0;}

.badge:hover .badge-html5, .badge.show-description .badge-html5 			{background-position: 0      -80px;}
.badge:hover .badge-css3, .badge.show-description .badge-css3 	 			{background-position: -80px  -80px;}
.badge:hover .badge-jquery, .badge.show-description .badge-jquery 			{background-position: -160px -80px;}
.badge:hover .badge-responsive, .badge.show-description .badge-responsive	{background-position: -240px -80px;}
.badge:hover .badge-backbone, .badge.show-description .badge-backbone 		{background-position: -320px -80px;}
.badge:hover .badge-git, .badge.show-description .badge-git					{background-position: -400px -80px;}
.badge:hover .badge-photoshop, .badge.show-description .badge-photoshop 	{background-position: -480px -80px;}
.badge:hover .badge-balsamiq, .badge.show-description .badge-balsamiq 		{background-position: -560px -80px;}

.badge.show-description {
	background-position: 00px 0px;
	z-index: 2;
	position: absolute;
	width: 100%;

}
.badge-description {
	position: absolute;
	top: 0;
	background: #fff;
	width: 0;
	overflow: hidden;
	z-index: 1;
	color: #991900;
	text-align: left;
	cursor: default;
	-webkit-box-shadow: 10px 10px 0px 0px rgba(0,0,0,0.4);
	box-shadow: 10px 10px 0px 0px rgba(0,0,0,0.4);
}
.badge.show-description .badge-description{
	left: 0;
	top: 140px;
	padding: 20px;
	width: 100%;
	overflow: visible;
}
.productivity-container {
	text-align: center;
}
.productivity-container ul {
	margin: 0;
	padding: 0;
}
.productivity-container li {
	text-align: left;
	font-size: 20px;
	padding: 10px;
	list-style-type: none;
	margin: 10px 0;
	position: relative;
}
.productivity-container li span {
	font-weight: bold;
	color: #252222;
	display: block;
	width: 100%;
}
.portrait {
	width: 100%;
}
#modal {
	bottom: 0;	
	left: 0;
	right: 0;
	position: fixed;
	background:url(/img/hexagons-tile.png);
	opacity: 0;
	-webkit-transition: opacity 0.3s ease-out;
       -moz-transition: opacity 0.3s ease-out;
         -o-transition: opacity 0.3s ease-out;
            transition: opacity 0.3s ease-out;
}
#modal.show-modal {
	height: 100%;
	width: 100%;
	opacity: 0.9;
	z-index: 1;
}
blockquote {
	background: #ffffff;
	padding: 10px;
	-webkit-box-shadow: 10px 10px 0px 0px rgba(0,0,0,0.4);
	box-shadow: 10px 10px 0px 0px rgba(0,0,0,0.4);
	margin-bottom: 20px;
}
blockquote p {
	margin-top: 0;
}
blockquote cite {
	color: #999999;
}
.print-me {
	display: none; /*shown with JS*/
	position: fixed;
	top: 0;
	right: 0;
	overflow: hidden;
	height: 120px;
	width: 120px;

}
.print-me h3 {
	position: absolute;
	font-size: 20px;
	top: 25px;
	right: -45px;
	background: #252222;
	padding: 5px 40px;
	white-space: nowrap;
	text-align: center;
	-ms-transform: rotate(45deg); /* IE 9 */
	-webkit-transform: rotate(45deg); /* Chrome, Safari, Opera */
	transform: rotate(45deg);
}
.print-me a{
	color: #fff;
}
.print-me a:hover {
	color: #ff2a00;
}
.print-me * {
	margin: 0;
	padding: 0;
}
.print-only {
	display: none;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
	background-color: transparent;
	border: 0;
	overflow: hidden;
	/* IE 6/7 fallback */
	*text-indent: -9999px;
}

.ir:before {
	content: "";
	display: block;
	width: 0;
	height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
	display: none !important;
	visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
	border: 0;
	clip: rect(0 0 0 0);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
	clip: auto;
	height: auto;
	margin: 0;
	overflow: visible;
	position: static;
	width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
	visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
	content: " "; /* 1 */
	display: table; /* 2 */
}

.clearfix:after {
	clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
	*zoom: 1;
}

@media only screen and (min-width: 450px) {
	h1 {
		font-size: 50px;
	}
	.contact-email {
		font-size: 25px;
	}
	.main {
		padding: 0 20px;
	}
	header,
	footer {
		padding: 0 20px;
	}
}
@media only screen and (min-width: 600px) {
	.badge-container {
		width: 500px;
	}
	.badge.show-description .badge-icon {
		position: absolute;
		margin:  0;

	}
	.badge.show-description .badge-description{
		padding: 20px 20px 20px 150px;
		top: 0;
	}
	.portrait {
		float: right;
		max-width: 50%;
		min-width: 350px;
		max-height: 700px;
		margin-top: -40px;
		width: auto;
	}
}

@media only screen and (min-width: 800px) and (max-width: 1100px) {
	.container.cv h4 {
		float: left;
		width: 60%;
		margin-bottom: 1em;
	}
	.container.cv h5 {
		text-align: right;
	}
	.job-thumb {
		display: block;
		float: left;
		margin: 0 30px 20px 0;
	}
	.badge-container {
		width: 740px;
	}
	.badge-lower:last-child {
		margin: 0 0 0 118px;
	}
	.show-description.badge-lower:last-child {
		margin: 0;
	}
	.intro p {
		font-size: 20px;
	}
}

@media only screen and (min-width: 1100px) {
	.small-screen-hidden {
		display: block;
	}
	.site-title {
		float: left;
		width: 50%;
	}
	.contact-email {
		float: left;
		width: 50%;
	}
	.job-description {
		float: right;
		width: 50%;
		text-align: right;
	}
	.two-column {
		width: 100%;
		margin: 40px auto 0;
		background: rgba(255,255,255,0.9);
		-webkit-box-shadow: 10px 10px 0px 0px rgba(0,0,0,0.4);
		box-shadow: 10px 10px 0px 0px rgba(0,0,0,0.4);
	}
	.two-column .container {
		width: 50%;
		float: left;
		background: transparent;
		-webkit-box-shadow: none;
		box-shadow: none;
	}
	.badge-container {
		width: 950px;
	}
	.intro p {
		font-size: 20px;
	}
	footer {
		clear: both;
		margin-bottom: 110px;
	}
}

@media only screen and (min-width: 1500px) {
	.two-column .container {
		width: 40%;
	}
	.two-column .container:first-child {
		width: 60%;
	}
}
@media print,
	   (-o-min-device-pixel-ratio: 5/4),
	   (-webkit-min-device-pixel-ratio: 1.25),
	   (min-resolution: 120dpi) {
	/* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
	* {
		background: transparent !important;
		color: #000 !important; /* Black prints faster: h5bp.com/s */
		box-shadow: none !important;
		text-shadow: none !important;
		font-family: sans-serif;
	}
	a,
	a:visited {
		text-decoration: none;
	}

	/*a[href]:after {*/
		/*content: " (" attr(href) ")";*/
	/*}*/

	abbr[title]:after {
		content: " (" attr(title) ")";
	}

	/*
	 * Don't show links for images, or javascript/internal links
	 */

	/*.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; /* h5bp.com/t */
	}

	tr,
	img {
		page-break-inside: avoid;
	}

	img {
		max-width: 100% !important;
	}

	@page {
		margin: 0.5cm;
	}

	p,
	h2,
	h3 {
		orphans: 3;
		widows: 3;
	}

	h2,
	h3,
	h4 {
		page-break-after: avoid;
	}
	img {
		display: none;
	}
	.container.intro h2, .container.technology h2, .container.productivity h2,
	h2 {
		font-size: 28px;
		padding-right: 0;
		padding-left: 0;
	}
	h1, h2, h3, h4, h5, h6 {
		margin: 0 0 10px 0 !important;
		padding: 0;
		text-align: left;
	}
	.site-title {
		letter-spacing: normal;
		font-size: 36px;
	}
	.container {
		margin: 0;
	}
	header .container {
		padding-bottom: 0em;
		margin-bottom: -1em;
	}
	.badge-container, .badge-container * {
		width: 100%;
		margin: 0;
		height: auto;
		overflow: visible;
		position: relative;
	}
	.badge-description {
		display: block;
		width: 100%;
	}
	.badge .badge-icon {
		display: none;
	}
	.badge-description p{
		margin: 0 0 20px 0;
	}
	.main,
	.container {
		clear: both;
	}
	.print-left,
	.print-right {
		clear: none;
	}
	.print-left {
		float: left;
	}
	.print-right {
		margin-left: 5%;
		float: right;
	}
	.print-float-med {
		width: 47.5%;
	}
	.print-float-small {
		width: 35%;
	}
	.print-float-big {
		width: 60%;
	}
	p {
		font-size: 13px !important;
		font-family: sans-serif !important;
	}
	li {
		font-size: 13px !important;
		font-family: sans-serif !important;
		list-style-type: disc !important;
		list-style-image: none !important;
	}
	blockquote {
		margin: 0 0 1em 0;
	}
	.productivity-container {
		margin-top: 0;
	}
	.productivity-container li {
		list-style-type: none !important;
		margin-top: 0;
		margin-left: 0;
		margin-right: 0;
		padding: 0;
	}
	.not-print {
		display: none !important;
	}
	.print-only {
		display: block;
	}
}
