/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */

/*
 * 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
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

html {
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets 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, videos, audio and canvas and the bottom of
 * their containers: h5bp.com/i/440
 */

audio,
canvas,
img,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

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

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browse Happy prompt
   ========================================================================== */

.browsehappy {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

html,
body {
	-webkit-overflow-scrolling: touch;	
}
body {
	background-color: #ffffff;
	font-family: Runda, Helvetica, Arial, sans-serif;
	font-weight: 300;
	color: #333333;
}
a {
	text-decoration: none;
	color: #0d53a4;
}
.centered {
	text-align: center;
}
.container {
	overflow: hidden;	
}
.contentBox {
	overflow: hidden;
	width: 100%;
	background-color: white;
}
.contentBox h1 {
	font-weight: 300;
	font-size: 1.1em;
	text-transform: uppercase;
	margin-top: .75em;
	letter-spacing: .1em;
}
.contentBox h2 {
	font-weight: 300;
	font-size: 0.9em;
	text-transform: uppercase;
	margin-top: 1em;
	letter-spacing: .3em;
}
.contentBox h3 {
	font-weight: 300;
	font-size: 0.75em;
	leter-spacing; 0;	
}
.blueLink {
	color: #0d53a4;
	text-transform: uppercase;
	font-size: 0.7em;	
	text-decoration: none;
	display: inline;
	cursor: pointer;
}
.blueLink img {
	margin-left: 3px;
	position: relative;
	top: -3px;
	display: inline;
	cursor: pointer;
}
#aboutInfo img {
	margin-top: 20px;
	margin-bottom: 15px;	
}
.contentBox p {
	margin-left: 40px;
	margin-right: 40px;
	line-height: 1.6;
}
.showContent {
	display: block;	
}
.hideContent {
	display: none;	
}
.floatLeft {
	float: left;	
}
.floatRight {
	float: right;	
}
.bottomNav {
	display: none;	
}
.titleLogo {
	position: relative;
	top: -10px;
	cursor: pointer;
}
#bigThumb {
	margin-left: 0;
	margin-right: 0;	
}
#videoEmbed {
	width: 100%;
	max-width: 640px;
}
.videoThumb {
	margin: 5px;
	cursor: pointer;	
}
.dim {
	opacity: 0.50;
	cursor: default;	
}
.fullWidth {
	width: 100%;
	text-align: center;
	overflow: auto;
	position: absolute;
	top: 0;
}
.fullWidth p {
	width: 80%;
	margin: auto;
	line-height: 1.6;	
	text-align: left;
	margin-bottom: 1em;
}
.fullWidth h2 {
	margin-top: 0em;
	margin-bottom: 0;	
}
.fullWidth h3 {
	margin-top: 0;
	margin-bottom: 0.5em;	
}
#aboutInfo,
#filmInfo,
#otherInfo {
	-webkit-transition: all 0.3s ease-in;
	-ms-transition: all 0.3s ease-in;
	transition: all 0.3s ease-in;
	opacity: 1.0;
}
#aboutBox,
#filmBox,
#whoBox,
#contactBox,
#blogBox {	
	-webkit-transition: all 0.3s ease-in;
	-ms-transition: all 0.3s ease-in;
	transition: all 0.3s ease-in;
	-webkit-transform: scale(.5);
	-moz-transform: scale(.5);
	-o-transform: scale(.5);
	transform: scale(.5);
	opacity: 0;
	z-index: 100;
}
#blogFrame {
	width: 100%;
	height: auto;
	border: none;
	border-collapse: collapse;
}
.imageWide {
	width: 100%;
	opacity: 0;
}
#imageWill {
	background-image: url(../img/who-will-small.jpg);
	background-size: cover;
}
#imageEric {
	background-image: url(../img/who-eric-small.jpg);
	background-size: cover;
}
.btnClose {
	color: white;
	background-color: #0d53a4;
	position: fixed;
	top: 0;
	right: 0;
	z-index: 300;
	text-align:center;
	cursor: pointer;
	font-weight: 300;
	font-size: 1em;
	width: 2em;
	height: 1.6em;
	padding: auto;
}
.spreadOut {
	letter-spacing:1px;	
}


/* ==========================================================================
   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;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 768px) {
    /* Style adjustments for viewports that meet the condition */
	
	html {
		background: url(../img/background-crowd.jpg) no-repeat center center fixed ;
		-webkit-background-size: cover;
		-moz-background-size: cover;
		-o-background-size: cover;
		background-size: cover;	
	}
	
	#aboutCover {
		width: 100%; 
		height: 105px;
		background-image: url(../../img/about-cover.jpg) no-repeat center top;
	}
	
	.contentBox {
		overflow: hidden;
		width: 376px;
		height: 530px;
	}
	.contentBox h1 {
		font-size: 1.8em;
		text-transform: uppercase;
		margin-top: .75em;
	}
