/*
	HTML5 Reset :: style.css
	----------------------------------------------------------
	We have learned much from/been inspired by/taken code where offered from:
	
	Eric Meyer					:: http://ericmeyer.com
	HTML5 Doctor				:: http://html5doctor.com
	and the HTML5 Boilerplate	:: http://html5boilerplate.com
	
-------------------------------------------------------------------------------*/

/* Let's default this puppy out
-------------------------------------------------------------------------------*/

html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, figure, footer, header, hgroup, menu, nav, section, menu, time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	font-size: 100%;
	vertical-align: baseline;
	background: transparent;
}									

article, aside, figure, footer, header, hgroup, nav, section {display: block;}

/* Responsive images and other embedded objects
   Note: keeping IMG here will cause problems if you're using foreground images as sprites.
   If this default setting for images is causing issues, you might want to replace it with a .responsive class instead. */
img.responsive,
object.responsive,
embed.responsive {max-width: 100%;}

/* force a vertical scrollbar to prevent a jumpy page */
html {overflow-y: scroll;}

/* we use a lot of ULs that aren't bulleted. 
	don't forget to restore the bullets within content. */
ul {list-style: none;}

blockquote, q {quotes: none;}

blockquote:before, 
blockquote:after, 
q:before, 
q:after {content: ''; content: none;}

a {margin: 0; padding: 0; font-size: 100%; vertical-align: baseline; background: transparent;}

del {text-decoration: line-through;}

