/*
 * 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.
 */
/* =============================================================================
HTML5 element display
========================================================================== */
article,aside,details,figcaption,figure,footer,header,hgroup,nav,section {
	display: block;
}

audio[controls],canvas,video {
	display: inline-block;
	*display: inline;
	*zoom: 1;
}

/* =============================================================================
Base
========================================================================== */
/*
 * 1. Correct text resizing oddly in IE6/7 when body font-size is set using em units
 *    http://clagnut.com/blog/348/#c790
 * 2. Force vertical scrollbar in non-IE
 * 3. Remove Android and iOS tap highlight color to prevent entire container being highlighted
 *    www.yuiblog.com/blog/2010/10/01/quick-tip-customizing-the-mobile-safari-tap-highlight-color/
 * 4. Prevent iOS text size adjust on device orientation change, without disabling user zoom
 *    www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/
 */
html {
	font-size: 100%;

	-ms-overflow-y: scroll;
	overflow-y: scroll;
	-webkit-overflow-scrolling: touch;
	-webkit-tap-highlight-color: rgba(0,0,0,0);
	-webkit-text-size-adjust: 100%;
	-ms-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-size: 16px;
	line-height: 1.4;
}

body,button,input,select,textarea {
	font-family: sans-serif;
	color: #222;
}

/*
 * These selection declarations have to be separate
 * No text-shadow:  twitter.com/miketaylr/status/12228805301
 * Also:  hot pink!
 */
::-moz-selection {
	background: #c60a6b;
	color: #fff;
	text-shadow: none;
}

::selection {
	background: #c60a6b;
	color: #fff;
	text-shadow: none;
}

/* =============================================================================
Links
========================================================================== */
a,a:active,a:visited {
	color: white;
	text-decoration: none;
}

a:hover {
	color: #ffc50b;
}

a:focus {
	outline: thin dotted;
}

/* Improve readability when focused and hovered in all browsers:  people.opera.com/patrickl/experiments/keyboard/test */
a:hover,a:active {
	outline: 0;
}

a:link,a:visited,a:hover,a:active,:link,:visited,:hover,:active {
	-webkit-transition: all .2s ease-in-out;
	-moz-transition: all .2s ease-in-out;
	-o-transition: all .2s ease-in-out;
	-ms-transition: all .2s ease-in-out;
	transition: all .2s ease-in-out;
}

.comments a { border:0 !important; color:#c60a6b !important; }

/* =============================================================================
Typography
========================================================================== */
body,#mmLogo,#bio h2 {
	font-family: 'Gentium Book Basic',Georgia,serif;
}

header nav,h1,h2,h3,h4,h5,h6,button,.magentaButton,.blogPostType {
	font-family: 'PT Sans Narrow',sans-serif;
}

.hangIndent {
	margin-left: -.4em;
}

abbr[title] {
	border-bottom: 1px dotted;
}

b,strong {
	font-weight: bold;
}

blockquote {
	margin: 1em 40px;
}

dfn {
	font-style: italic;
}

hr {
	display: block;
	height: 1px;
	border: 0;
	border-top: 1px solid #ccc;
	margin: 1em 0;
	padding: 0;
}

ins {
	background: #ff9;
	color: #000;
	text-decoration: none;
}

mark {
	background: #ff0;
	color: #000;
	font-style: italic;
	font-weight: bold;
}

/* Redeclare monospace font family:  en.wikipedia.org/wiki/User: Davidgothberg/Test59 */
pre,code,kbd,samp {
	font-family: monospace, monospace;
	_font-family: 'courier new', monospace;
	font-size: 1em;
}

/* Improve readability of pre-formatted text in all browsers */
pre {
	white-space: pre;
	white-space: pre-wrap;
	word-wrap: break-word;
}

q {
	quotes: none;
}

q:before,q:after {
	content: "";
	content: none;
}

small {
	font-size: 85%;
}

/* Position subscript and superscript content without affecting line-height:  gist.github.com/413930 */
sub,sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sup {
	top: -0.5em;
}

sub {
	bottom: -0.25em;
}

*,
*:before,
*:after
{ 
    text-rendering: optimizeLegibility;
    -moz-osx-font-smoothing: grayscale !important;
    -webkit-font-smoothing: antialiased !important;
    font-smoothing: antialiased !important;
    -moz-font-feature-settings: 'kern';
    -ms-font-feature-settings: 'kern';
    -o-font-feature-settings: 'kern';
    -webkit-font-feature-settings: 'kern';
    font-feature-settings: 'kern';
    font-kerning: normal;
}

