/* Slider > Front Page & Portfolio Slider */
html { height: 100%!important; }
#page, #content {
	width: 100%;
	height: 100%;
	position: absolute;
}
.sl-slider-wrapper {
	background: #f0f0f0;
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	overflow: hidden;
}
.sl-slider {
	position: absolute;
	top: 0;
	left: 0;
}

/* Slide Wrapper and Slides */
.sl-slide,
.sl-slides-wrapper,
.sl-slide-inner {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
} 
.sl-slide {
	z-index: 1;
}

/* Duplicate Slices */
.sl-content-slice {
	overflow: hidden;
	position: absolute;
	-webkit-box-sizing: content-box;
	-moz-box-sizing: content-box;
	box-sizing: content-box;
	background: #fff;
	-webkit-backface-visibility: hidden;
	-moz-backface-visibility: hidden;
	-o-backface-visibility: hidden;
	-ms-backface-visibility: hidden;
	backface-visibility: hidden;
	opacity : 1;
}

/* Horizontal Slice */
.sl-slide-horizontal .sl-content-slice {
	width: 100%;
	height: 50%;
	left: -200px;
	-webkit-transform: translateY(0%) scale(1);
	-moz-transform: translateY(0%) scale(1);
	-o-transform: translateY(0%) scale(1);
	-ms-transform: translateY(0%) scale(1);
	transform: translateY(0%) scale(1);
}
.sl-slide-horizontal .sl-content-slice:first-child {
	top: -200px;
	padding: 200px 200px 0px 200px;
}
.sl-slide-horizontal .sl-content-slice:nth-child(2) {
	top: 50%;
	padding: 0px 200px 200px 200px;
}

/* Vertical Slice */
.sl-slide-vertical .sl-content-slice {
	width: 50%;
	height: 100%;
	top: -200px;
	-webkit-transform: translateX(0%) scale(1);
	-moz-transform: translateX(0%) scale(1);
	-o-transform: translateX(0%) scale(1);
	-ms-transform: translateX(0%) scale(1);
	transform: translateX(0%) scale(1);
}
.sl-slide-vertical .sl-content-slice:first-child {
	left: -200px;
	padding: 200px 0px 200px 200px;
}
.sl-slide-vertical .sl-content-slice:nth-child(2) {
	left: 50%;
	padding: 200px 200px 200px 0px;
}

/* Content Wrapper */
.sl-content-wrapper {
	position: absolute;
}
.sl-content {
	width: 100%;
	height: 100%;
	background: #f0f0f0;
}

/* Content Elements */
.sl-slide h2,
.sl-title h2 {
	text-shadow: 0 0 3px rgba(0,0,0,.5);
	position: absolute;
	font-size: 24px;
	letter-spacing: 2px;
	text-transform: uppercase;
	width: 80%;
	left: 10%;
	text-align: center;
	bottom: 12%;
	margin: 0;
	color: #fff;
	z-index: 2;
}
.sl-slide h2 a {
	color: #fff;
}
.sl-slide h2 a:hover {
	text-decoration: none;
	opacity: .6;
}
.sl-slide p,
.sl-title p {
	text-shadow: 0 0 1px rgba(0,0,0,.5);
	letter-spacing: 1px;
	position: absolute;
	width: 100%;
	text-align: center;
	left: 0;
	font-weight: 400;
	font-size: 13px;
	color: #999;
	z-index: 2;
	bottom: 8%;
	margin: 0;
	padding: 0;
}
.sl-title h2,
.sl-title p {
	z-index: 9999!important;
}
.sl-title a {
	font-size: 14px;
	text-transform: uppercase;
	padding: .1em .5em;
	cursor: pointer;
	text-shadow: none;
}
.sl-title a span {
	font-weight: 700;
}

/* Overlay Content / Portfolio Single */
.sl-overlay { 
  height: 0;
  width: 100%;
  position: fixed;
  z-index: 99999;
  left: 0;
  bottom: 0;
  background-color: rgb(255,255,255);
  background-color: rgba(255,255,255,.75);
  overflow-x: hidden;
  transition: 0.5s;
}
/* Scrollbar Custom */
.sl-overlay::-webkit-scrollbar {
	width: 10px;
}
.sl-overlay::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 3px rgba(0,0,0,0.2); 
  -webkit-border-radius: 5px;
  border-radius: 5px;
}
.sl-overlay::-webkit-scrollbar-thumb {
  -webkit-border-radius: 5px;
  border-radius: 5px;
  background: rgba(0,0,0,0.6); 
  -webkit-box-shadow: inset 0 0 3px rgba(0,0,0,0.2); 
}
.sl-overlay::-webkit-scrollbar-thumb:window-inactive {
	background: rgba(0,0,0,0.4); 
}
.sl-overlay-content {
  position: relative;
  top: 80px;
  width: 62%;
  margin: 0 auto 5%;
  text-align: center;
}
.sl-overlay .close {
  position: absolute;
  top: 80px;
  right: 60px;
  line-height: 72px;
  font-size: 44px;
  z-index: 999999;
}
.sl-overlay-content h1 {
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1em;
  letter-spacing: 2px;
  color: #316978;
}
.sl-overlay-content p {
  font-size: 14px;
  margin-bottom: .5em;
}
.sl-description p {
  font-size: 12px;
}

/* Background IMG */
#slider .bg-img {
	-webkit-box-sizing: content-box;
	-moz-box-sizing: content-box;
	box-sizing: content-box;
	position: absolute;
	width: 100%;
	height: 100%;
	-webkit-background-size: contain;
	-moz-background-size: contain;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center center;
	background-color: #f0f0f0;
}
body.home #slider .bg-img {
	-webkit-background-size: cover!important;
	-moz-background-size: cover!important;
	background-size: cover!important;
}