abbr[title], dfn[title] {border-bottom: 1px dotted #000; cursor: help;}

/* tables still need cellspacing="0" in the markup */
table {border-collapse: collapse; border-spacing: 0;}
th {font-weight: bold; vertical-align: bottom;}
td {font-weight: normal; vertical-align: top;}

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

input, select {vertical-align: middle;}

pre {
	white-space: pre; /* CSS2 */
	white-space: pre-wrap; /* CSS 2.1 */
	white-space: pre-line; /* CSS 3 (and 2.1 as well, actually) */
	word-wrap: break-word; /* IE */
}

input[type="radio"] {vertical-align: text-bottom;}
input[type="checkbox"] {vertical-align: bottom; *vertical-align: baseline;}
.ie6 input {vertical-align: text-bottom;}

select, input, textarea {font: 99% sans-serif;}

table {font-size: inherit; font: 100%;}
 
/* Accessible focus treatment
	people.opera.com/patrickl/experiments/keyboard/test */
a:hover, a:active {outline: none;}

small {font-size: 85%;}

strong, th {font-weight: bold;}

td, td img {vertical-align: top;} 

/* Make sure sup and sub don't screw with your line-heights
	gist.github.com/413930 */
sub, sup {font-size: 75%; line-height: 0; position: relative;}
sup {top: -0.5em;}
sub {bottom: -0.25em;}

/* standardize any monospaced elements */
pre, code, kbd, samp {font-family: monospace, sans-serif;}

/* hand cursor on clickable elements */
.clickable,
label, 
input[type=button], 
input[type=submit], 
button {cursor: pointer;}

/* Webkit browsers add a 2px margin outside the chrome of form elements */
button, input, select, textarea {margin: 0;}

/* make buttons play nice in IE */
button {width: auto; overflow: visible;}
 
/* scale images in IE7 more attractively */
.ie7 img {-ms-interpolation-mode: bicubic;}

/* prevent BG image flicker upon hover */
.ie6 html {filter: expression(document.execCommand("BackgroundImageCache", false, true));}

/* let's clear some floats */
.clearfix:before, .clearfix:after { content: "\0020"; display: block; height: 0; overflow: hidden; }  
.clearfix:after { clear: both; }  
.clearfix { zoom: 1; }  



/* Ok, this is where the fun starts.
-------------------------------------------------------------------------------*/

/* new Linux- and Windows-friendly sans-serif font stack: http://mky.be/fontstack */
body {
	background-color: #d9d9d9;
	border-top: 4px solid #000;
	font-size: 12px;
	font-family: ronnia, Freesans, sans-serif;
}

/* using local fonts? make sure to read up on Paul Irish's 
	Bulletproof @font-face syntax: http://mky.be/font-face/bulletproof/ */

body, select, input, textarea {color: #333;}

a, a h2 {color: #cc0000; text-decoration: none;}
a:hover {color: #000;}

/* Custom text-selection colors (remove any text shadows: twitter.com/miketaylr/status/12228805301) */
::-moz-selection{background: #fcd700; color: #fff; text-shadow: none;}
::selection {background: #fcd700; color: #fff; text-shadow: none;} 

/*	j.mp/webkit-tap-highlight-color */
a:link {-webkit-tap-highlight-color: #b3910b;} 

ins {background-color: #fcd700; color: #000; text-decoration: none;}
mark {background-color: #fcd700; color: #000; font-style: italic; font-weight: bold;}




/* Type styles
-------------------------------------------------------------------------------*/
h1, h2, h3, h4, h5, label {
	font-family: futura-pt,sans-serif;
	font-weight: normal;
}

h1 {
	font-size: 6.6667em; /* 80px / 12px */
  	line-height: 1.125em; /* 36px */
	text-transform: uppercase;
}

h2 {
	font-family: futura-pt,sans-serif;
	font-size: 2.166666667em; /* 26px / 12px */
	font-style: condensed;
}

h3 {
	margin-bottom: 1em;
	margin-top: 1em;
	font-size: 1.2em;
	line-height: 1em;
	text-transform: uppercase;
  	color: #cc0000;
}

h4 {
	font-size: 1.5em; /* 18px / 12px */
}

p, ul, ol {
	font-size: 1em; /* 12px / 12px */
  	line-height: 1.5em; /* 18px / 12px */
  	margin: 0 0 1.5em 0;
}

p.tweet {
	/*font-family: Cambria, Georgia, serif;*/
	font-size: 1.25em; /* 18px / 12px */
	/*font-weight: 400 !important;*/
	line-height: .75em;
}






/* Little re-usable classes like buttons, more, etc...
-------------------------------------------------------------------------------*/
.button a {
	display: inline-block;
	padding: 5px 20px;
	font-weight: bold;
}

.more, .detail {
	font-size: .85em;
}








/* Structural stuff
-------------------------------------------------------------------------------*/
body {
	width: 100%;
	background-image: url(../images/bg_texture.png);
	background: url(../images/bg_texture.png) top left;
}

#smoke {
	width: 714px;
	height: 803px;
	position: fixed;
	top: 4px;
	left: 0;
	background-image: url(../images/bg_smoke.png);
	background-repeat: no-repeat;
}

#container {
	position: relative;
	max-width: 1000px;
	min-height: 1058px;
	margin: 0 auto;
	padding: 0 8em;
}

header {
	width: 100%;
	margin-bottom: 50px;
	text-align: center;
}






/* Where the logo sits (amongst other things)
-------------------------------------------------------------------------------*/
header {
	width: 100%;
	min-height: 40px;
	display: block;
}

header h2 {
	margin: auto 10%;
	text-transform: uppercase;
	color: #333;
}

hgroup {
	margin-bottom: 25px;
}

hgroup h2 {
	width: 30%;
	max-width: 250px;
  	margin: 1.5em auto;
  	padding: 1em 5%;
	font-size: 1em; /* 12px / 12px */
  	line-height: 1em; /* 12px / 12px */
  	text-transform: uppercase;
  	background: url(../images/line_long.png) top center no-repeat, url(../images/line_long.png) bottom center no-repeat;
}

#order {
	position: absolute;
	top: 0;
	right: 8%;
	width: 160px;	
}

#order h3 {
	margin-bottom: 5px;
	font-size: 1.5em; /* 18 / 12 */
	text-transform: none;
	color: #333;
}

#order p {
	margin-top: 10px;
}

a.button {
	padding: 8px 15px;
	text-transform: uppercase;
	font-weight: 300;
	text-align: center;
	background-color: #cc0000;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
	color: #fff;
}

a.button {
	color: white;
	text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
	background-color: #DA4F49;
	background-image: -moz-linear-gradient(top, #EE5F5B, #cc0000);
	background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#EE5F5B), to(#cc0000));
	background-image: -webkit-linear-gradient(top, #EE5F5B, #cc0000);
	background-image: -o-linear-gradient(top, #EE5F5B, #cc0000);
	background-image: linear-gradient(to bottom, #EE5F5B, #cc0000);
	background-repeat: repeat-x;
	border-color: #BD362F #BD362F #802420;
	border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffee5f5b', endColorstr='#cc0000', GradientType=0);
	filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
}






/* Logo
-------------------------------------------------------------------------------*/
#logo {
	width: 457px;
	height: 123px;
	margin: 0 auto;
	text-indent: -9999em;
	background-image: url(../images/logo_large.png);
	background-repeat: no-repeat;
}

h2 a {
	display: block;
}



/* Excerpt Ribbon
-------------------------------------------------------------------------------*/
#excerpt {
	position: absolute;
	top: 0;
	left: 5%;
	width: 132px;
	height: 188px;
	margin: 0;
	padding-top: 5px;
	background-image: url(../images/bg_excerpt_ribbon.png);
	background-repeat: no-repeat;
}

#excerpt img {
	margin: 20px auto 5px auto;
	display: block;
	
}

#excerpt p {
	padding: 0 20px 5px 20px;
	margin: 0;
	font-family: futura-pt,sans-serif;
	text-align: center;
	line-height: 1.25em;
	text-transform: uppercase;
	color: #fff;
}

#excerpt strong {
	padding-bottom: 10px;
	text-transform: uppercase;
}

#excerpt a {
	color: #fff;
}

#excerpt span {
	clear: both;
}

#excerpt p.openingCeremonies, #excerpt p.jayna {
	padding: 10px 0 25px 0;
	font-size: 1.8em;
	font-family: Cambria, Georgia, serif;
	font-weight: lighter;
	text-transform: none;
}


