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

Theme: Modern Slide In
Version: 1.3
Theme Author: Ian Lunn @IanLunn
Author URL: http://www.ianlunn.co.uk/
Theme URL: http://www.sequencejs.com/themes/modern-slide-in/

This is a FREE theme and is available under a MIT License:
http://www.opensource.org/licenses/mit-license.php

Sequence.js and its dependencies are (c) Ian Lunn Design 2012 - 2013 unless otherwise stated.
*/
/* CSS RESET - http://meyerweb.com/eric/tools/css/reset/ v2.0 | 20110126 */

/*
Table of Content
====================
#1.Main structure
#2.Slider code
==================== */
/****************************************
1. Main structure
 ***************************************/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

body {
  line-height: 1;
}

ol, ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

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

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* !CSS RESET */
/* prefix declarations */
/* THEME STYLES */
.sequence-theme {
  /* this container is just to ensure the background color stretches all the way across on bigger screens */
  background: #D9D9D9;
}

#sequence {
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 1280px;
  background-color: #D9D9D9;
  background-image: url("../images/bg-sequence.html");
  background-repeat: no-repeat;
  background-position: 50% 100%;
  color: white;
  font-size: 0.625em;
  margin: 0 auto;
  position: relative;
  height: 600px;
}
#sequence > .sequence-canvas {
  height: 100%;
  width: 100%;
  position:relative;
}
#sequence > .sequence-canvas > li {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
  top: -50%;
}
#sequence > .sequence-canvas > li img {
  height: 96%;
  width: 40%;
}
#sequence > .sequence-canvas li > * {
  position: absolute;
  /* only cause the left and opacity properties to transition */
  -webkit-transition-property: left, opacity;
  -moz-transition-property: left, opacity;
  -ms-transition-property: left, opacity;
  -o-transition-property: left, opacity;
  transition-property: left, opacity;
}

.sequence-next,
.sequence-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;
}

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

.sequence-paused {
  opacity: 0.3;
}

.sequence-prev {
  left: 3%;
}

.sequence-next {
  right: 3%;
}

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

#sequence-preloader {
  background: #d9d9d9;
}

.sequence-pagination {
  bottom: 1%;
  display: none;
  right: 6%;
  position: absolute;
  z-index: 10;
  -webkit-transition-duration: 0.5s;
  -moz-transition-duration: 0.5s;
  -ms-transition-duration: 0.5s;
  -o-transition-duration: 0.5s;
  transition-duration: 0.5s;
}
.sequence-pagination li {
  display: inline-block;
  *display: inline;
  /* Hack for IE7 and below as they don't support inline-block */
  height: 140px;
}
.sequence-pagination li img {
  cursor: pointer;
  opacity: 0.5;
  -webkit-transition-duration: 1s;
  -moz-transition-duration: 1s;
  -ms-transition-duration: 1s;
  -o-transition-duration: 1s;
  transition-duration: 1s;
  -webkit-transition-property: margin-bottom, opacity;
  -moz-transition-property: margin-bottom, opacity;
  -ms-transition-property: margin-bottom, opacity;
  -o-transition-property: margin-bottom, opacity;
  transition-property: margin-bottom, opacity;
}
.sequence-pagination li img:hover {
  margin-bottom: 4px;
  -webkit-transition-duration: 0.3s;
  -moz-transition-duration: 0.3s;
  -ms-transition-duration: 0.3s;
  -o-transition-duration: 0.3s;
  transition-duration: 0.3s;
}
.sequence-pagination li.current img {
  opacity: 1;
}

.sequence-next,
.sequence-prev {
  position: absolute;
  opacity: 0.6;
  -webkit-transition-duration: 1s;
  -moz-transition-duration: 1s;
  -ms-transition-duration: 1s;
  -o-transition-duration: 1s;
  transition-duration: 1s;
}

.sequence-next:hover,
.sequence-prev:hover {
  opacity: 1;
  -webkit-transition-duration: 1s;
  -moz-transition-duration: 1s;
  -ms-transition-duration: 1s;
  -o-transition-duration: 1s;
  transition-duration: 1s;
}

/****************************************
2. Slider code
 ***************************************/
/* Heading h1 title */
.title {
  left: 5%;
  width: 35%;
  opacity: 0;
  bottom: 1%;
  z-index: 50;
  top:65%;
}

.animate-in .title {
  left: 15%;
  opacity: 1;
  -webkit-transition-duration: 0.5s;
  -moz-transition-duration: 0.5s;
  -ms-transition-duration: 0.5s;
  -o-transition-duration: 0.5s;
  transition-duration: 0.5s;
}

.animate-out .title {
  left: 35%;
  opacity: 0;
  -webkit-transition-duration: 0.5s;
  -moz-transition-duration: 0.5s;
  -ms-transition-duration: 0.5s;
  -o-transition-duration: 0.5s;
  transition-duration: 0.5s;
}

