/* http://colourco.de/monochrome/5/%23cae9be */

body {
	background-color: #c0e6b2;
	overflow: hidden;
}

.stage {
	margin: 8px auto;
	border: 2px solid #63bc43;
	width: 1024px;
	height: 576px;
	background-image: url(sky.png);
	position: relative;
	overflow: hidden;
}

/*.black-fade {
	background-color: black;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity .4s linear;
}*/

.black-fade.in {
	opacity: 1;
}

#logger {
	padding: 2px;
	border: 2px solid #63BC43;
	background-color: #e0f2d9;
	width: 1020px;
	margin: 0px auto;
	font-family: "M+ 1m regular", monospace;
}

.stage > * {
	position: absolute;
	left: 0px;
	top: 0px;
}

#logger > span {
	float: right;
	width: 3.5em;
	display: block;
}

#logger > div {
	font-weight: bold;
}

#superstage-final {
	top: 19px;
	width: 1024px;
	height: 538px;
}

#grassblock, #grassblock-ur {
	left: 416px;
	top: 192px;
	width: 192px;
	height: 192px;
}

#grassblock {
	background-image: url(grassblock-u.png);
}

#grassblock-ur {
	transition: opacity .4s ease-in;
}
#superstage-parent {
	position: relative;
	top: 19px;
}

/* ================================================== */

@-webkit-keyframes "moving-background" {
	from {
		background-position: 0px 0px;
	}
	to {
		background-position: -512px -512px;
	}
}

.stage {
	-webkit-animation: "moving-background" 4s linear infinite;
}

@-webkit-keyframes "gear" {
	from {
		left: 512px;
		top: 288px;
		width: 0px;
		height: 0px;
		opacity: 0;
	}
	20% {
		left: 496px;
		top: 272px;
		width: 32px;
		height: 32px;
		opacity: 1;
	}
	to {
		left: -1536px;
		top: -1760px;
		width: 4096px;
		height: 4096px;
		opacity: 0;
	}
}

.ani-gear {
	-webkit-animation: "gear" 4s ease 1;
}

@-webkit-keyframes "superstage-final" {
	from {
		left: 0px;
		top: 19px;
		width: 1024px;
		height: 538px;
		opacity: 1;
	}
	86% {
		left: -8608px;
		top: -4032px;
		width: 15360px;
		height: 8064px;
		opacity: 1;
	}
	to {
		left: -8608px;
		top: -4032px;
		width: 15360px;
		height: 8064px;
		opacity: 0;
	}
}

#superstage-final.ani {
	-webkit-animation: "superstage-final" 3.5s ease-in-out 1;
}

@-webkit-keyframes "grassblock" {
	from {
		left: 416px;
		top: 192px;
		width: 192px;
		height: 192px;
		background-size: 192px 192px;
	}
	to {
		left: 448px;
		top: 224px;
		width: 128px;
		height: 128px;
		background-size: 128px 128px;
	}
}

#grassblock.ani {
	-webkit-animation: "grassblock" .5s ease-in-out 1;
}

#grassblock.final {
	left: 448px;
	top: 224px;
	width: 128px;
	height: 128px;
	background-size: 128px 128px;
	-webkit-animation: "grassblock-finalmove" 2s ease 1;
}

@-webkit-keyframes "grassblock-finalmove" {
	from, 25% {
		left: 448px;
		opacity: 1;
	}
	to {
		left: 1024px;
		opacity: .5;
	}
}

@-webkit-keyframes "grassblock-growing" {
	from {
		left: -192px;
		opacity: .5;
	}
	to {
		left: 416px;
		opacity: 1;
	}
}

#grassblock-growing {
	-webkit-animation: "grassblock-growing" 2s ease 14s 1;
	top: 192px;
	left: -192px;
}

#grassblock-growing.final {
	left: 416px;
}

.dirt-only {
	clip: rect(84px 192px 192px 0px);
}

.grass-only {
	clip: rect(0px 192px 84px 0px);
}

#grassblock-growing-stage2 {
	transition: opacity .5s ease-in-out;
	opacity: 0;
}

#grassblock-growing-stage2, #grassblock-growing-stage3, #grassblock-growing-final {
	left: 416px;
	top: 192px;
}

#grassblock-growing-final {
	transition: all 1.5s ease-in-out;
	background-image: url(grassblock-u-192px.png);
	width: 192px;
	height: 192px;
}

#grassblock-growing-final.final {
	left: 0px;
	top: 288px;
	width: 1024px;
	height: 128px;
	background-size: 128px 128px;
	-webkit-animation: "moving-grassblock" 1s linear 1.5s infinite;
}

