html, body {
	margin: 0;
	background-color: transparent;
}
body.bg {
	background-image: url(bg.jpg);
	background-size: 100% auto;
	background-position: 50% 50%;
}

div {
	position: fixed;
	top: 50%;
	left: 50%;
	width: 100%;
	height: 100%;
	opacity: 0;
	transform: translate(-50%, -45%);
	background-size: 100% auto;
	background-position: 50% 50%;
	background-repeat: no-repeat;
	transition: all 2s;
}
div::before, div::after {
	content: "";
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: 100% auto;
	background-position: 50% 50%;
	background-repeat: no-repeat;
}
div.crystal {
	transform: translate(-50%, -55%);
}
div.show {
	opacity: 1;
	transform: translate(-50%, -50%) !important;
}

div:nth-child(1) {
	background-image: url(text_under.png);
	z-index: 10;
}
div:nth-child(2) {
	z-index: 11;
}
div:nth-child(2)::after {
	background-image: url(crystal.png);
	animation: crystal 5s infinite;
	opacity: 0.9;
}
@keyframes crystal {
	0% { opacity: 0.9; transform: translate(0, 0.25%); }
	50% { opacity: 0.85; transform: translate(0, -0.25%); }
	100% { opacity: 0.9; transform: translate(0, 0.25%);}
}
div:nth-child(3) {
	background-image: url(text_over.png);
	z-index: 12;
}
div:nth-child(4) {
	z-index: 1;
}
div:nth-child(4)::after {
	background-image: url(text_glow.png);
	opacity: 0.6667;
}
div:nth-child(5) {
	z-index: 2;
}
div:nth-child(5)::after {
	background-image: url(crystal_glow.png);
	animation: crystal_glow 5s infinite;
}
@keyframes crystal_glow {
	0% { opacity: 0.5; transform: translate(0, 0.25%); }
	50% { opacity: 1; transform: translate(0, -0.25%); }
	100% { opacity: 0.5; transform: translate(0, 0.25%); }
}

a {
	position: fixed;
	bottom: 0;
	left: 50%;
	transform: translate(-50%, -15%);
	opacity: 0;
	transition: all 2s;
	z-index: 20;
}
a.show {
	transform: translate(-50%, -25%);
	opacity: 1;
}
a > img {
	border-radius: 8px;
	box-shadow: 0 0 16px white;
}
video {
	position: fixed;
	top: 50%;
	left: 50%;
	width: 100%;
	transform: translate(-50%, -50%);
	z-index: -1;
	pointer-events: none;
	opacity: 0;
	transition: opacity 2s;
}
body[data-orient="portrait"] video {
	width: auto;
	height: 100%;
}
video.show {
	opacity: 1;
}
section {
	position: fixed;
	top: 8px;
	right: 8px;
	width: 32px;
	height: 32px;
	opacity: 0;
	background: url(play.png);
	transition: opacity 0.5s;
	z-index: 50;
	cursor: pointer;
}
section.playing {
	background: url(pause.png);
}
section.show {
	opacity: 0.5;
}
section.show:hover {
	opacity: 1;
}
