/*
Theme Name: BLOOM*IZ TEASER (D4)
Author: Fivement
Version: 1.0.0
Text Domain: bloom-iz-uqr2wq-czs4o
*/

/*--- Reset ---*/

* {
	-webkit-tap-highlight-color: transparent;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}
*:before,
*:after {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}
html,
body {
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
}
body { 
	background-color: #0d0d0d;
	color: #8e8f90;
	font-family: sans-serif; 
	font-size: 13px;
}

/*--- Loader ---*/

.izone-logo {
	border: 1px solid #0d0d0d;
	width: 120px;
	height: 50px;
	margin-left: 4px;
	opacity: 0;
	overflow: hidden;
	position: fixed;
	transition: opacity 0.5s ease-out;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 1;
}
.izone-logo .logo-mask {
	background-image: url('images/izone-logo-mask.png');
	background-size: contain;
	position: absolute;
	top: 0;
	left: 0;
	width: 120px;
	height: 50px;
	transform: translate3d(0,0,0);
	z-index: 2;
}
.izone-logo .logo-gradient {
	background: #e75200;
	background: linear-gradient(90deg, rgba(182,228,188,1) 0%, rgba(231,82,0,1) 70%, rgba(231,82,0,1) 100%);
	width: 1200px;
	height: 46px;
	transform: translate3d(0,0,0);
	position: absolute;
	top: 2px;
	left: 0;
	z-index: 1;
	transition: margin-left 5s cubic-bezier(0.77, 0, 0.175, 1);
}

body.loading .izone-logo {
	opacity: 1;
}
body.init .izone-logo {
	opacity: 0;
}
body.ready .izone-logo {
	display: none;
}
body.loading .izone-logo .logo-gradient,
body.init .izone-logo .logo-gradient,
body.ready .izone-logo .logo-gradient {
	margin-left: -1080px;
}

/*--- canvas ---*/

.canvas {
	width: 200px;
	height: 400px;
	opacity: 0;
	perspective: 400px;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	transition: transform 3s cubic-bezier(0.645, 0.045, 0.355, 1), opacity 2s cubic-bezier(0.895, 0.03, 0.685, 0.22);
	z-index: 10;
}

body.init .canvas,
body.ready .canvas {
	opacity: 1;
}

body.door-opening .canvas {
	pointer-events: none;
}
body.door-opening .canvas,
body.door-opened .canvas {
	transform: translate(-50%, -50%) scale(2.5);
	opacity: 0;
}
body.door-closing .canvas {
	pointer-events: none;
	transform: translate(-50%, -50%);
}

/*--- Cube ---*/

.cube {
	width: 200px;
	height: 400px;
	position: relative;
	transform-style: preserve-3d;
	transform: translateZ(-100px) rotateY(-180deg);
	transition: transform 1s cubic-bezier(0.645, 0.045, 0.355, 1);
}
.cube-face {
	position: absolute;
	width: 200px;
	height: 400px;
	font-size: 40px;
	font-weight: bold;
	color: white;
	text-align: center;
	transform-style: preserve-3d;
	backface-visibility: hidden;
}
.cube-face .wall {
	background-image: url('images/object-door-wall.png');
	background-size: 200px 400px;
	display: block;
	position: absolute;
	width: 200px;
	height: 400px;
	top: 0;
	left: 0;
	z-index: 2;
	pointer-events: none;
}
.cube-face .door {
	background-image: url('images/object-door.png');
	background-size: 150px 336px;
	cursor: pointer;
	display: block;
	position: absolute;
	width: 150px;
	height: 336px;
	left: 50%;
	margin-left: -75px;
	bottom: 3px;
	transition: transform 0.8s;
	transition-delay: transform 0.5s;
	transform-origin: 0;
	z-index: 1;
}
.cube-face.rattling .door {
	animation: rattling-door 1s cubic-bezier(.36,.07,.19,.97) both;
	transform: translate3d(0, 0, 0);
}
.cube-face.opened .door {
	transform: rotateY(105deg);
}
.cube-face .back-face {
	background: #200004;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	transform: rotateY(-180deg) translateZ(1px);
}
.cube-face.rattling .back-face,
.cube-face .back-face.hidden {
	display: none;
}
.cube-face-front { 
	transform: rotateY(0deg) translateZ(100px); 
}
.cube-face-right { 
	transform: rotateY(90deg) translateZ(100px); 
}
.cube-face-back { 
	transform: rotateY(180deg) translateZ(100px); 
}
.cube-face-left { 
	transform: rotateY(-90deg) translateZ(100px); 
}
.cube-face-top { 
	background: #971433; 
	height: 200px; 
	transform: rotateX( 90deg) translateZ(100px); 
}
.cube-face-bottom {
	background: #180003;
	height: 200px;
	transform: rotateX(-90deg) translateZ(299px);
}
.cube-face-top .back-face {
	background: #180003;
}
.cube-face-bottom .front-face .grass {
	background-image: url('images/object-grass.jpg');
	background-size: 300px 300px;
	width: 300px;
	height: 300px;
	position: absolute;
	left: -50px;
	top: -50px;
	transform: translateZ(2px);
}
.cube-face-bottom .back-face {
	background: #180003;
	box-shadow: 0 0 10px rgba(0,0,0,0.9), 0 0 5px rgba(0,0,0,0.9);
	transform: translateZ(1px);
}

