/*
Theme created for use with Sequence.js (http://www.sequencejs.com/)

Theme:   Sliding Horizontal Parallax (Responsive)
Version:   0.2.2 Beta
Theme Author:   Ian Lunn @IanLunn
Author URL:   http://www.ianlunn.co.uk/
Theme URL:   http://www.sequencejs.com/themes/sliding-horizontal-parallax/

This is a FREE theme and is dual licensed under the following: 
http://www.opensource.org/licenses/mit-license.php | http://www.gnu.org/licenses/gpl.html

Sequence.js and its dependencies are (c) Ian Lunn Design 2012 unless otherwise stated.
Aside from these comments, you may modify and distribute this file as you please. Have fun!
 */

#header-container{
	background: #d9d9d9;
	border-bottom: #999 solid 5px;
	width: 100%;
}

#header {
	background:  #D9D9D9;
	height: 300px;/*600px;*/
	margin: 0 auto;
	position: relative;
	overflow: hidden;
	max-width: 1280px;
	width: 100%;
}

#main, #aside{
	font-size: 1.6em;
}

/*a{
	color: white;
}*/

.next,.prev {
	color: white;
	cursor: pointer;
	display: none;
	font-weight: bold;
	padding: 10px 15px;
	position: absolute;
	top: 50%;
	z-index: 1000;
	height: 75px;
	margin-top: -47.5px;
}

.pause {
	bottom: 0;
	cursor: pointer;
	position: absolute;
	z-index: 1000;
}

.paused {
	opacity: 0.3;
}

.prev {
	left: 3%;
}

.next {
	right: 3%;
}

.prev img, .next img{
	height: 100%;
	width: auto;
}

#sequence-preloader{
	background: #d9d9d9;
}

#nav {
	bottom: 1%;
	display: none;
	right: 6%;
	position: absolute;

	-webkit-transition-duration: .5s;
	-moz-transition-duration: .5s;
	-o-transition-duration: .5s;
	-ms-transition-duration: .5s;
	transition-duration: .5s;
}

#nav li {
	display: inline-block;
	height: 81px;/*140px controls height placement of nav*/
}

#nav li img {
	cursor: pointer;
	opacity: 0.5;

	-webkit-transition-duration: 1s;
	-moz-transition-duration: 1s;
	-o-transition-duration: 1s;
	-ms-transition-duration: 1s;
	transition-duration: 1s;
}

#nav li img.active {
	opacity: 1;
}

@media only screen and (min-width : 1224px) {
	/*only display the hover effect on desktops/laptops*/
	#nav li img:hover {
		opacity: 1;
	
		-webkit-transition-duration: 1s;
		-moz-transition-duration: 1s;
		-o-transition-duration: 1s;
		-ms-transition-duration: 1s;
		transition-duration: 1s;
	}

}

#sequence li{
	height: 100%;
	position: absolute;
	top: -50%;
	width: 100%;
}

#sequence li * {
	position: absolute;
}

#sequence li img{
	height: 96%;
}

#sequence {
	background: url("../images/back_pattern.gif") no-repeat 50% 100%;
	display: block;
	height: 100%;
	margin: 0;
	position: absolute;
	max-width: 1280px;
	width: 100%;
	
	/*backface-visibility prevents graphical glitches when frames are animating*/
	-webkit-backface-visibility: hidden;
	-moz-backface-visibility: hidden;
	-ms-backface-visibility: hidden;
	-o-backface-visibility: hidden;
	backface-visibility: hidden;
}

h2.title {
	color: white;
	font-family: 'Sirin Stencil', serif;
	font-weight: bold;
	text-transform: uppercase;
}

h3.subtitle{
	font-family: 'Ruluko', serif;
}

.next,.prev {
	position: absolute;
	opacity: 0.6;

	-webkit-transition-duration: 1s;
	-moz-transition-duration: 1s;
	-o-transition-duration: 1s;
	-ms-transition-duration: 1s;
	transition-duration: 1s;
}

.next:hover,.prev:hover {
	opacity: 1;

	-webkit-transition-duration: 1s;
	-moz-transition-duration: 1s;
	-o-transition-duration: 1s;
	-ms-transition-duration: 1s;
	transition-duration: 1s;
}

.title {
	font-size: 2.5em;
	line-height:1em;
	left: 65%;
	width: 35%;
	opacity: 0;
	bottom: 1%;
	z-index: 50;
}

.animate-in .title {
	left: 30%;/*50% controls placement*/
	opacity: 1;

	-webkit-transition-duration: .5s;
	-moz-transition-duration: .5s;
	-o-transition-duration: .5s;
	-ms-transition-duration: .5s;
	transition-duration: .5s;
}

.animate-out .title {
	left: 35%;
	opacity: 0;

	-webkit-transition-duration: .5s;
	-moz-transition-duration: .5s;
	-o-transition-duration: .5s;
	-ms-transition-duration: .5s;
	transition-duration: .5s;
}