html.touch *,
html.touch *:before,
html.touch *:after
{
    text-rendering: optimizeSpeed;
}

/* =============================================================================
Lists
========================================================================== */
ul,ol {
	margin: 1em 0;
	padding: 0 0 0 40px;
}

dd {
	margin: 0 0 0 40px;
}

nav ul,nav ol {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* =============================================================================
Embedded content
========================================================================== */
/*
 * Improve image quality when scaled in IE7
 * code.flickr.com/blog/2008/11/12/on-ui-quality-the-little-things-client-side-image-resizing/
 */
img {
	border: 0;
	-ms-interpolation-mode: bicubic;
}

/*
 * Correct overflow displayed oddly in IE9
 */
svg:not(:root) {
	overflow: hidden;
}

/* =============================================================================
Figures
========================================================================== */
figure {
	margin: 0;
}

/* =============================================================================
Forms
========================================================================== */
form {
	margin: 0;
}

fieldset {
	border: 0;
	margin: 0;
	padding: 0;
}

/*
 * 1. Correct color not inheriting in IE6/7/8/9
 * 2. Correct alignment displayed oddly in IE6/7
 */
legend {
	border: 0;
	*margin-left: -7px;
	padding: 0;
}

/* Indicate that 'label' will shift focus to the associated form element */
label {
	cursor: pointer;
}

/*
 * 1. Correct font-size not inheriting in all browsers
 * 2. Remove margins in FF3/4 S5 Chrome
 * 3. Define consistent vertical alignment display in all browsers
 */
button,input,select,textarea {
	font-size: 100%;
	margin: 0;
	vertical-align: baseline;
	*vertical-align: middle;
}

/*
 * 1. Define line-height as normal to match FF3/4 (set using !important in the UA stylesheet)
 * 2. Correct inner spacing displayed oddly in IE6/7
 */
button,input {
	line-height: normal;
	*overflow: visible;
}

/*
 * 1. Display hand cursor for clickable form elements
 * 2. Allow styling of clickable form elements in iOS
 */
button,input[type="button"],input[type="reset"],input[type="submit"] {
	cursor: pointer;
	-webkit-appearance: button;
}

/*
 * Consistent box sizing and appearance
 */
input[type="checkbox"],input[type="radio"] {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

input[type="search"] {
	-webkit-box-sizing: content-box;
	-moz-box-sizing: content-box;
	box-sizing: content-box;
}

/*
 * Remove inner padding and border in FF3/4
 * www.sitepen.com/blog/2008/05/14/the-devils-in-the-details-fixing-dojos-toolbar-buttons/
 */
button::-moz-focus-inner,input::-moz-focus-inner {
	border: 0;
	padding: 0;
}

/* Remove default vertical scrollbar in IE6/7/8/9 */
textarea {
	overflow: auto;
	vertical-align: top;
}

/* Colors for form validity */
input:invalid,textarea:invalid {
	background-color: #f0dddd;
}

/* =============================================================================
Tables
========================================================================== */
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* =============================================================================
Primary styles
Author:  Mike Mai
Cyan:  rgba(34,185,236,1), #20b9ec
Magenta:  rgba(199,10,108,1), #c60a6b
Yellow:  rgba(255,198,10,1), #ffc50b
Green:  rgba(156,213,57,1), #9dd53a
========================================================================== */
body {
	color: #cecece;
	background: url('https://s3.amazonaws.com/mikemai/2012/img/bg-padded.png') fixed;
}

#container {
	margin: 2% auto;
	padding: 0 1%;
	width: 86%;
	min-width: 978px;
	max-width: 1280px;
}

.noBorder {
	border: 0 !important;
}

.left {
	float: left;
}

.right {
	float: right;
}

.center {
	margin-left: auto;
	margin-right: auto;
}

.textLeft {
	text-align: left;
}

.textRight {
	text-align: right;
}

.textCenter {
	text-align: center;
}

/* header */
#mmLogo a {
	float: left;
	padding: 6px 6px 6px 12px;
	height: 36px;
	font-size: 36px;
	line-height: .9em;
	text-decoration: none;
	border: 1px solid black;
	vertical-align: middle;
	color: black;
	text-shadow: rgba(255,255,255,.6) 1px 1px;
	background: #69CCE5; /* old browsers */
background: -webkit-linear-gradient(top, #69CCE5 0%, #56D6EF 50%, #34BAE2 51%, #0B7CA5 100%);

	background: -moz-linear-gradient(top, #69CCE5 0%, #56D6EF 50%, #34BAE2 51%, #0B7CA5 100%);
	background: -o-linear-gradient(top, #69CCE5 0%, #56D6EF 50%, #34BAE2 51%, #0B7CA5 100%);
	background: -ms-linear-gradient(top, #69CCE5 0%, #56D6EF 50%, #34BAE2 51%, #0B7CA5 100%);
	background: linear-gradient(top, #69CCE5 0%, #56D6EF 50%, #34BAE2 51%, #0B7CA5 100%);
}

#mmLogo span {
	font-size: 12px;
	line-height: 18px;
	font-style: italic;
	vertical-align: top;
}

header,header nav {
	height: 50px;
}

header {
	background: rgba(0,0,0,.8);
	border-right: 3px solid #c60a6b;

	-webkit-box-shadow: 0px 0px 4px black;
	-moz-box-shadow: 0px 0px 4px black;
	box-shadow: 0px 0px 4px black;
}

header nav {
	float: right;
	padding: 0 10px;
}

header nav a,header nav a:visited {
	display: inline-block;
	padding: 16px 10px 10px 10px;
	height: 24px;
	font-size: 16px;
	line-height: 1em;
	font-weight: bold;
	text-decoration: none;
	color: rgba(255,255,255,.4);
}

header nav a:hover,#resume a#nav-resume,#portfolio a#nav-portfolio,#articles a#nav-articles,#network a#nav-network,#store a#nav-store,#blog a#nav-blog,#contact a#nav-contact {
	color: white;
	background: rgba(255,255,255,.1);
}

/* home page content */
#bio {
	margin: 7% 0 2% 0;
	color: white;
}

#bio h1 {
	margin: 0 !important;
	font-size: 5.3em !important;
	letter-spacing: -2px;
	line-height: 1em !important;
	text-shadow: black 2px -1px !important;
}

#bio h1 sup { margin-left:-.1em; font-size:20%; letter-spacing:0; top: -3em; }

#bio h2 {
	width: 400px;
	margin: 10px 0 20px 0 !important;
	font-size: 1.5em !important;
	font-weight: normal !important;
	line-height: 1.2em !important;
	text-transform: none !important;
	color: #ffc50b !important;
	text-shadow: black 1px -1px;
}