/* Arrows */
.nav-arrows span {
	position: absolute;
	z-index: 9999;
	top: 56%;
	width: 20px;
	height: 20px;
	border: 4px solid rgba(210,210,210,1);
	text-indent: -90000px;
	margin-top: -40px;
	cursor: pointer;
	-webkit-transform: rotate(45deg);
	-moz-transform: rotate(45deg);
	-o-transform: rotate(45deg);
	-ms-transform: rotate(45deg);
	transform: rotate(45deg);
}
.nav-arrows span:hover {
	border-color: rgba(210,210,210,0.8);
}
.nav-arrows span.nav-arrow-prev {
	left: 5%;
	border-right: none;
	border-top: none;
}
.nav-arrows span.nav-arrow-next {
	right: 5%;
	border-left: none;
	border-bottom: none;
}

/* Dots */
.nav-dots {
	text-align: center;
	position: absolute;
	bottom: 0.5%;
	height: 30px;
	width: 100%;
	left: 0;
	z-index: 9999;
}
.nav-dots span {
	display: inline-block;
	position: relative;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	margin: 3px;
	background: #ddd;
	background: rgba(255,255,255,.9);
	cursor: pointer;
}
.nav-dots span.nav-dot-current {
	background: rgba(255,255,255,.2);
}
.nav-dots span.nav-dot-current:after {
	content: "";
	position: absolute;
	width: 6px;
	height: 6px;
	top: 2px;
	left: 2px;
	border-radius: 50%;
	background: #256d7b;
}

/* Media Queries for Slider / Overlay */
@media screen and (max-width: 768px) {

	.sl-overlay-content {
		width: 90%;
	}
	.sl-overlay .close {
	  right: 10px;
	}
	.sl-overlay-content p {
	  font-size: 12px;
	  margin-bottom: .25em;
	}

}

/* Animations for content elements */
.sl-trans-elems .sl-slide-inner h2 {
	-webkit-animation: moveUp 1s ease-in-out both;
	-moz-animation: moveUp 1s ease-in-out both;
	-o-animation: moveUp 1s ease-in-out both;
	-ms-animation: moveUp 1s ease-in-out both;
	animation: moveUp 1s ease-in-out both;
}
.sl-trans-elems .sl-slide-inner p {
	-webkit-animation: fadeIn 0.5s linear 0.5s both;
	-moz-animation: fadeIn 0.5s linear 0.5s both;
	-o-animation: fadeIn 0.5s linear 0.5s both;
	-ms-animation: fadeIn 0.5s linear 0.5s both;
	animation: fadeIn 0.5s linear 0.5s both;
}

.sl-trans-back-elems .sl-slide-inner h2 {
	-webkit-animation: fadeOut 1s ease-in-out both;
	-moz-animation: fadeOut 1s ease-in-out both;
	-o-animation: fadeOut 1s ease-in-out both;
	-ms-animation: fadeOut 1s ease-in-out both;
	animation: fadeOut 1s ease-in-out both;
}
.sl-trans-back-elems .sl-slide-inner p {
	-webkit-animation: fadeOut 1s linear both;
	-moz-animation: fadeOut 1s linear both;
	-o-animation: fadeOut 1s linear both;
	-ms-animation: fadeOut 1s linear both;
	animation: fadeOut 1s linear both;
}

@-webkit-keyframes moveUp {
	0% {-webkit-transform: translateY(40px);}
	100% {-webkit-transform: translateY(0px);}
}
@-moz-keyframes moveUp {
	0% {-moz-transform: translateY(40px);}
	100% {-moz-transform: translateY(0px);}
}
@-o-keyframes moveUp {
	0% {-o-transform: translateY(40px);}
	100% {-o-transform: translateY(0px);}
}
@-ms-keyframes moveUp {
	0% {-ms-transform: translateY(40px);}
	100% {-ms-transform: translateY(0px);}
}
@keyframes moveUp {
	0% {transform: translateY(40px);}
	100% {transform: translateY(0px);}
}
@-webkit-keyframes fadeIn {
	0% {opacity: 0;}
	100% {opacity: 1;}
}
@-moz-keyframes fadeIn {
	0% {opacity: 0;}
	100% {opacity: 1;}
}
@-o-keyframes fadeIn{
	0% {opacity: 0;}
	100% {opacity: 1;}
}
@-ms-keyframes fadeIn {
	0% {opacity: 0;}
	100% {opacity: 1;}
}
@keyframes fadeIn {
	0% {opacity: 0;}
	100% {opacity: 1;}
}
@-webkit-keyframes scaleDown {
	0% {-webkit-transform: scale(1);}
	100% {-webkit-transform: scale(0.5);}
}
@-moz-keyframes scaleDown {
	0% {-moz-transform: scale(1);}
	100% {-moz-transform: scale(0.5);}
}
@-o-keyframes scaleDown {
	0% {-o-transform: scale(1);}
	100% {-o-transform: scale(0.5);}
}
@-ms-keyframes scaleDown {
	0% {-ms-transform: scale(1);}
	100% {-ms-transform: scale(0.5);}
}
@keyframes scaleDown {
	0% {transform: scale(1);}
	100% {transform: scale(0.5);}
}
@-webkit-keyframes fadeOut {
	0% {opacity: 1;}
	100% {opacity: 0;}
}
@-moz-keyframes fadeOut {
	0% {opacity: 1;}
	100% {opacity: 0;}
}
@-o-keyframes fadeOut {
	0% {opacity: 1;}
	100% {opacity: 0;}
}
@-ms-keyframes fadeOut {
	0% {opacity: 1;}
	100% {opacity: 0;}
}
@keyframes fadeOut {
	0% {opacity: 1;}
	100% {opacity: 0;}
}
