/*
Theme Name: HEART*IZ TEASER
Version: 1.0.0
Text Domain: heart-iz-teaser
*/

/*--- Reset ---*/

html,
body {
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
}
body {
	background-color: #fff;
	font-family: sans-serif;
	font-size: 15px;
}
* {
	-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;
}
img {
	width: 100%;
	height: auto;
	display: block;
}

/*--- Splash ---*/

.splash {
	background-color: #fff;
	position: fixed;
	z-index: 9999;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	transition: all 1s ease-out;
}
body.is-ready .splash {
	opacity: 0;
	transform: scale(0.95);
}
.splash .logo {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 180px;
	height: 75px;
}
body.is-preparing .splash .logo {
	background-position-x: -1320px;
}
.splash .logo .logo-mask {
	background-image: url('images/splash-logo-mask.png');
	background-size: 180px 75px;
	position: absolute;
	width: 180px;
	height: 75px;
	z-index: 99999;
}
.splash .logo .logo-gradient {
	background-image: url('images/splash-logo-gradient.jpg');
	background-size: 1500px 75px;
	background-position: 0 0;
	position: absolute;
	transition: background-position 3s cubic-bezier(0.215, 0.61, 0.355, 1);
	width: 176px;
	height: 71px;
	margin-top: 2px;
	margin-left: 2px;
	z-index: 99998;
}
body.is-preparing .splash .logo .logo-gradient {
	background-position-x: -1320px;
}

/*--- Main ---*/

.teaser-main {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
	opacity: 0;
	transition: opacity 2.5s cubic-bezier(0.895, 0.03, 0.685, 0.22);
}
body.is-ready .teaser-main {
	opacity: 1;
}
.mask {
	width: 95%;
	max-width: 800px;
	height: 800px;
	overflow: hidden;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	position: fixed;
}
.art-frame {
	border: 2px solid #000;
	width: 100%;
	height: 800px;
	position: absolute;
	z-index: 98;
}
.art {
	width: 800px;
	height: 800px;
	overflow: hidden;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}
.art .art-bg {
	background-size: contain;
	background-repeat: no-repeat;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	position: absolute;
}
.art .art-outline {
	background-image: url('images/teaser-main-art.png');
	z-index: 30;
}

@media (max-width: 600px) {
	.mask,
	.art-frame {
		height: 600px;
	}
	.art {
		width: 600px;
		height: 600px;
	}
}
@media (max-width: 480px) {
	.mask,
	.art-frame {
		height: 460px;
	}
	.art {
		width: 460px;
		height: 460px;
	}
}
@media (max-width: 400px) {
	.mask,
	.art-frame {
		height: 420px;
	}
	.art {
		width: 420px;
		height: 420px;
	}
}
@media (max-width: 360px) {
	.mask,
	.art-frame {
		height: 360px;
	}
	.art {
		width: 360px;
		height: 360px;
	}
}