/*
Theme Name: BLOOM*IZ TEASER (Final)
Author: Fivement
Version: 1.0.0
Text Domain: bloom-iz-mj6jpjyrv87a
*/

/*--- 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 1s 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);
}
body.door-opened .canvas {
	opacity: 0;
}

/*--- Cube ---*/

.cube {
	width: 200px;
	height: 400px;
	position: relative;
	transform-style: preserve-3d;
	transform: translateZ(-100px);
	transition: transform 1s cubic-bezier(0.645, 0.045, 0.355, 1);
}
body.move-up .cube {
	transform: translateY(50px) translateZ(-100px) rotateX(-55deg);
}

.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 .gradient-wall,
.cube-face .color-wall {
	background-size: 200px 400px;
	display: block;
	position: absolute;
	width: 200px;
	height: 400px;
	top: 0;
	left: 0;
	pointer-events: none;
}
.cube-face .gradient-wall {
	background-image: url('images/object-gradient-wall.png');
	z-index: 1;
}
.cube-face .color-wall {
	background-image: url('images/object-color-wall.png');
	z-index: 2;
}
.cube-face .gradient-door,
.cube-face .color-door {
	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;
}
.cube-face .gradient-door {
	background-image: url('images/object-gradient-wall-door.jpg');
	z-index: 3;
}
.cube-face .color-door {
	background-image: url('images/object-color-wall-door.jpg');
	z-index: 4;
}

.cube-face .color-wall,
.cube-face .color-door {
	opacity: 0;
	transition: all 1.2s cubic-bezier(0.895, 0.03, 0.685, 0.22);
}

body.door-changed .cube-face .color-wall,
body.door-changed .cube-face .color-door {
	opacity: 1;
}

.cube-face.opened .gradient-wall,
.cube-face.opened .gradient-door {
	display: none;
}
.cube-face.opened .color-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-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-size: 200px 200px;
	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 6px rgba(0,0,0,0.9), 0 0 2px rgba(0,0,0,0.9), 0 0 60px rgba(255,255,255,0.4);
	transform: translateZ(1px);
}

#confetti {
	width: 100%;
	height: 100%;
	transform: translateY(-35%) scale(0.1);
	transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1);
	opacity: 0;
	position: fixed;
	z-index: -1;
}
body.voice-revealed #confetti {
	transform: scale(1);
	opacity: 1;
	z-index: 99;
}
body.door-opened #confetti {
	opacity: 0;
	transition: all 3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@media (max-width: 600px) {
	body.voice-revealed #confetti {
		transform: scale(1.1);
	}
}

/*--- 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;
}

/*--- Tracklist ---*/

.tracklist {
	display: flex;
	align-items: center;
	justify-content: center;
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	opacity: 0;
	transform: translateX(-100%);
}
body.door-opened .tracklist {
	opacity: 1;
	transform: translateX(0);
	z-index: 9999;
}
.tracklist .tracklist-image {
	width: 100%;
	max-width: 900px;
	height: auto;
	opacity: 0;
	transform: scale(1.05);
	transition: all 3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
body.tracklist-revealed .tracklist .tracklist-image {
	transform: scale(1);
	opacity: 1;
}