/*
*  CSS Image Tools
*/

@import "variables.less";

/*** Kenburn Animations ***/
@-webkit-keyframes kenburns-to-left-top {
    0% {
      opacity: 0;
    }
    5% {
      opacity: 1;
    }
    95% {
        -webkit-transform: scale3d(1.5, 1.5, 1.5) translate3d(-190px, -120px, 0px);
        animation-timing-function: ease-in;
        opacity: 1;
    }
    100% {
        -webkit-transform: scale3d(2, 2, 2) translate3d(-170px, -100px, 0px);
        opacity: 0;
    }
}
@keyframes kenburns-to-left-top {
    0% {
      opacity: 0;
    }
    5% {
      opacity: 1;
    }
    95% {
        transform: scale3d(1.5, 1.5, 1.5) translate3d(-190px, -120px, 0px);
        animation-timing-function: ease-in;
        opacity: 1;
    }
    100% {
        transform: scale3d(2, 2, 2) translate3d(-170px, -100px, 0px);
        opacity: 0;
    }
}
@-webkit-keyframes kenburns-to-top {
	0% { opacity:0;-webkit-transform:translate(0,0%) scale(1) rotate(0.02deg); }
	5% { opacity:1; }
	10% { opacity:1;-webkit-transform:translate(0,-8%) scale(1) rotate(0.02deg); }
	30% { opacity:1;-webkit-transform:translate(0,-16%) scale(1) rotate(0.02deg); }
	50% { opacity:1;-webkit-transform:translate(0,-24%) scale(1) rotate(0.02deg); }
	70% { opacity:1;-webkit-transform:translate(0,-32%) scale(1) rotate(0.02deg); }
	90% { opacity:1;-webkit-transform:translate(0,-40%) scale(1) rotate(0.02deg); }
	100% { opacity:0;-webkit-transform:translate(0,-40%) scale(1) rotate(0.02deg); }
}
@keyframes kenburns-to-top {
	0% { opacity:0;transform:translate(0,0%) scale(1) rotate(0.02deg); }
	5% { opacity:1; }
	10% { opacity:1;transform:translate(0,-8%) scale(1) rotate(0.02deg); }
	30% { opacity:1;transform:translate(0,-16%) scale(1) rotate(0.02deg); }
	50% { opacity:1;transform:translate(0,-24%) scale(1) rotate(0.02deg); }
	70% { opacity:1;transform:translate(0,-32%) scale(1) rotate(0.02deg); }
	90% { opacity:1;transform:translate(0,-40%) scale(1) rotate(0.02deg); }
	100% { opacity:0;transform:translate(0,-40%) scale(1) rotate(0.02deg); }
}
@-webkit-keyframes kenburns-zoom {
  from {
  	transform: scale(0.9);
    -ms-transform: scale(0.9); /* IE 9 */
    -webkit-transform: scale(0.9); /* Safari and Chrome */
    -o-transform: scale(0.9); /* Opera */
    -moz-transform: scale(0.9); /* Firefox */
  }
  to {
  	transform: scale(1.0);
    -ms-transform: scale(1.0); /* IE 9 */
    -webkit-transform: scale(1.4); /* Safari and Chrome */
    -o-transform: scale(1.0); /* Opera */
    -moz-transform: scale(1.0); /* Firefox */
  }
}
@keyframes kenburns-zoom {
  from {
  	transform: scale(0.9);
    -ms-transform: scale(0.9); /* IE 9 */
    -webkit-transform: scale(0.9); /* Safari and Chrome */
    -o-transform: scale(0.9); /* Opera */
    -moz-transform: scale(0.9); /* Firefox */
  }
  to {
  	transform: scale(1.0);
    -ms-transform: scale(1.0); /* IE 9 */
    -webkit-transform: scale(1.4); /* Safari and Chrome */
    -o-transform: scale(1.0); /* Opera */
    -moz-transform: scale(1.0); /* Firefox */
  }
}

.kenburns-image {
	background-color: @font-color;
	position: relative;
	overflow: hidden;
	border: 2px @font-color solid;
}
.kenburns-image.left-top img {
	-ms-animation: kenburns-to-left-top 20s infinite;
	-webkit-animation: kenburns-to-left-top 20s infinite;
	-o-animation: kenburns-to-left-top 20s infinite;
	-moz-animation: kenburns-to-left-top 20s infinite;
	animation: kenburns-to-left-top 20s infinite;
}
.kenburns-image.zoom img {
	-ms-animation: kenburns-zoom 10s ease infinite;
	-webkit-animation: kenburns-zoom 10s ease infinite;
	-o-animation: kenburns-zoom 10s ease infinite;
	-moz-animation: kenburns-zoom 10s ease infinite;
	animation: kenburns-zoom 10s ease infinite;
	position: absolute;
	left:-150px;
	top:-150px;
}
.kenburns-image.to-top img {
	-ms-animation: kenburns-to-top 20s linear infinite;
	-webkit-animation: kenburns-to-top linear 20s infinite;
	-o-animation: kenburns-to-top 20s linear infinite;
	-moz-animation: kenburns-to-top 20s linear infinite;
	animation: kenburns-to-top 20s linear infinite;
}

.delay-6s {animation-delay:6s;}
.delay-12s {animation-delay:12s;}
.delay-18s {animation-delay:18s;}
.delay-24s {animation-delay:24s;}
.delay-30s {animation-delay:30s;}

.parallax {
	position: relative;
	box-sizing: border-box;
	box-shadow: 0 -1px 10px rgba(0, 0, 0, .7);
	transform-style: inherit;
}
.parallax:before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left:0;
	right:0;
}
.parallax, .parallax:before {
	background: 50% 50% / cover;
}
.parallax.with-image {
	padding: 25vh 10%;
	min-height: 50vh;
}
.parallax.with-text {
	padding: 40px;
}
.parallax:nth-child(2n) .title-outer {
	margin-left: auto;
	margin-right: 0;  
}
.parallax:nth-child(2n+1) .title-outer {
	margin-left: 0;
	margin-right: auto;
}
.parallax .title-outer {
	width: 50%;
	padding: 5%;
	border-radius: 5px;
	background: rgba(240,230,220, .7);
	box-shadow: 0 0 8px rgba(0, 0, 0, .7);
}
.parallax img {
	position: absolute;
	top: 15%;
	left: 10%;
	width: 320px;
	height: 240px;
	padding: 10px;
	border-radius: 5px;
	background: rgba(240,230,220, .7);
	box-shadow: 0 0 8px rgba(0, 0, 0, .7);
	transition: transform 5s linear;
}
.parallax .img-odd {
	transform: scale(.75) rotate(-5deg);
}
.parallax .img-even {
	transform: scale(.75) rotate(2deg);
	top: 40%;
}

.parallax.first-item {
	text-align: center;
	font-size: 175%;
	color: #fff;
	text-shadow: 0 2px 2px #000;
}
.parallax.major {
	background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: 100%;
}
.parallax.minor {
	transform: translateZ(-1px) scale(1);
	z-index:-1;
}
#title {
	color: #fff;
}
#slide2:hover .img-odd {
	transform: rotate(0.3deg) translate3d(0px, -80px, 0px) scale(1);
}
#slide2:hover .img-even {
	transform: rotate(-0.3deg) translate3d(0px, 80px, 0px) scale(1);
}