.top {
	flex: 1 1 0;
	padding: 16px;

	display: flex;
	flex-direction: row;
}


.controls {
	flex: 0 0 300px;

	display: flex;
	flex-direction: column;
	margin-right: 16px;
}

.control-row {
	display: flex;
	flex-direction: row;
	margin: 0 -8px;
}

.control {
	flex: 1 1 0;

	display: flex;
	flex-direction: column;
	margin: 8px 8px;
}

.control-header {
	margin-bottom: 8px;
}

.control-input {
	width: 100%;
	border: none;
	padding: 4px 8px;
}

button.control-input {
	background-color: #bbb;
	cursor: pointer;
}

.control-header-right {
	float: right;
}

.control-header-right a {
	color: #ff0;
	cursor: pointer;
}


.code {
	flex: 1 1 0;
	margin-left: 16px;
}

.code-content {
	width: 100%;
	height: 100%;
	padding: 8px;
	background-color: #282828;
	color: white;
	border: none;
	resize: none;
}


.view {
	flex: 0 0 calc((50vh - 32px)*1.77);
}

.view-wrapper {
	width: 100%;
	padding-bottom: 56.25%;
	position: relative;
}

.view-content {
	position: absolute;
	width: 100%;
	height: 100%;

	background-color: black;
}