.subtitle {
	color: black;
	font-size: 1.5em;
	left: 35%;
	width: 35%;
	opacity: 0;
	top: 101%;
}

.animate-in .subtitle {
	left: 30%;/*50% controls placement*/
	opacity: 1;

	-webkit-transition-duration: .5s;
	-moz-transition-duration: .5s;
	-o-transition-duration: .5s;
	-ms-transition-duration: .5s;
	transition-duration: .5s;
}

.animate-out .subtitle {
	left: 65%;
	opacity: 0;

	-webkit-transition-duration: .5s;
	-moz-transition-duration: .5s;
	-o-transition-duration: .5s;
	-ms-transition-duration: .5s;
	transition-duration: .5s;
}

.model {
	left: 50%;/*30%*/
	bottom: -48%;
	opacity: 0;
	position: relative;
	height: auto !important;
	max-height: 250px !important;/*568*/
	width: 30%;
	min-width: 122px; /*225prevents the model from shrinking when the browser is resized*/
	max-width: 123px;/*266*/
}

.animate-in .model {
	left: 10%;/*15% controls placement*/
	opacity: 1;

	-webkit-transition-duration: 1s;
	-moz-transition-duration: 1s;
	-o-transition-duration: 1s;
	-ms-transition-duration: 1s;
	transition-duration: 1s;
}

.animate-out .model {
	left: 15%;
	opacity: 0;

	-webkit-transition-duration: .5s;
	-moz-transition-duration: .5s;
	-o-transition-duration: .5s;
	-ms-transition-duration: .5s;
	transition-duration: .5s;
}

@media only screen and (min-width : 992px) {
	.title{
		width: 42%;
	}
	
}

@media only screen and (max-width : 838px) {
	#header{
		height: 300px;/*550*/
	}
	
	.model{
		max-height: 230px !important;/*530px*/
		width: auto;
	}
	
	.title{
		font-size:2em;
	}
	.subtitle{
		line-height:1em;
	}
	
	
}

@media only screen and (max-width : 768px) {
	#header{
		height: 250px;/*500*/
	}
	
	.title{
		line-height:1em;
		font-size:1.6em;
	}
	
	.subtitle{
		font-size: 0.9em;
	}
	
	.next,.prev {
		height: 60px;
		margin-top: -40px;
	}
	
	.model{
		/*max-height: 200px !important;/*480*/
		width: auto;/*auto*/
	}
	
	.animate-in .subtitle {
		left:33%;
	}
}

@media only screen
and (max-width : 568px) {
	.model{
		left: 50%;
		min-width: 30%; /*prevents the model from shrinking when the browser is resized*/
		width: 30%;	
	}
	
	.animate-in .model {
		left: 50%;
		margin-left: -20%;
	}
	
	.animate-out .model {
		left: 50%;
		margin-left: -20%;
	}
	
	.title{
		font-size:1.8em;
		line-height:1em;
		background: #a1a1a1;
		background: rgba(0,0,0,0.3);
		bottom: 0;
		left: 100%;
		padding: 4%;
		bottom: -50%;
		width: 100%;
		z-index: 10;
	}
	
	.animate-in .title {
		left: 0%;
	}
	
	.animate-out .title {
		left: -100%;	
	}
	
	.subtitle{
		visibility: hidden;
	}
	
	#nav{
		bottom: 40px;
	}
	
	#nav li img{
		height: 100px;
	}
}

@media only screen
and (max-width : 518px) {
	#header{
		height: 250px;/*450*/
	}
}

@media only screen
and (max-width : 468px) {
	#header{
		height: 250px;/*415*/
	}
	
	#nav{
		opacity: 0;
		visibility: hidden;
	}
}

@media only screen
and (max-width : 418px) {
	#header{
		height: 250px;/*375*/
	}
	
}

@media only screen
and (max-width : 368px) {
	#header{
		height: 250px;/*325*/
	}
	.title{
		font-size: 1.2em;
	}
}

@media 	only screen
		and (max-width : 320px)
		and (orientation : portrait) { /*iphone portrait*/
	#header{
		height: 200px;/*320*/
	}
	
	.model{
		min-width: 45%;
		width: 45%;
	}
	
	.animate-in .model {
		margin-left: -22.5%;
	}
	
	.animate-out .model {
		margin-left: -22.5%;
	}
	
	h2.title{
	font-size: 0.625em;
	}
	

}

@media 	only screen
		and (min-width : 321px)
		and (max-width : 480px)
		and (orientation : landscape) {
		#header{
			height: 150px;/*260*/
		}
		
		.model{
			min-width: 24%;
			width: 24%;
		}
		
		.animate-in .model {
			left: 17.5%;
			margin-left: 0;
		}
		
		.animate-out .model {
			left: 17.5%;
			margin-left: 0;
		}
		
		#nav{
			right: 17.5%;
		}
}