#social {
	padding: 5px 0;
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";
	filter: alpha(opacity=30);
	opacity: .3;
}

#social:hover {
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
	filter: alpha(opacity=100);
	opacity: 1;
}

/* buttons */
.bigBtn {
	font-size: 1.5em;
}

.mediumBtn {
	font-size: 1.1em;
}

.smallBtn {
	font-size: .9em;
}

.magentaButton {
	display: inline-block;
	padding: .5em 1em;
	font-weight: bold;
	text-align: center;
	line-height: 1em;
	text-transform: uppercase;
	text-decoration: none;
	color: rgba(255,255,255,1) !important;

	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
	text-shadow: rgba(0,0,0,.5) 1px -1px;
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";
	filter: alpha(opacity=80);
	opacity: .8;
	border: 1px solid rgba(0,0,0,.7);
	background: #c16e96;

	background: -webkit-linear-gradient(top, #c16e96 0%, #c40062 50%, #b20a56 51%, #c4608d 100%);
	background: -moz-linear-gradient(top, #c16e96 0%, #c40062 50%, #b20a56 51%, #c4608d 100%);
	background: -o-linear-gradient(top, #c16e96 0%, #c40062 50%, #b20a56 51%, #c4608d 100%);
	background: -ms-linear-gradient(top, #c16e96 0%, #c40062 50%, #b20a56 51%, #c4608d 100%);
	background: linear-gradient(top, #c16e96 0%, #c40062 50%, #b20a56 51%, #c4608d 100%);
}

.magentaButton:hover {
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
	filter: alpha(opacity=100);
	opacity: 1;
}

.magentaButton:active {
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";
	filter: alpha(opacity=80);
	opacity: .8;
}

/* main body */
#main a,#main a:active,#main a:visited {
	color: white;
	border-bottom: 1px dotted #c60a6b;
	text-decoration: none;
}

#main a:hover {
	color: #ffc50b;
}

#main h1,#main h2,#main h3,#main li {
	margin: 0 0 .3em 0;
}

#main p,#main blockquote,#main ol,#main ul {
	margin: 0 0 .8em 0;
}

#main h1,#main h2,#main h3 {
	line-height: 1em;
	text-transform: uppercase;
	color: #20b9ec;
	text-shadow: black 1px -1px;
}

#main h1 {
	font-size: 2.8em;
}

#main h2 {
	font-size: 1.7em;
}

