@import url(https://fonts.googleapis.com/css?family=Questrial|Playfair+Display:400,700);

@font-face {
    font-weight: normal;
    font-style: normal;
    font-family: 'codropsicons';
    src: url('../fonts/codropsicons/codropsicons.eot');
    src: url('../fonts/codropsicons/codropsicons.eot?#iefix') format('embedded-opentype'), url('../fonts/codropsicons/codropsicons.woff') format('woff'), url('../fonts/codropsicons/codropsicons.ttf') format('truetype'), url('../fonts/codropsicons/codropsicons.svg#codropsicons') format('svg');
}

*, *:after, *:before {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.clearfix:before, .clearfix:after {
    display: table;
    content: '';
}

.clearfix:after {
    clear: both;
}

body { /*background: #fff;	color: #333;	font-size: 1em;	font-family: 'Questrial', 'Avenir', 'Helvetica Neue', Helvetica, Arial, sans-serif;*/
}

a {
    outline: none;
    color: rgb(160, 148, 147);
    text-decoration: none;
}

a:hover, a:focus {
    color: rgb(197, 135, 130);
}

.mobile-note {
    position: absolute;
    bottom: 1em;
    color: #fff;
    font-size: 1.15em;
    text-align: center;
    width: 100%;
    padding: 1em;
    background: #fb7f93;
    display: none;
    font-family: 'Avenir', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Header */
.codrops-header {
    text-align: center;
    height: 100vh;
    overflow: hidden;
    background: url(../img/1.jpg) no-repeat center center;
    background-size: auto 100vh;
}

.codrops-header h1 {
    margin: 0.5em 0 0;
    letter-spacing: -1px;
    font-weight: 400;
    font-size: 4.25em;
    line-height: 1;
    position: absolute;
    width: 100%;
    top: 25vh;
    color: #fff;
    pointer-events: none;
    font-family: 'Playfair Display', Georgia, serif;
}

.codrops-header h1 span {
    display: block;
    padding: 2em 0 1em;
    color: #3a3231;
    font-size: 0.2em;
    text-transform: uppercase;
    font-weight: 400;
    letter-spacing: 3px;
    text-shadow: none;
    font-family: 'Questrial', 'Avenir', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.github-link {
    font-size: 0.95em;
    position: absolute;
    right: 60px;
    top: 22px;
}

.github-link span {
    margin: 0 0 0 5px;
}

.hero {
    position: absolute;
    top: 60px;
    left: 60px;
    bottom: 60px;
    right: 60px;
    overflow: hidden;
}

.hero__imgwrap {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero__imgwrap::after {
    content: '';
    position: absolute;
    background: rgba(76, 0, 1, 0.1);
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero__img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: auto;
    height: 100vh;
    -webkit-transform: translate3d(-50%, -50%, 0);
    transform: translate3d(-50%, -50%, 0);
}

.hero__imgwrap .tilt__back, .hero__imgwrap .tilt__front {
    background-size: auto 100vh;
}

/* Top Navigation Style */
.codrops-links {
    position: absolute;
    z-index: 1000;
    display: inline-block;
    text-align: center;
    font-size: 0.85em;
    white-space: nowrap;
    left: 60px;
    top: 15px;
}

.codrops-links::after {
    position: absolute;
    top: 0;
    left: 51%;
    width: 1px;
    height: 100%;
    background: rgba(160, 148, 147, 0.5);
    content: '';
    -webkit-transform: rotate3d(0, 0, 1, 22.5deg);
    transform: rotate3d(0, 0, 1, 22.5deg);
}

.codrops-icon {
    display: inline-block;
    margin: 0.5em;
    padding: 0em 0;
    width: 1.5em;
    text-decoration: none;
}

.codrops-icon span {
    display: none;
}

.codrops-icon:before {
    margin: 0 5px;
    text-transform: none;
    font-weight: normal;
    font-style: normal;
    font-variant: normal;
    font-family: 'codropsicons';
    line-height: 1;
    speak: none;
    -webkit-font-smoothing: antialiased;
}

.codrops-icon--drop:before {
    content: "\e001";
}

.codrops-icon--prev:before {
    content: "\e004";
}

/* Content */
.content {
    padding: 4em 0 2em;
}

.content > p {
    max-width: 900px;
    margin: 1em auto;
    padding: 1em 0.5em 0;
}

.content p > code {
    background: #ddd;
    display: inline-block;
    padding: 0.25em 0.5em;
    border-radius: 3px;
}

.content--color-alt {
    background: #EDE8DA;
    color: #A39C88;
}

.poster-headline {
    text-align: center;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.65em;
    font-weight: 400;
    margin: 0.25em 0 0.5em;
}

.poster-text {
    font-size: 1.15em;
    text-align: center;
    padding: 1em 0;
    max-width: 1000px;
    margin: 0 auto;
    line-height: 1.5;
    max-width: 800px;
}

/* Grid */
.grid {
    position: relative; /* display: -webkit-flex; */
    display: -ms-flexbox; /* display: flex; */
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-justify-content: center;
    -ms-justify-content: center;
    justify-content: center;
    list-style: none;
    padding: 5px 0 0 0;
    margin: 0 auto;
    max-width: 1020px;
}

.grid__item { /* margin: 0 65px 100px; */
    width: 100%;
}

.grid--xray .grid__item { /* margin: 0 20px 20px; */
    width: 300px;
}

.grid__item-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1em;
    padding: 1em 0;
    font-weight: bold;
}

.grid__item-title code {
    color: #aaa;
    font-weight: normal;
    font-size: 0.85em;
}

.grid--xray .grid__img {
    width: 300px;
    height: 300px;
}

.grid__img img {
    max-width: 100%;
    display: block;
}

.grid__img--border .tilt__back, .grid__img--border .tilt__front {
    border: 1px solid #333;
}

.grid__img--border .tilt {
    overflow: visible;
}

/* Examples custom styles */
.grid--examples {
    max-width: 830px;
}

.grid--examples .grid__img {
    position: relative;
    height: 0;
    padding-bottom: 66.714%;
    overflow: hidden;
}

.grid--examples .tilt {
    position: absolute;
    top: 0;
}

.grid__img--example-2::after {
    content: '';
    position: absolute;
    box-shadow: inset 0 0 50px 30px rgba(2, 0, 37, 0.8);
    pointer-events: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.grid__img--example-3 .tilt {
    -webkit-filter: grayscale(100%) brightness(105%) contrast(120%);
    filter: grayscale(100%) brightness(105%) contrast(120%);
    -webkit-transition: filter 0.5s, -webkit-filter 0.5s;
    transition: filter 0.5s, -webkit-filter 0.5s;
}

.grid__img--example-3 .tilt:hover {
    -webkit-filter: none;
    filter: none;
}

.grid__img--example-4 .tilt {
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
}

/* Definition list */
.def-list {
    max-width: 900px;
    background: #f0f0f0;
    border-radius: 10px;
    margin: 1em auto;
    padding: 3%;
}

.def-list dt {
    font-family: 'Avenir', 'Helvetica', Arial, sans-serif;
}

.def-list dt:not(:first-child) {
    margin-top: 2em;
}

.def-list dd {
    margin: 0;
    font-size: 0.95em;
    line-height: 1.4;
}

/* Related demos */
.content--related {
    text-align: center;
    font-weight: bold;
    padding: 8em 0;
}

.media-item {
    display: inline-block;
    padding: 1em;
    vertical-align: top;
    -webkit-transition: color 0.3s;
    transition: color 0.3s;
}

.media-item__img {
    max-width: 100%;
    opacity: 0.7;
    -webkit-transition: opacity 0.3s;
    transition: opacity 0.3s;
}

.media-item:hover .media-item__img, .media-item:focus .media-item__img {
    opacity: 1;
}

.media-item__title {
    margin: 0;
    padding: 0.5em;
    font-size: 1em;
}

@media screen and (min-aspect-ratio: 1440/960) {
    .hero__imgwrap .tilt__back, .hero__imgwrap .tilt__front, .codrops-header {
        background-size: 100vw auto;
    }

    .hero__img {
        width: 100vw;
        height: auto;
    }
}

@media screen and (max-width: 40em) {
    .codrops-header h1 {
        font-size: 2.5em;
    }

    .hero {
        left: 20px;
        bottom: 20px;
        right: 20px;
    }

    .mobile-note {
        display: block;
    }
}

ul.grid.grid--xray {
    list-style-type: none;
}


figure {
    width: 300px;
    height: 200px;
    margin: 0;
    padding: 0;
    background: #fff;
    overflow: hidden;
}
figure:hover+span {
    bottom: -36px;
    opacity: 1;
}



/* Zoom In #1 */
.zoomin figure img {
    -webkit-transform: scale(1);
    transform: scale(1);
    -webkit-transition: .3s ease-in-out;
    transition: .3s ease-in-out;
}
.zoomin figure:hover img {
    -webkit-transform: scale(1.3);
    transform: scale(1.3);
}

/* Zoom In #2 */
.hover02 figure img {
    width: 300px;
    height: auto;
    -webkit-transition: .3s ease-in-out;
    transition: .3s ease-in-out;
}
.hover02 figure:hover img {
    width: 350px;
}

/* Zoom Out #1 */
.zoomout figure img {
    -webkit-transform: scale(1.5);
    transform: scale(1.5);
    -webkit-transition: .3s ease-in-out;
    transition: .3s ease-in-out;
}
.zoomout figure:hover img {
    -webkit-transform: scale(1);
    transform: scale(1);
}

/* Zoom Out #2 */
.hover04 figure img {
    width: 400px;
    height: auto;
    -webkit-transition: .3s ease-in-out;
    transition: .3s ease-in-out;
}
.hover04 figure:hover img {
    width: 300px;
}

/* Slide */
.slide figure img {
    margin-left: 30px;
    -webkit-transform: scale(1.5);
    transform: scale(1.5);
    -webkit-transition: .3s ease-in-out;
    transition: .3s ease-in-out;
}
.slide figure:hover img {
    margin-left: 0;
}

/* Rotate */
.rotatezoomout figure img {
    -webkit-transform: rotate(15deg) scale(1.4);
    transform: rotate(15deg) scale(1.4);
    -webkit-transition: .3s ease-in-out;
    transition: .3s ease-in-out;
}
.rotatezoomout figure:hover img {
    -webkit-transform: rotate(0) scale(1);
    transform: rotate(0) scale(1);
}

/* Blur */
.blur figure img {
    -webkit-filter: blur(3px);
    filter: blur(3px);
    -webkit-transition: .3s ease-in-out;
    transition: .3s ease-in-out;
}
.blur figure:hover img {
    -webkit-filter: blur(0);
    filter: blur(0);
}

/* Gray Scale */
.grayscale figure img {
    -webkit-filter: grayscale(100%);
    filter: grayscale(100%);
    -webkit-transition: .3s ease-in-out;
    transition: .3s ease-in-out;
}
.grayscale figure:hover img {
    -webkit-filter: grayscale(0);
    filter: grayscale(0);
}

/* Sepia */
.sepia figure img {
    -webkit-filter: sepia(100%);
    filter: sepia(100%);
    -webkit-transition: .3s ease-in-out;
    transition: .3s ease-in-out;
}
.sepia figure:hover img {
    -webkit-filter: sepia(0);
    filter: sepia(0);
}

/* Blur + Gray Scale */
.blurgrayscale figure img {
    -webkit-filter: grayscale(0) blur(0);
    filter: grayscale(0) blur(0);
    -webkit-transition: .3s ease-in-out;
    transition: .3s ease-in-out;
}
.blurgrayscale figure:hover img {
    -webkit-filter: grayscale(100%) blur(3px);
    filter: grayscale(100%) blur(3px);
}

/* Opacity #1 */
.opacity figure img {
    opacity: 1;
    -webkit-transition: .3s ease-in-out;
    transition: .3s ease-in-out;
}
.opacity figure:hover img {
    opacity: .5;
}

/* Opacity #2 */
.opacityblue figure {
    background: #1abc9c;
}
.opacityblue figure img {
    opacity: 1;
    -webkit-transition: .3s ease-in-out;
    transition: .3s ease-in-out;
}
.opacityblue figure:hover img {
    opacity: .5;
}

/* Flashing */
.flash figure:hover img {
    opacity: 1;
    -webkit-animation: flash 1.5s;
    animation: flash 1.5s;
}
@-webkit-keyframes flash {
    0% {
        opacity: .4;
    }
    100% {
        opacity: 1;
    }
}
@keyframes flash {
    0% {
        opacity: .4;
    }
    100% {
        opacity: 1;
    }
}

/* Shine */
.shine figure {
    position: relative;
}
.shine figure::before {
    position: absolute;
    top: 0;
    left: -75%;
    z-index: 2;
    display: block;
    content: '';
    width: 50%;
    height: 100%;
    background: -webkit-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,.3) 100%);
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,.3) 100%);
    -webkit-transform: skewX(-25deg);
    transform: skewX(-25deg);
}
.shine figure:hover::before {
    -webkit-animation: shine .75s;
    animation: shine .75s;
}
@-webkit-keyframes shine {
    100% {
        left: 125%;
    }
}
@keyframes shine {
    100% {
        left: 125%;
    }
}

/* Circle */
.hover15 figure {
    position: relative;
}
.hover15 figure::before {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: block;
    content: '';
    width: 0;
    height: 0;
    background: rgba(255,255,255,.2);
    border-radius: 100%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    opacity: 0;
}
.hover15 figure:hover::before {
    -webkit-animation: circle .75s;
    animation: circle .75s;
}
@-webkit-keyframes circle {
    0% {
        opacity: 1;
    }
    40% {
        opacity: 1;
    }
    100% {
        width: 200%;
        height: 200%;
        opacity: 0;
    }
}
@keyframes circle {
    0% {
        opacity: 1;
    }
    40% {
        opacity: 1;
    }
    100% {
        width: 200%;
        height: 200%;
        opacity: 0;
    }
}

/** v1.2.2 **/
.wppe-wrapper {
	width: 60%;
	margin: 40px auto;
}

div.wppe-gallery {
	margin-top: 30px;
}

div.wppe-gallery ul {
	list-style-type: none;
	margin-left: 35px;
}

/* animation */
div.wppe-gallery ul li, div.wppe-gallery li img {
	-webkit-transition: all 0.1s ease-in-out;
  	-moz-transition: all 0.1s ease-in-out;
  	-o-transition: all 0.1s ease-in-out;
  	transition: all 0.1s ease-in-out;
}

div.wppe-gallery ul li {
	position: relative;
	float: left;
	width: 130px;
	height: 130px;
	margin: 5px;
	padding: 5px;
	z-index: 0;
	list-style-type: none;
}

/* Make sure z-index is higher on hover */
/* Ensure that hover image overlapped the others */
div.wppe-gallery ul li:hover {
	z-index: 5;
}

/* Image is position nicely under li */
div.wppe-gallery ul li img {
	position: absolute;
	left: 0;
	top: 0;
	border: 1px solid #dddddd;
	padding: 5px;
	width: 130px;
	height: 130px;
	background: #f0f0f0;
}

div.wppe-gallery ul li img:hover {
	width: 200px;
	height: 200px;
	margin-top: -130px;
	margin-left: -130px;
	top: 65%;
	left: 65%;
    max-width: none;
}

p.attribution {
	font-family: 'Consolas';
	color: #000;
	clear: both;
	text-align: center;
	line-height: 25px;
	padding-top: 30px;
}

p.attribution a {
	color: #4c8d7c;
}

/* Responsive hack */
@media only screen and (min-width: 499px) and (max-width: 1212px) {
	.wppe-wrapper {
		width: 500px;
	}
}

@media only screen and (max-width: 498px) {
	.wppe-wrapper {
		width: 300px;
	}

	div.wppe-gallery ul {
		list-style-type: none;
		margin: 0;
	}
}

/** Gradient Hover Effect **/
.wppe-gradient-effect {
  background: #000;
  background: -moz-linear-gradient(-45deg, #000000 0%, #000000 25%, #1e539e 50%, #ff3083 75%, #7800a8 100%); /* FF3.6-15 */
background: -webkit-linear-gradient(-45deg, #000000 0%,#000000 25%,#1e539e 50%,#ff3083 75%,#7800a8 100%); /* Chrome10-25,Safari5.1-6 */
background: linear-gradient(135deg, #000000 0%,#000000 25%,#1e539e 50%,#ff3083 75%,#7800a8 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  background-size: 400% 400%;
  background-repeat: no-repeat;
  display: flex;
  width: 500px;
  height: 500px;
  max-width: 100vw;
  max-height: 100vh;
  justify-content: center;
  align-items: center;
  color: #fff;
  position: relative;
  cursor: pointer;
  transition: .5s all;
}
  
.wppe-gradient-effect__img {
    position: absolute;
    left: 0;
    top: 0;
    background: #000 url(https://images.unsplash.com/photo-1466657718950-8f9346c04f8f?dpr=1&auto=format&fit=crop&w=800&h=800&q=80&cs=tinysrgb) no-repeat center center;
  background-size: cover;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: .5;
    mix-blend-mode: screen;
  }
  
.wppe-gradient-effect__title {
    position: relative;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: .05em;
  }
  
.wppe-gradient-effect:hover {
    background-position: 100% 100%;
}
.wppe-gradient-effect__title {
  text-shadow: 0 0 20px rgba(0,0,0,1);
}

/**
Image hover effect with icon and split caption
**/
@import url(https://fonts.googleapis.com/css?family=Raleway:400,800);
@import url(https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css);
figure.wppe {
  font-family: 'Raleway', Arial, sans-serif;
  color: #fff;
  position: relative;
  overflow: hidden;
  margin: 10px;
  min-width: 220px;
  max-width: 310px;
  max-height: 220px;
  width: 100%;
  background: #000000;
}
figure.wppe img {
  opacity: 1;
  width: 100%;
  position: relative;
  -webkit-transition: opacity 0.35s;
  transition: opacity 0.35s;
}
figure.wppe .center {
  border-radius: 5px;
  display: block;
  content: '';
  position: absolute;
  background-color: #000;
  top: 50%;
  left: 50%;
  height: 70px;
  width: 70px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.85);
  opacity: 0;
  text-align: center;
  -webkit-transform: translate(-50%, -50%) rotate(0deg);
  transform: translate(-50%, -50%) rotate(0deg);
  -webkit-transition: all 0.4s;
  transition: all 0.4s;
}
figure.wppe .center i {
  font-size: 38px;
  padding: 6px;
  color: #ffffff;
  line-height: 70px;
  opacity: 0.3;
}
figure.wppe figcaption {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-align: left;
}
figure.wppe figcaption > div {
  float: left;
  height: 100%;
  overflow: hidden;
  width: 50%;
  position: relative;
}
figure.wppe figcaption a {
  opacity: 0.7;
}
figure.wppe figcaption a:hover {
  opacity: 1;
}
figure.wppe figcaption h3 {
  background-color: #222;
  word-spacing: -0.1em;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1em;
  opacity: 0;
  position: absolute;
  -webkit-transition: opacity 0.45s, -webkit-transform 0.45s;
  transition: opacity 0.45s,-webkit-transform 0.45s,-moz-transform 0.45s,-o-transform 0.45s,transform 0.45s;
}
figure.wppe figcaption .left h3 {
  border-radius: 5px 0 0 5px;
  top: 50%;
  padding: 4px 35px 4px 10px;
  right: 0;
  -webkit-transform: translate(100%, 0px);
  transform: translate(100%, 0px);
}
figure.wppe figcaption .right h3 {
  border-radius: 0 5px 5px 0;
  bottom: 50%;
  padding: 4px 10px 4px 35px;
  padding-left: 30px;
  -webkit-transform: translate(-100%, 0px);
  transform: translate(-100%, 0px);
}
figure.wppe a {
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  position: absolute;
}
figure.wppe .red {
  background-color: #8c212a;
}
figure.wppe .yellow {
  background-color: #945600;
}
figure.wppe .white {
  background-color: #ffffff;
  color: #444444;
}
figure.wppe:hover img,
figure.wppe.hover img {
  opacity: 0.5;
}
figure.wppe:hover figcaption .left h3,
figure.wppe.hover figcaption .left h3 {
  opacity: 1;
  -webkit-transform: translate(0%, 0px);
  transform: translate(0%, 0px);
}
figure.wppe:hover figcaption .right h3,
figure.wppe.hover figcaption .right h3 {
  opacity: 1;
  -webkit-transform: translate(0%, 0px);
  transform: translate(0%, 0px);
}
figure.wppe:hover .center,
figure.wppe.hover .center {
  opacity: 1;
  -webkit-transform: translate(-50%, -50%) rotate(45deg);
  transform: translate(-50%, -50%) rotate(45deg);
}
figure.wppe:hover .center i,
figure.wppe.hover .center i {
  -webkit-transform: translate(0%, -10px);
  transform: translate(0%, -10px);
}