/*
Theme Name: ONEIRIC TEASER (HFdG2LjN8bg4)
Author: Fivement
Version: 1.0.0
Text Domain: Oneiric-HFdG2LjN8bg4
*/

* {
	-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, div, ul, ol, li, h1, h2, h3, h4, h5, h6, form, p, fieldset, input, textarea, abbr, article, figure, button { 
	margin: 0; 
	padding: 0; 
}
html,
body {
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	overflow: hidden;
	position: relative;
	touch-action: none;
}
body {
	background-color: #fff;
	color: #000;
	font-size: 14px;
	font-family: sans-serif;
	line-height: 1.428;
}
* {
	-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;
}

/*--- Splash Screen ---*/

.splash {
	background-color: #fff;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 99;
	transition: opacity 5s cubic-bezier(0.5, 0, 0.75, 0);
}
body.loading .splash {
	opacity: 0;
}
body.loaded .splash {
	display: none;
}

.splash span {
	background-size: contain;
	display: block;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 235px;
	height: 110px;
	transition: opacity 2s cubic-bezier(0.5, 0, 0.75, 0);
}
.splash .gradient-logo {
	background-image: url('images/bloom-iz/teaser-logo.jpg');
	z-index: 99;
}
.splash .teaser-logo {
	background-image: url('images/oneiric-diary/A2T9cDtUup7J/teaser-logo.jpg');
	opacity: 0;
	z-index: 100;
}
body.init .splash .gradient-logo {
	opacity: 0;
}
body.init .splash .teaser-logo {
	opacity: 1;
}
body.loading .splash span {
	transition: opacity 0.7s cubic-bezier(0.5, 0, 0.75, 0);
	transition-delay: 1s;
	opacity: 0 !important;
}

@media (max-width: 600px) {
	.splash span {
		width: 180px;
		height: 84px;
	}
}

/*--- Scene ---*/

.scene {
	position: fixed;
	top: 0;
	left: 50%;
	width: 100%;
	max-width: 620px;
	transform: translateX(-50%);
	height: 100%;
	z-index: 1;
}

.scene .coloring-book {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 10px;
	height: 100%;
}
.scene .coloring-book .art {
	border: 2px solid #000;
	width: 100%;
	height: 0;
	padding-top: 120%;
	position: relative;
	overflow: hidden;
}
.scene .coloring-book .art > div {
	background-size: cover;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 9;
}
.scene .coloring-book .art .line {
	background-image: url('images/oneiric-diary/HFdG2LjN8bg4/coloring-book-art.png');
	z-index: 10;
}
.scene .coloring-book .art .color {
	opacity: 0;
	transition: opacity 1.2s cubic-bezier(0.32, 0, 0.67, 0);
	z-index: 9;
}
.scene .coloring-book .art .color.active {
	opacity: 1;
}
.scene .coloring-book .art .color[data-color-id="eunbi"] {
	background-image: url('images/oneiric-diary/HFdG2LjN8bg4/color-eunbi.png');
}
.scene .coloring-book .art .color[data-color-id="sakura"] {
	background-image: url('images/oneiric-diary/HFdG2LjN8bg4/color-sakura.png');
}
.scene .coloring-book .art .color[data-color-id="hyewon"] {
	background-image: url('images/oneiric-diary/HFdG2LjN8bg4/color-hyewon.png');
}
.scene .coloring-book .art .color[data-color-id="yena"] {
	background-image: url('images/oneiric-diary/HFdG2LjN8bg4/color-yena.png');
}
.scene .coloring-book .art .color[data-color-id="chaeyeon"] {
	background-image: url('images/oneiric-diary/HFdG2LjN8bg4/color-chaeyeon.png');
}
.scene .coloring-book .art .color[data-color-id="chaewon"] {
	background-image: url('images/oneiric-diary/HFdG2LjN8bg4/color-chaewon.png');
}
.scene .coloring-book .art .color[data-color-id="minju"] {
	background-image: url('images/oneiric-diary/HFdG2LjN8bg4/color-minju.png');
}
.scene .coloring-book .art .color[data-color-id="nako"] {
	background-image: url('images/oneiric-diary/HFdG2LjN8bg4/color-nako.png');
}
.scene .coloring-book .art .color[data-color-id="hitomi"] {
	background-image: url('images/oneiric-diary/HFdG2LjN8bg4/color-hitomi.png');
}
.scene .coloring-book .art .color[data-color-id="yuri"] {
	background-image: url('images/oneiric-diary/HFdG2LjN8bg4/color-yuri.png');
}
.scene .coloring-book .art .color[data-color-id="yujin"] {
	background-image: url('images/oneiric-diary/HFdG2LjN8bg4/color-yujin.png');
}
.scene .coloring-book .art .color[data-color-id="wonyoung"] {
	background-image: url('images/oneiric-diary/HFdG2LjN8bg4/color-wonyoung.png');
}
.scene .coloring-book .art .color[data-color-id="wizone"] {
	background-image: url('images/oneiric-diary/HFdG2LjN8bg4/color-wizone.jpg');
	z-index: 8;
}

.scene .coloring-book .art .drop-point {
	position: absolute;
	width: 48%;
	height: 39%;
	top: 29%;
	left: 26%;
}

.scene .coloring-book .pencil-set {
	margin-top: 30px;
}
.scene .coloring-book .pencil-set.suspended {
	pointer-events: none;
}
.scene .coloring-book .pencil-set .row {
	display: flex;
	justify-content: center;
	position: relative;
}
.scene .coloring-book .pencil-set .holder {
	background-image: url('images/oneiric-diary/Wrj0g8ez7Ef4/pencil-holder.png');
	background-size: cover;
	display: inline-block;
	width: 30px;
	height: 40px;
	margin: 5px 10px;
	padding-right: 10px;
	padding-bottom: 20px;
	position: relative;
}
.scene .coloring-book .pencil-set .holder .pencil {
	background-image: url('images/oneiric-diary/Wrj0g8ez7Ef4/pencil-sprite.png');
	background-size: 180px 80px;
	display: block;
	width: 30px;
	height: 40px;
	z-index: 99;
}
.scene .coloring-book .pencil-set .holder .pencil[data-pencil-id="eunbi"] {
	background-position: 0 0;
}
.scene .coloring-book .pencil-set .holder .pencil[data-pencil-id="sakura"] {
	background-position: -30px 0;
}
.scene .coloring-book .pencil-set .holder .pencil[data-pencil-id="hyewon"] {
	background-position: -60px 0;
}
.scene .coloring-book .pencil-set .holder .pencil[data-pencil-id="yena"] {
	background-position: -90px 0;
}
.scene .coloring-book .pencil-set .holder .pencil[data-pencil-id="chaeyeon"] {
	background-position: -120px 0;
}
.scene .coloring-book .pencil-set .holder .pencil[data-pencil-id="chaewon"] {
	background-position: -150px 0;
}
.scene .coloring-book .pencil-set .holder .pencil[data-pencil-id="minju"] {
	background-position: 0 -40px;
}
.scene .coloring-book .pencil-set .holder .pencil[data-pencil-id="nako"] {
	background-position: -30px -40px;
}
.scene .coloring-book .pencil-set .holder .pencil[data-pencil-id="hitomi"] {
	background-position: -60px -40px;
}
.scene .coloring-book .pencil-set .holder .pencil[data-pencil-id="yuri"] {
	background-position: -90px -40px;
}
.scene .coloring-book .pencil-set .holder .pencil[data-pencil-id="yujin"] {
	background-position: -120px -40px;
}
.scene .coloring-book .pencil-set .holder .pencil[data-pencil-id="wonyoung"] {
	background-position: -150px -40px;
}

@media (max-width: 600px) {
	.scene .coloring-book .pencil-set .holder {
		margin: 5px;
	}
}

@media (max-height: 600px) {
	.scene .coloring-book .pencil-set {
		margin-top: 12px;
	}
	.scene .coloring-book .pencil-set .holder {
		margin-top: 0;
	}
}

/*--- Remodal ---*/

html.remodal-is-locked {
	overflow: hidden;
	touch-action: none;
}
.remodal-overlay {
	background-color: rgba(255,255,255,0.97);
	display: none;
	position: fixed;
	top: -5000px;
	right: -5000px;
	bottom: -5000px;
	left: -5000px;
	z-index: 999997;
}
.remodal-wrapper {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	display: none;
	overflow: auto;
	text-align: center;
	-webkit-overflow-scrolling: touch;
	z-index: 999998;
}
.remodal-wrapper:after {
	content: '';
	display: inline-block;
	height: 100%;
	margin-left: -0.05em;
}
.remodal-overlay,
.remodal-wrapper {
	backface-visibility: hidden;
}
.remodal {
	background-color: transparent;
	display: none;
	outline: none;
	position: relative;
	transform: translate3d(0, 0, 0);
	padding: 0;
	margin: 0;
}
.remodal,
.remodal-wrapper:after {
	vertical-align: middle;
}
.remodal-is-initialized {
	display: inline-block;
}
.remodal-overlay.remodal-is-opening,
.remodal-overlay.remodal-is-closing {
	animation-duration: 0.6s;
	animation-fill-mode: forwards;
}
.remodal-overlay.remodal-is-opening {
	animation-name: remodal-overlay-opening-keyframes;
}
.remodal-overlay.remodal-is-closing {
	animation-name: remodal-overlay-closing-keyframes;
}
.remodal.remodal-is-opening {
	animation-duration: 1s;
	animation-fill-mode: forwards;
}
.remodal.remodal-is-closing {
	animation-duration: 0.6s;
	animation-fill-mode: forwards;
}
.remodal.remodal-is-opening {
	animation-name: remodal-opening-keyframes;
}
.remodal.remodal-is-closing {
	animation-name: remodal-closing-keyframes;
}

@keyframes remodal-opening-keyframes {
	from {
		transform: scale(1.02);
		opacity: 0;
	}
	to {
		transform: none;
		opacity: 1;
		filter: blur(0);
	}
}
@keyframes remodal-closing-keyframes {
	from {
		transform: scale(1);
		opacity: 1;
	}
	to {
		transform: scale(0.95);
		opacity: 0;
		filter: blur(0);
	}
}
@keyframes remodal-overlay-opening-keyframes {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}
@keyframes remodal-overlay-closing-keyframes {
	from {
		opacity: 1;
	}
	to {
		opacity: 0;
	}
}

.teaser-photo {
	width: 100%;
	max-width: 800px;
}
.teaser-photo.landscape {
	max-width: 1200px;
}
.teaser-photo img {
	display: block;
	width: 100%;
	height: auto;
}

@media (max-width: 600px) {
	.teaser-photo {
		width: 85%;
	}
	.teaser-photo.landscape {
		width: 100%;
	}
}