html, body {
	height: 100%;
}

body {
	background-color: #2d2d2d;
	padding: 0;
	margin: 0;
	overflow: hidden;
}

iframe, #editor, #preview {
	height: 100%;
	width: 100%;
	border: none;
}

.panel-container {
	background-color: #131212;
	display: flex;
	flex-direction: row;
	overflow: hidden;
	/* avoid browser level touch actions */
	/*touch-action: none;*/
	height: 100%;
}

.panel-left {
	flex: 0 0 auto;
	/* only manually resize */
	width: 40%;
	min-height: 200px;
	min-width: 150px;
	white-space: nowrap;
}

#menu {
	padding-left: 2px;
	top: 1px;
	position: relative;
	height: 25px;
	background-color: #2d2d2d;
	box-shadow: #000000 0 6px 6px -6px inset;
	white-space: nowrap;
}

#menu:after {
	content: '';
	position: absolute;
	z-index: -2;
	top: -2px;
	left: -2px;
	right: -2px;
	bottom: -2px;
	background-color: black;
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.6), 0 6px 20px rgba(0, 0, 0, 0.4);
}

.menu-item {
	float: left;
	border: 1px solid #252526;
	background-color: #2d2d2d;
	height: 23px;
	padding-left: 10px;
	padding-right: 10px;
	line-height: 23px;
	color: #cccccc;
	cursor: pointer;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	font-size: 13px;
	white-space: nowrap;
}

.menu-item.active {
	background-color: #1e1e1e;
}

#editor {
	position: relative;
	top: 2px;
	height: calc(100% - 28px);
}

.splitter {
	flex: 0 0 auto;
	width: 5px;
	background-color: #131212;
	min-height: 200px;
	cursor: col-resize;
}

.panel-right {
	flex: 1 1 auto;
	/* resizable */
	width: 60%;
	min-height: 200px;
	min-width: 200px;
	background: #eee;
}