@keyframes rattling-door {
  30%, 50% {
    transform: rotateY(2deg);
  }
  
  70% {
	transform: rotateY(1deg);
  }
  
  40%, 60%, 80% {
    transform: rotateY(0);
  }
}

/*--- Controller ---*/

.controller .move-button {
	background-image: url('images/arrow-sprite.png');
	background-size: 160px 40px;
	cursor: pointer;
	width: 40px;
	height: 40px;
	opacity: 0;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0);
	transition: opacity .2s ease-out, transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	z-index: 99999;
}
body.ready .controller .move-button {
	opacity: 0.3;
	transform: translate(-50%, -50%) scale(0.8);
}
body.ready .controller .move-button:hover {
	opacity: 1;
}
.controller .move-right {
	margin-left: 300px;
}
.controller .move-left {
	background-position-x: -40px;
	margin-left: -300px;
}
body.door-opening .controller,
body.door-opened .controller,
body.door-closing .controller {
	display: none;
}

/*--- scene ---*/

.scene {
	opacity: 0;
	overflow: hidden;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-500%, -50%) scale(0.9);
	transition: all 3.5s cubic-bezier(0.165, 0.84, 0.44, 1);
	width: 500px;
	z-index: -1;
}
body.door-opening .scene.active {
	transform: translate(-50%, -50%) scale(0.9);
	transition: none;
}
body.door-opened .scene.active {
	transform: translate(-50%, -50%) scale(1);
	z-index: 99;
	opacity: 1;
}
body.door-closing .scene {
	transform: translate(-50%, -50%) scale(0.9);
	transition: transform 1.5s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
	opacity: 0;
}
body.photo-revealed .scene.active {
	opacity: 0.1;
	transform: translate(-50%, -50%) scale(0.94);
	transition: transform 1.5s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.scene .scene-container {
	position: relative;
	width: 100%;
	height: 0;
	padding-top: 180%;
}
.scene .scene-container .base-layer,
.scene .scene-container .color-layer {
	background-size: cover;
	background-position: center center;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}
.scene .scene-container .base-layer {
	z-index: 100;
}
.scene .scene-container .color-layer {
	transform: translateX(-200%);
	opacity: 0;
	transition: opacity 1.5s cubic-bezier(0.215, 0.61, 0.355, 1);
	z-index: 101;
}
.scene .scene-container .color-layer.painted {
	transform: translateX(0);
	opacity: 1;
}
.scene .scene-container .answer-1 {
	z-index: 111;
}
.scene .scene-container .answer-2 {
	z-index: 112;
}
.scene .scene-container .answer-3 {
	z-index: 113;
}

.scene[data-scene-of="front"] .scene-container .base-layer {
	background-image: url('images/first-scene-base.jpg');
}
.scene[data-scene-of="front"] .scene-container .color-layer[data-color-of="pgmt0"] {
	background-image: url('images/first-scene-pgmt0.png');
}
.scene[data-scene-of="front"] .scene-container .color-layer[data-color-of="j5mqv"] {
	background-image: url('images/first-scene-j5mqv.png');
}
.scene[data-scene-of="front"] .scene-container .color-layer[data-color-of="g3y68"] {
	background-image: url('images/first-scene-g3y68.png');
}

.scene[data-scene-of="right"] .scene-container .base-layer {
	background-image: url('images/second-scene-base.jpg');
}
.scene[data-scene-of="right"] .scene-container .color-layer[data-color-of="veph9"] {
	background-image: url('images/second-scene-veph9.png');
}
.scene[data-scene-of="right"] .scene-container .color-layer[data-color-of="yfq22"] {
	background-image: url('images/second-scene-yfq22.png');
}
.scene[data-scene-of="right"] .scene-container .color-layer[data-color-of="hbgwe"] {
	background-image: url('images/second-scene-hbgwe.png');
}

.scene[data-scene-of="back"] .scene-container .base-layer {
	background-image: url('images/third-scene-base.jpg');
}
.scene[data-scene-of="back"] .scene-container .color-layer[data-color-of="ist2s"] {
	background-image: url('images/third-scene-ist2s.png');
}
.scene[data-scene-of="back"] .scene-container .color-layer[data-color-of="kvf9y"] {
	background-image: url('images/third-scene-kvf9y.png');
}
.scene[data-scene-of="back"] .scene-container .color-layer[data-color-of="znnp6"] {
	background-image: url('images/third-scene-znnp6.png');
}

.scene .back-button {
	background-image: url('images/arrow-sprite.png');
	background-size: 160px 40px;
	background-position-x: -120px;
	cursor: pointer;
	width: 40px;
	height: 40px;
	opacity: 0;
	position: absolute;
	transform: translate(-50%, 1000%) scale(0.7);
	transition: opacity 1s ease-out;
	left: 50%;
	bottom: 30px;
	z-index: 120;
}
.scene.completed .back-button {
	transform: translate(-50%, 0) scale(0.7);
	opacity: 0.5;
}

@media (max-width: 600px) {
	.scene {
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
		transform: translate(-100%, 0) scale(0.8);
		width: 100%;
	}
	body.door-opening .scene.active {
		transform: translate(0, 0) scale(0.9);
		transition: none;
	}
	body.door-opened .scene.active {
		transform: translate(0, 0) scale(1);
	}
	body.door-closing .scene {
		transform: translate(0, 0) scale(0.9);
	}
	body.photo-revealed .scene.active {
		opacity: 0.2;
		transform: translate(0, 0) scale(0.9);
		transition: transform 1.5s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 1s cubic-bezier(0.165, 0.84, 0.44, 1);
	}
	.scene .scene-container {
		height: 100%;
		padding-top: 0;
	}
}

@media (max-width: 400px) {
	.scene .back-button {
		bottom: 20px;
	}
}

/*--- Teaser Photos ---*/

.teaser-photos {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	white-space: nowrap;
	overflow-x: auto;
	overflow-y: hidden;
	opacity: 0;
	transform: translateX(-200%) scale(1.1);
	transition: transform 1.5s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
	z-index: 99999;
}
.teaser-photos.revealing {
	transform: translateX(0) scale(1.1);
	transition: none;
}
.teaser-photos.revealed {
	opacity: 1;
	transform: translateX(0) scale(1);
}
.teaser-photos.closing {
	transform: translateX(0) scale(0.9);
	opacity: 0;
}
.teaser-photos .photo {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	transition: transform 1s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
	display: block;
	width: auto;
	height: 700px;
}
.teaser-photos .photo.hidden {
	opacity: 0;
	transform: translate(-50%, -50%) scale(1.1);
}
.teaser-photos .photo.revealing,
.teaser-photos .photo.revealed {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}
.teaser-photos .photo.hiding {
	opacity: 0;
	transform: translate(-50%, -50%) scale(0.9);
}

@media (max-width: 600px) {
	.teaser-photos .photo {
		width: 95%;
		height: auto;
		margin: 0 auto;
	}
}	

/*--- Color Balls ---*/
	
.cb-container {
	position: absolute;
	bottom: 30px;
	left: 0;
	width: 100%;
	text-align: center;
	z-index: 110;
}
.cb-container .cb-holder {
	display: inline-block;
	width: 44px;
	height: 44px;
	position: relative;
	margin: 0 7px;
}
.cb-container .cb-holder .colorball {
	background-size: contain;
	background-repeat: no-repeat;
	width: 44px;
	height: 44px;
	border-radius: 22px;
	opacity: 0.9;
}

.cb-container .cb-holder .colorball[data-color-of="pgmt0"] {
	background-image: url('images/colorball-pgmt0.png');
}
.cb-container .cb-holder .colorball[data-color-of="j5mqv"] {
	background-image: url('images/colorball-j5mqv.png');
}
.cb-container .cb-holder .colorball[data-color-of="g3y68"] {
	background-image: url('images/colorball-g3y68.png');
}

.cb-container .cb-holder .colorball[data-color-of="veph9"] {
	background-image: url('images/colorball-veph9.png');
}
.cb-container .cb-holder .colorball[data-color-of="yfq22"] {
	background-image: url('images/colorball-yfq22.png');
}
.cb-container .cb-holder .colorball[data-color-of="hbgwe"] {
	background-image: url('images/colorball-hbgwe.png');
}

.cb-container .cb-holder .colorball[data-color-of="ist2s"] {
	background-image: url('images/colorball-ist2s.png');
}
.cb-container .cb-holder .colorball[data-color-of="kvf9y"] {
	background-image: url('images/colorball-kvf9y.png');
}
.cb-container .cb-holder .colorball[data-color-of="znnp6"] {
	background-image: url('images/colorball-znnp6.png');
}

@media (max-width: 400px) {
	.cb-container {
		bottom: 20px;
	}
}

/*--- Drop Area ---*/

.da-container .drop-area {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 150;
}
.da-container .drop-area.active {
	cursor: pointer;
}
.da-container .da-01 {
	margin-top: -23%;
	margin-left: -30%;
	width: 30%;
	padding-top: 70%;
}
.da-container .da-02 {
	margin-top: 23%;
	margin-left: -37%;
	width: 15%;
	padding-top: 20%;
}
.da-container .da-03 {
	margin-top: 20%;
	width: 12%;
	padding-top: 8%;
}
.da-container .da-04 {
	margin-top: 35%;
	margin-left: 32%;
	width: 30%;
	padding-top: 15%;
}
.da-container .da-05 {
	margin-top: 47%;
	margin-left: 36%;
	width: 15%;
	padding-top: 10%;
}
.da-container .da-06 {
	margin-top: 2%;
	margin-left: 18%;
	width: 15%;
	height: 5%;
}
.da-container .da-07 {
	margin-top: -9%;
	margin-left: -36%;
	width: 15%;
	height: 50%;
}
.da-container .da-08 {
	margin-top: 51%;
	margin-left: 15%;
	width: 70%;
	height: 3%;
}
.da-container .da-09 {
	margin-top: 34%;
	margin-left: -16%;
	width: 60%;
	height: 15%;
}
.da-container .da-10 {
	margin-top: 22%;
	margin-left: 30%;
	width: 32%;
	height: 8%;
}
.da-container .da-11 {
	margin-top: -52%;
	width: 48%;
	height: 36%;
}
.da-container .da-12 {
	margin-top: 4%;
	margin-left: -24%;
	width: 23%;
	height: 9%;
}

/*--- Browser support ---*/

.browser-not-supported {
	background-color: #0d0d0d;
	display: none;
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 99999;
	align-items: center;
	justify-content: center;
	text-align: center;
	line-height: 1.6;
}

/*--- Preload ---*/

.preload-images {
	width: 0;
	height: 0;
	overflow: hidden;
	position: absolute;
	z-index: -1;
}
.preload-images img {
	width: 0;
	height: 0;
}