.contentBox h2 {
	font-size: 1.2em;
}
	.fullWidth {
		width: 100%;
		height: 100%;
		text-align: center;
		overflow: auto;
	}
	.fullWidth p {
		width: 600px;
		margin: auto;
		line-height: 1.8;	
		text-align: left;
		margin-bottom: 1em;
	}
	.fullWidth h2 {
		margin-top: 0em;
		margin-bottom: 0;	
	}
	.fullWidth h3 {
		margin-top: 0;
		margin-bottom: 0.5em;	
	}
	#aboutInfo,
	#filmInfo,
	#otherInfo {
		-webkit-box-shadow: 0 5px 15px rgba(0,0,0,.15);
		box-shadow: 0 5px 15px rgba(0,0,0,.15);
		-webkit-transition: all 0.3s ease-in;
		-ms-transition: all 0.3s ease-in;
		transition: all 0.3s ease-in;
		opacity: 1.0;
	}
	#aboutInfo {
		position: absolute;
		top: 40px;	
		left: 5%;
		-webkit-transform: rotate(-7deg); 
		-moz-transform: rotate(-7deg); 
		-o-transform: rotate(-7deg);
		-ms-transform: rotate(-7deg); 
		transform: rotate(-7deg); 
		z-index: 30;
	}
	#filmInfo {
		position: absolute;
		top: 45px;	
		left: 47%;
		-webkit-transform: rotate(4deg); 
		-moz-transform: rotate(4deg); 
		-o-transform: rotate(4deg);
		-ms-transform: rotate(4deg); 
		transform: rotate(4deg); 
		z-index: 20;
	}
	#otherInfo {
		position: absolute;
		top: 330px;	
		left: 30%;
		-webkit-transform: rotate(7deg); 
		-moz-transform: rotate(7deg); 
		-o-transform: rotate(7deg);
		-ms-transform: rotate(7deg); 
		transform: rotate(7deg);
		z-index: 10;
	}
	#aboutInfo:hover,
	#filmInfo:hover,
	#otherInfo:hover {
		-webkit-transition: all 0.15s ease-in;
		-ms-transition: all 0.15s ease-in;
		transition: all 0.15s ease-in;
		z-index: 40;
		-webkit-transform: scale(1.04);
		-moz-transform: scale(1.04);
		-o-transform: scale(1.04);
		transform: scale(1.04);
	}
	#otherInfo div {
		position: relative;
		top: 250px;
	}		
	#aboutBox,
	#filmBox,
	#whoBox,
	#contactBox,
	#blogBox {	
		-webkit-transition: all 0.3s ease-in;
		-ms-transition: all 0.3s ease-in;
		transition: all 0.3s ease-in;
		-webkit-transform: scale(.5) rotate(-180deg);
		-moz-transform: scale(.5) rotate(-180deg);
		-o-transform: scale(.5) rotate(-180deg);
		transform: scale(.5) rotate(-180deg);
		opacity: 0;
		z-index: 100;
	}
	.imageWide {
		width: 600px;	
		opacity: 1;
	}
	#imageWill {
		background: none;
	}
	#imageEric {
		background: none;
	}
	.zoom {
		z-index: 50;
		-webkit-box-shadow: none;
		box-shadow: none;
		opacity: 0;
	}
	.fade {
		opacity: 0;	
	}
	.otherTop {
		padding-top: 40px;
	}
	.bottomNav {
		display: block;
		position: fixed;
		bottom: 0px;
		height: 20px;
		background-color: #0754a3;
		opacity: 0.85;
		width: 100%;
		color: white;
		text-align: center;
		font-size: .7em;
		text-transform: uppercase;
	}
	.bottomNav ul {
		margin-top: 2px;
		margin-left: -15px;
		list-style: none;
	}
	.bottomNav li {
		margin-right: 30px;	
		display: inline-block;
		cursor: pointer;
	}
	.bottomNav a,
	.bottomNav a:visited,
	.bottomNav a:hover {
		color: white;	
	}
}


@media only screen and (min-width: 1024px) {

	
	.fullWidth {
		width: 940px;
		height: 100%;
		position: absolute;
		left: 50%;
		margin-left: -470px;
		
	}
	
	#aboutInfo {
		position: absolute;
		top: 100px;	
		left: 6%;
	}
	#filmInfo {
		position: absolute;
		top: 25px;	
		left: 31%;
		-webkit-transform: rotate(0deg); 
		-moz-transform: rotate(0deg); 
		-o-transform: rotate(0deg);
		-ms-transform: rotate(0deg);
		transform: rotate(0deg); 
	}
	#otherInfo {
		position: absolute;
		top: 80px;	
		left: 57%;
		-webkit-transform: rotate(8deg); 
		-moz-transform: rotate(8deg); 
		-o-transform: rotate(8deg);
		-ms-transform: rotate(8deg); 
		transform: rotate(8deg);
	}
	#otherInfo div {
		position: static;	
		margin-top: 80px;
		margin-left: 0px;
	}
	.otherTop {
		padding-top: 0px;	
	}
	#videoEmbed {
		width: 640px;
		height: 360px;
	}
	.imageWide {
		width: 640px;
	}
}



@media only screen and (min-width: 1200px) {
	#aboutInfo {
		left: 11%;	
	}
	#filmInfo {
		left: 36%;
	}
	#otherInfo {
		left: 61%;
	}
}


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

    a,
    a:visited {
        text-decoration: underline;
    }

    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 {
        page-break-after: avoid;
    }
}