/* Heading h2 subtitle */
.subtitle {
  left: 35%;
  width: 45%;
  opacity: 0;
  top: 77%;
}

.animate-in .subtitle {
  left: 15%;
  opacity: 1;
  -webkit-transition-duration: 0.5s;
  -moz-transition-duration: 0.5s;
  -ms-transition-duration: 0.5s;
  -o-transition-duration: 0.5s;
  transition-duration: 0.5s;
}

.animate-out .subtitle {
  left: 5%;
  opacity: 0;
  -webkit-transition-duration: 0.1s;
  -moz-transition-duration: 0.1s;
  -ms-transition-duration: 0.1s;
  -o-transition-duration: 0.1s;
  transition-duration: 0.1s;
}

/* Heading h5 supportive-subtitle */
.supportive-subtitle {
  left: 10%;
  width: 45%;
  opacity: 0;
  top: 90%;
}

.animate-in .supportive-subtitle {
  left: 15%;
  opacity: 1;
  -webkit-transition-duration: 0.5s;
  -moz-transition-duration: 0.5s;
  -ms-transition-duration: 0.5s;
  -o-transition-duration: 0.5s;
  transition-duration: 0.5s;
}

.animate-out .supportive-subtitle {
  left: 5%;
  opacity: 0;
  -webkit-transition-duration: 0.5s;
  -moz-transition-duration: 0.5s;
  -ms-transition-duration: 0.5s;
  -o-transition-duration: 0.5s;
  transition-duration: 0.5s;
}

/* First CTA button */
.cta1 {
  left: 10%;
  opacity: 0;
  top: 100%;
}

.animate-in .cta1 {
  left: 15%;
  opacity: 1;
  -webkit-transition-duration: 0.5s;
  -moz-transition-duration: 0.5s;
  -ms-transition-duration: 0.5s;
  -o-transition-duration: 0.5s;
  transition-duration: 0.5s;
}

.animate-out .cta1 {
  left: 5%;
  opacity: 0;
  -webkit-transition-duration: 0.5s;
  -moz-transition-duration: 0.5s;
  -ms-transition-duration: 0.5s;
  -o-transition-duration: 0.5s;
  transition-duration: 0.5s;
}

/* Second CTA button */
.cta2 {
  left: 10%;
  opacity: 0;
  top: 100%;
}

.animate-in .cta2 {
  left: 26%;
  opacity: 1;
  -webkit-transition-duration: 0.5s;
  -moz-transition-duration: 0.5s;
  -ms-transition-duration: 0.5s;
  -o-transition-duration: 0.5s;
  transition-duration: 0.5s;
}

.animate-out .cta2 {
  left: 15%;
  opacity: 0;
  -webkit-transition-duration: 0.5s;
  -moz-transition-duration: 0.5s;
  -ms-transition-duration: 0.5s;
  -o-transition-duration: 0.5s;
  transition-duration: 0.5s;
}

/* Third CTA button */
.cta3 {
  left: 50%;
  opacity: 0;
  top: 100%;
}

.animate-in .cta3 {
  left: 40.3%;
  opacity: 1;
  -webkit-transition-duration: 0.5s;
  -moz-transition-duration: 0.5s;
  -ms-transition-duration: 0.5s;
  -o-transition-duration: 0.5s;
  transition-duration: 0.5s;
}

.animate-out .cta3 {
  left: 15%;
  opacity: 0;
  -webkit-transition-duration: 0.5s;
  -moz-transition-duration: 0.5s;
  -ms-transition-duration: 0.5s;
  -o-transition-duration: 0.5s;
  transition-duration: 0.5s;
}

/* image in slider */
.model {
  left: 75%;
  top:50%;
  opacity: 0;
  position: relative;
  height: auto !important;
  max-height: 568px !important;
  width: 60%;
  min-width: 225px;
  /* prevents the model from shrinking when the browser is resized */
  max-width: 366px;
}

.animate-in .model {
  left: 60%;
  opacity: 1;
  -webkit-transition-duration: 1s;
  -moz-transition-duration: 1s;
  -ms-transition-duration: 1s;
  -o-transition-duration: 1s;
  transition-duration: 1s;
}

.animate-out .model {
  left: 50%;
  opacity: 0;
  -webkit-transition-duration: 0.1s;
  -moz-transition-duration: 0.1s;
  -ms-transition-duration: 0.1s;
  -o-transition-duration: 0.1s;
  transition-duration: 0.1s;
}

/* Diferent style for smaller screens */
@media only screen and (max-width: 992px) {
  .title {
font-size:65px;
  }
  .subtitle {
font-size:45px;
  }
  .supportive-subtitle {
font-size:18px;
  }
}