/* Characters
-------------------------------------------------------------------------------*/
h3#athletes {
	margin-left: 10px;
}

article.character {
	float: left;
	width: 30%;
	min-height: 275px;
	margin: 0 10px 1em 10px;
	padding-top: 15px;
	overflow: hidden!important;
	background-image: url(../images/bg_line_large.png);
	background-repeat: no-repeat;
	background-position-y: top;
}

article.Sam {
	min-height: 275px;
}

article.character a {
	white-space: pre-wrap;
	word-wrap: break-word;
}

section.name {
	float: left;
	width: 30%;
	min-width: 70px;
	max-width: 100px;
}

section.info {
	float: left;
	width: 70%;
	overflow: auto;
}

h4 {
	min-height: 56px;
}

p.bio {
	min-height: 60px;
	margin: 0;
	font-size: 1em; /* 12px / 12px */
}

p.tweet {
	min-height: 50px;
	margin-bottom: .25em;
	padding: 10px;
	font-size: 1em; /* 12px / 12px */
	line-height: 1em;
	background-color: #eee;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
}

.tweet_join {
	display: none;
}

p.tweet span.tweet_time {
	display: block;
	font-family: ronnia, Freesans, sans-serif;
	font-size: .611111111em; /* 11px / 18px */
}

p.details {
	display: block;
	font-family: ronnia, Freesans, sans-serif;
	font-size: .916666666666em; /* 11px / 12px */
}

.info p {
	margin-right: 10px;
}

.name {
	background-image: url(../images/bg_tweet_arrow.png);
	background-repeat: no-repeat;
	background-position-x: right;
	background-position-y: 70px;
}

.mary .name {
	background-position-y: 100px;
}

.name img {
	padding: 1px;
	margin-top: 5px;
	border: 1px solid #ccc;
}







/* Components below the characters
-------------------------------------------------------------------------------*/
#aboutBook, #aboutAuthor, #blog, #excerpts, #endorsed, #inTouch {
	float: left;
	width: 30%;
	min-height: 170px;
	margin: 0 10px 1em 10px;
	padding-top: 15px;
	overflow: hidden!important;
}

#aboutBook h3, #aboutAuthor h3, #excerpts h3, #endorsed h3 #inTouch h3, #blog h3{
	margin-bottom: 10px;
	padding-bottom: 15px;
}