#main h3 {
	font-size: 1.3em;
}

#main blockquote {
	padding: 10px 15px;
	font-size: 1.2em;
	font-style: italic;
	background: rgba(0,0,0,.2);
	border-left: 3px solid #ffc50b;
}

#main ol,#main ul {
	padding: 0;
}

#main li {
	color: #ffc50b;
}

#main li span {
	color: #cecece;
}

#main hr {
	margin: 1em 0;
	height: 0px;
	border-top: 1px solid black;
	border-bottom: 1px solid rgba(255,255,255,.1);
}

.subpage {
	margin: 5% 0;
}

.notFound {
	margin: 18% 0;
	text-align: center;
}

.notFound h1 {
	font-size: 150px !important;
}

.notFoundGraphic {
	z-index: -999;
	position: fixed;
	bottom: 0;
	right: 0;
}

/* columns */
.fiveColTable,.fourColTable,.doubleColTable,.oneColWithAsideTable,.featured {
	margin-bottom: 3%;
}

.fiveColTable,.fourColTable,.doubleColTable,.oneColWithAsideTable {
	display: table;
	width: 100%;
}

.fiveColTable aside,.fourColTable aside,.doubleColTable aside,.oneColWithAsideTable section,.oneColWithAsideTable aside {
	display: table-cell;
	vertical-align: top;
}

.fiveColTable aside {
	width: 20%;
}

.fourColTable aside {
	width: 25%;
}

.doubleColTable aside {
	width: 50%;
}

.oneColWithAsideTable section {
	width: 60%;
}

.oneColWithAsideTable aside {
	width: 40%;
}

.leftCol {
	padding: 0 5px 0 0;
}

.rightCol {
	padding: 0 0 0 5px;
}

.midCol {
	padding: 0 5px;
}

.featured,.magentaBox {
	padding: 30px;
	background: rgba(199,10,108,.1);
}

.blackBox {
	padding: 30px;
	background: rgba(0,0,0,.2);
}

.magentaBox,.blackBox {
	margin-bottom: 10px;
}

.contactBox {
	padding: 30px;
	background: rgba(0,0,0,.8);
}

/* resume */
.resumeAside {
	padding: 30px;
	margin-right: 10px;
	background: rgba(199,10,108,.1);
}

.resumeDescription {
	padding: 30px;
	background: rgba(0,0,0,.2);
}

/* footer */
footer {
	padding: 2% 0;
	color: white;
	text-shadow: black 1px -1px;
}

footer a, .blogShare a {
	text-decoration: underline;
	border:none !important;
}

footer span, .blogShare span {
	display: table-cell;
	vertical-align: middle;
}

/* video */
.video-container {
	position: relative;
	padding-bottom: 56.25%;
	padding-top: 30px;
	height: 0;
	overflow: hidden;
}

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