@media only screen and (max-width: 838px) {
  #sequence {
height: 550px;
  }
  #sequence .model {
max-height: 530px !important;
width: auto;
  }
}
@media only screen and (max-width: 768px) {
	/* Heading h1 title */
	.title {
	  left: 5%;
	  width: 35%;
	  opacity: 0;
	  top: 60%;
	  z-index: 50;
	  font-size:55px;
	}

	.animate-in .title {
	  left: 15%;
	  opacity: 1;
	}

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

	/* Heading h2-subtitle */
	.subtitle {
	  left: 35%;
	  width: 50%;
	  opacity: 0;
	  top: 70%;
	  font-size:30px;
	}

	.animate-in .subtitle {
	  left: 15%;
	  opacity: 1;
	}

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

	/* Heading supportive subtitle */
	.supportive-subtitle {
	  left: 10%;
	  width: 45%;
	  opacity: 0;
	  top: 82%;
	  font-size:15px;
	}

	/* First CTA button */
	.cta1 {
	top:90%;
	left:00%;
	}

	.animate-in .cta1 {
	left:23%;
	}

	.animate-out .cta1 {
	left:10%;
	}

	/* Second CTA button */
	.cta2 {
	top:105%;
	left:30%;
	}
	
	.animate-in .cta2 {
	left:22%;
	}
	
	.animate-out .cta2 {
	left:10%;
	}

	/* images in slider */
	.model {
	max-height: 480px !important;
	width: 40%;
	}

	#sequence {
	height: 500px;
	}

	#sequence .sequence-next,
	#sequence .sequence-prev {
	height: 60px;
	margin-top: -40px;
	}

}


@media only screen and (max-width: 568px) {
	/* Images in slider */
	.model {
	left: 85%;
	min-width: 40%;
	/*prevents the model from shrinking when the browser is resized*/
	width: 50%;
	top:60%;
	}

	.animate-in .model {
	left: 80%;
	margin-left: -20%;
	}

	.animate-out .model {
	left: 65%;
	margin-left: -20%;
	}

	/* Heading tag h1 title */
	.title {
	top: 60%;
	left: 20%;
	width: 80%;
	z-index: 10;
	font-size:45px;
	}

	.animate-in .title {
	left: 10%;
	}

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

	/* Heading tag h2 subtitle */
	.subtitle {
	left: 15%;
	width: 80%;
	opacity: 0;
	top: 70%;
	font-size:25px;
	}

	.animate-in .subtitle {
	left: 10%;
	opacity: 1;
	}

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

	/* Heading tag h5 supprotive subtitle */
	.supportive-subtitle {
	left: 15%;
	width:80%;
	opacity: 0;
	top: 80%;
	font-size:15px;
	}

	.animate-in .supportive-subtitle {
	left: 10%;
	opacity: 1;
	}

	.animate-out .supportive-subtitle {
	left: 5%;
	opacity: 0;
	}
	
	/* First CTA button */
	.cta1 {
	top:92%;
	left:00%;
	}
	
	.animate-in .cta1 {
	left:18%;
	}
	
	.animate-out .cta1 {
	left:10%;
	}

	
	/* Second CTA button */
	.cat2 {
	top:107%;
	left:30%;
	}
	
	.animate-in .cta2 {
	left:18%;
	}
	
	.animate-out .cta2 {
	left:10%;
	}

	
	/* slider */
	#sequence .sequence-pagination {
	bottom: 40px;
	}
	#sequence .sequence-pagination li img {
	height: 100px;
	}
}

@media only screen and (max-width: 518px) {
	#sequence {
	height: 450px;
	}
}

@media only screen and (max-width: 468px) {
	#sequence {
	height: 415px;
	}
	
	#sequence .sequence-pagination {
	opacity: 0;
	visibility: hidden;
	}
}

@media only screen and (max-width: 418px) {
	#sequence {
	height: 375px;
	}
}

@media only screen and (max-width: 368px) {
	#sequence {
	height: 325px;
	}
}

@media only screen and (max-width: 320px) and (orientation: portrait) {
  /*iphone portrait*/
	#sequence {
	height: 320px;
	}
	#sequence .model {
	min-width: 45%;
	width: 45%;
	}
	#sequence .animate-in .model {
	margin-left: -22.5%;
	}
	#sequence .animate-out .model {
	margin-left: -22.5%;
	}
}

@media only screen and (min-width: 321px) and (max-width: 480px) and (orientation: landscape) {
	#sequence {
	height: 260px;
	}

	.model {
	min-width: 24%;
	width: 50%;
	}
	
	.animate-in .model {
	left: 14.5%;
	margin-left: 0;
	}
	
	.animate-out .model {
	left: 14.5%;
	margin-left: 0;
	}
	
	#sequence .sequence-pagination {
	right: 17.5%;
	}
}