@-webkit-keyframes "moving-grassblock" {
	from {
		background-position-x: 0px;
	}
	to {
		background-position-x: -128px;
	}
}

#slime {
	left: 448px;
	top: -128px;
	width: 128px;
	height: 128px;
	background-image: url(slime.png);
	background-repeat: no-repeat;
	transition: top 1s ease-in, left 4.5s linear;
}

#slime.fr0 {
	background-position: 0px 0px;
}

#slime.fr1 {
	background-position: -128px 0px;
}

#slime.fr2 {
	background-position: -256px 0px;
}

#slime.fr3 {
	background-position: -384px 0px;
}

#slime.fr4 {
	background-position: -512px 0px;
}

#slime.fall-down, #green-gear.fall-down, #normal-button.fall-down, #yellow-button.fall-down {
	top: 160px;
}

#slime.final, #green-gear.final, #normal-button.final, #yellow-button.final {
	left: -128px;
}

#green-gear {
	left: 960px;
	top: -128px;
	transition: top 1s ease-in, left 8.5s linear;
}

#normal-button, #yellow-button {
	background-image: url(buttons.png);
	background-repeat: no-repeat;
	left: 960px;
	top: -128px;
	width: 128px;
	height: 128px;
	transition: top 1s ease-in, left 8.5s linear;
}

#normal-button {
	background-position: 0px 0px;
}

#yellow-button {
	background-position: 0px -128px;
}

@-webkit-keyframes "moving-decorations" {
	from {
		background-position-x: 0px;
	}
	to {
		background-position-x: -64px;
	}
}

.decorations-u, .decorations-d {
	background-image: url(decorations.png);
	width: 1024px;
	height: 32px;
	-webkit-animation: "moving-decorations" 1.28s linear infinite;
}

.decorations-u {
	background-position-y: -32px;
}

.decorations-d {
	background-position-y: 0px;
}

#decorations-u, #decorations-d {
	transition: top .5s ease;
}

#decorations-u {
	top: -32px;
}

#decorations-d {
	top: 576px;
}

#decorations-u.in {
	top: 0px;
}

#decorations-d.in {
	top: 544px;
}

#bg-image {
	background-color: black;
	width: 100%;
	height: 100%;
	background-image: url(bgs.png);
	background-repeat: no-repeat;
	background-position-x: 128px;
	transition: opacity 1s ease-in-out, background-position-y .5s ease-in-out;
	opacity: 0;
}

#bg-image.in {
	opacity: 1;
}

#bg-image.fr0 {
	background-position-y: 0px;
}

#bg-image.fr1 {
	background-position-y: -576px;
}

#title-text {
	transition: top 1s ease;
	left: 261px;
	top: -188px;
}

#title-text.in {
	top: 96px;
}

#title-text.out {
	top: 576px;
}

#black-panel-d {
	background-color: black;
	top: initial;
	bottom: 0px;
	width: 100%;
	height: 0px;
	transition: height .5s ease;
}

#black-panel-d.in {
	height: 128px;
}

.title-button {
	transition: top 1s ease;
	top: 576px;
}

.title-button.in {
	top: 480px;
}

#title-new-game {
	left: 216px;
}

#title-load-data {
	left: 528px;
}

#save-title {
	left: 160px;
	top: -106px;
	transition: top .5s ease;
}

#save-title.in {
	top: 32px;
}

.save-slot {
	left: 256px;
	top: 100%;
	transition: top 1s ease;
}

#save-slot-1.in {
	top: 160px;
}

#save-slot-2.in {
	top: 288px;
}

#save-slot-3.in {
	top: 416px;
}

.save-slot.out {
	top: -96px;
}

#ending-title {
	left: 240px;
	top: 32px;
}

#ending-player {
	left: 32px;
	top: 64px;
}

#ending-footer {
	top: initial;
	bottom: 0px;
	width: 100%;
	margin-bottom: 48px;
	font-family: "M+ 1c heavy", sans-serif;
	font-size: 32pt;
	color: white;
	-webkit-text-stroke: 2px rgba(0,0,0,.7);
	text-shadow: 3px 3px 0px rgba(0,0,0,.5);
	text-align: center;
}

#ending-footer a {
	color: aliceblue;
	-webkit-text-stroke: 2px rgba(0,191,255,.7);
	text-decoration: none;
}

#ending-footer a:active {
	position: relative;
	left: 3px;
	top: 3px;
	text-shadow: none;
	-webkit-text-stroke-color: transparent;
	color: #00BFFF;
}

#ending-footer > div {
	font-size: 24pt;
}

#ending-footer > div a {
	letter-spacing: -2px;
}