/* portfolio */
.portfolioThumbChina { position:relative; height:500px; padding:0; margin:0; background:url('https://s3.amazonaws.com/mikemai/2012/img/portfolio-china-photography-bw-great-hall-of-people.jpg') bottom center no-repeat; }
.portfolioThumbDescription { position:absolute; bottom:0; width:100%; }
.portfolioThumbDescriptionPadding { padding:15px 30px; background:rgba(0,0,0,.85); }
.portfolioSolo h1 { padding:17px 30px; margin:0; color:#20b9ec; font-size:16px !important; line-height:1em; background:rgba(0,0,0,.75); }
.portfolioSolo h1 small { color:#cecece; }
.portfolioSolo nav { position:absolute; bottom:15px; padding:0 30px; }
.portfolioSolo nav ul { list-style:none; }
.portfolioSolo nav ul li { float:left; }
.portfolioSolo nav ul li a { display:inline-block; padding:5px 10px; margin:0 4px 0 0; border-bottom:1px dotted #c60a6b; background:rgba(0,0,0,.65); }
.page1 .pin1, .page2 .pin2, .page3 .pin3, .page4 .pin4, .page5 .pin5, .page6 .pin6, .page7 .pin7 { background:#c60a6b; }
.portfolioSolo footer { position:absolute; top:0; right:0; padding:10px 30px; margin:0; }

/* blog */
body#blog { background: url('https://s3.amazonaws.com/mikemai/2012/img/bg-triangles.png') fixed; }
.blogImg a { border:none !important; }
.blogCatogs a { display:inline-block; padding:5px 10px; background:rgba(0,0,0,.5); -webkit-border-radius:5px; -moz-border-radius:5px; border-radius:5px; }
.blogName a:link, .blogName a:visited, .blogName a:hover, .blogName a:active { color:#20b9ec !important; border-bottom:0 !important; }
.blogAsideListLinks { list-style:none; }
.blogAsideListLinks li a { display:block; padding:5px 10px; background:rgba(0,0,0,.5); -webkit-border-radius:5px; -moz-border-radius:5px; border-radius:5px; }
.blogPost { position:relative; }
.blogPostType { z-index:999; position:absolute; right:0; top:0; padding:2px 5px 2px 12px; font-size:.7em; background:rgba(34,185,236,.2); border-bottom-left-radius:100px; }
.blogContent img { width:100%; }
.blogContent h2 { padding:0 0 .3em 0; }
.blogContent h2 a { display:block; margin:0 0 0 -2%; padding:15px 2%; width:100%; background:black; }
.blogMeta { margin:30px 0 0 0; padding:5px 10px; text-align:center; font-size:.7em; background:black; }
.blogQuotes { margin:0 0 1em 0; }
.blogQuotes span { margin:0 0 0 -.4em; font-size:2em; line-height:1em; font-style:italic; color:#ffc50b; }
.blogPagination { padding:20px; }

/* =============================================================================
Non-semantic helper classes
Please define your styles before this section.
========================================================================== */
/* For image replacement */
.ir {
	display: block;
	text-indent: -999em;
	overflow: hidden;
	background-repeat: no-repeat;
	text-align: left;
	direction: ltr;
}

.ir br {
	display: none;
}

/* Hide for both screenreaders and browsers: 
css-discuss.incutio.com/wiki/Screenreader_Visibility */
.hidden {
	display: none;
	visibility: hidden;
}

/* Hide only visually, but have it available for screenreaders:  by Jon Neal.
www.webaim.org/techniques/css/invisiblecontent/  &  j.mp/visuallyhidden */
.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:  drupal.org/node/897638 */
.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;
}

/* Contain floats:  nicolasgallagher.com/micro-clearfix-hack/ */
.clearfix:before,.clearfix:after {
	content: "";
	display: table;
}

.clearfix:after {
	clear: both;
}

.clearfix {
	zoom: 1;
}

/* =============================================================================
PLACEHOLDER Media Queries for Responsive Design.
These override the primary ('mobile first') styles
Modify as content requires.
========================================================================== */
@media only screen and (max-width: 480px) {
	body#blog { font-size:13px !important; }
	#blog .magentaBox, #blog .blackBox { padding:20px !important; }
	.blogCatogs a { padding:3px 6px; }
	.hide-on-mobile { display: none; }
}

@media only screen and (max-width: 801px) {
	/* Style adjustments for viewports 480px and over go here */
	body#blog { background: url('https://s3.amazonaws.com/mikemai/2012/img/bg-triangles.png') repeat; }
	#blog #container { width:100%; min-width:100%; padding:0; margin:0; }
	#blog header,.blogLegendaryCreatives,.blogShare,.blogDescription { display:none !important; }
	.blogAside,.blogColumn { display:block !important; width:100% !important; min-width:100% !important; padding:0 !important; }	
}

@media only screen and (min-width: 1350px) {
	/* Style adjustments for viewports 1290px and over go here */
	body { font-size:20px !important; }
	#mmLogo a {
		float: left;
		padding: 6px 6px 6px 12px;
		height: 48px;
		font-size: 48px;
		line-height: .9em;
		text-shadow: rgba(255,255,255,.6) 1px 1px;
	}

	#mmLogo span {
		font-size: 16px;
		line-height: 22px;
	}

	header,header nav {
		height: 62px;
	}

	header {
		border-right: 4px solid #c60a6b;
	}

	header nav {
		float: right;
		padding: 0 10px;
	}

	header nav a,header nav a:visited {
		padding: 20px 20px 6px 20px;
		height: 36px;
		font-size: 20px;
		line-height: 1em;

	}
	#bio h2 {
		width: 500px;
	}
}

/* =============================================================================
Print styles.
Inlined to avoid required HTTP connection:  www.phpied.com/delay-loading-your-print-css/
========================================================================== */
@media print {
	* {
	background: transparent !important;
	color: black !important;
	text-shadow: none !important;
	filter: none !important;
}

/* Black prints faster:  sanbeiji.com/archives/953 */
a,a:visited {
	color: #444 !important;
	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: "";
}

/* Don't show links for images, or javascript/internal links */
pre,blockquote {
	border: 1px solid #999;
	page-break-inside: avoid;
}

thead {
	display: table-header-group;
}

/* css-discuss.incutio.com/wiki/Printing_Tables */
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;
}

}
