@charset "UTF-8";

html, body
{
	/* Make absolute postioning take the full height. */
	height: 100%;
}

body
{
	/* Remove the default spacing around the page.*/
	padding: 0;
	margin: 0;
}

*
{
	box-sizing: border-box;
}

body > header,
body > article,
body > footer
{
	position: absolute;
	padding: 0.5em;
	left: 0;
	right: 0;
	overflow: hidden;
}

body > header
{
	top: 0;
	height: 3em;
}

body > header > h1
{
	display: inline-block;
	margin: 0;
	font-size: 2em;
	white-space: nowrap;
}

body > article
{
	top: 3em;
	bottom: 2em;
}

body > footer
{
	bottom: 0;
	height: 2em;
	text-align: right;
}

input, textarea, label, select
{
	display: block;
}

.editor, .live-preview
{
		position: absolute;
		padding: 10px;
		top:0;
		bottom: 0;
		width: 50%;
}

.editor
{
	left: 50%;
	overflow: auto;
}
.live-preview
{
	left: 0;
	top:0;
	overflow: hidden;
}

.live-preview canvas,
.live-preview image
{
		display: block;
		max-width: 100%;
		max-height: 100%;
		margin: 0 auto;
		box-shadow: 0 2px 4px #000;
}


@media (max-width: 12cm)
{
	.live-preview,
	.editor
	{
		width: 100%;
		height: 50%;
		left: 0;
	}
	
	.editor { top: 50%; }
	.live-preview { top:0; }
}