#excerpts ul, #inTouch ul {
	margin-left: 5px;
	list-style: none;
}

#excerpts li, #inTouch li {
	padding-left: 25px;
	margin: 0 0 10px 0;
	background-image: url(../images/icon_book.png);
	background-repeat: no-repeat;
}

#endorsed img {
	max-width: 75px;
}

#inTouch li {
	width: 40%;
	float: left;
}

li#facebook {
	background-image: url(../images/icon_facebook.png);
	background-repeat: no-repeat;
}

li#twitter {
	background-image: url(../images/icon_twitter.png);
	background-repeat: no-repeat;
}

li#linkedin {
	background-image: url(../images/icon_linkedin.png);
	background-repeat: no-repeat;
}

li#email {
	background-image: url(../images/icon_email.png);
	background-repeat: no-repeat;
}

#aboutAuthor img {
	float: left;
	margin: 0 10px 10px 0;
	padding: 1px;
	border: 1px solid #ccc;
}

#copyright {
	clear: both;
}






/* Footer Container
-------------------------------------------------------------------------------*/
footer {
	z-index: 50;
	clear: both;
	height: auto;
	overflow: inherit;
	padding: 25px 0;
	border-top: 4px solid #000;
	/*margin-left: -100%;
	margin-right:-100%;
	padding-left: 100%;
	padding-right: 100%;*/
}

footer p {
	margin-bottom: .5em;
	margin-right: 25px;
}









/* Print styles!
-------------------------------------------------------------------------------*/
@media print {



}


/* Media queries!
-------------------------------------------------------------------------------*/

/* iPads (portrait) ----------- */
@media only screen 
and (max-width : 768px) {
/* Styles */

#container {
	padding: 0 2em;
}

header {
	margin-top: 50px;
}

#excerpt {
	top: -50px;
	left: 0;
	width: 98.75%;
	height: auto;
	margin: 0;
	padding: 5px;
	background-image: none;
	background-color: #666;
	
}

#excerpt img {
	display: none;
}

#excerpt p {
	display: inline-block;
	padding: 15px 15px 15px 0px;
	text-align: left;;
}

#excerpt strong {
	padding: 0 0 0 30px;
}

#order {
	top: -43px;
	right: 30px;
}

#order h3, #order img {
	display: none;
}

#logo {
	top: 25px;
}

article.character {
	width: 47%;
	min-height: 250px;
}

header h3 {
	top: 60px;
	right: 5%;
	width: 50px;
	font-size: 1.16666667em; /* 14 / 12 */
}

}


/* Here's another unknown breakpoint */
@media only screen 
and (max-width : 681px) {
/* Styles */

header h3 {
	top: 70px;
	right: 1%;
}

article.character {
	width: 96%;
	min-height: 1px;
}

}

/* iPhones (landscape) ----------- */
@media only screen 
and (max-width : 480px) {
/* Styles */

#logo {
	width: 250px;
	height: 68px;
	background-image: url(../images/logo_phone.png);
}

#excerpt {
	display: none;
}

#order {
	top: -50px;
	right: 0;
	width: 100%;
	background-color: #666;
}

#order p {
	margin-top: 15px;
}

header h2 {
	margin: auto 2%;
}

hgroup h2 {
	width: 50%;
  	margin: 1.5em auto;
}

header h3 {
	margin-right: 1em;
}

#excerpt p.openingCeremonies {
	display: none;
}

#aboutBook, #aboutAuthor, #inTouch, #excerpts, #endorsed, #blog {
	clear: both;
	float: none;
	width: 100%;
	min-height: 1px;
	margin: 35px 5px 0 0;
}

#copyright {
	margin-top: 50px;
}

}


/* iPhones (portrait and other small screens) ----------- */
@media only screen 
and (max-width : 320px) {
/* Styles */

header h3 {
	right: 1%;
}

#aboutBook, #aboutAuthor, #excerpts, #inTouch, #blog, #endorsed {
	width: 96%!important;
}

#aboutBook p, #aboutAuthor p, #blog p {
	margin-right: 0;
}

}