@font-face {
	font-family: 'Coolvetica';
	font-style: normal;
	font-weight: normal;
	src: local('Coolvetica'), url('Coolvetica.ttf.woff') format('woff');
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

body, html {
	margin: 0;
	padding: 0;
	tab-size: 4;
	height: 100vh;
}

body {
	font: 15px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
	color: #444;
	background: #F1ECDA;
	margin: 0 auto;
	padding: 10px;
	display: flex;
	flex-direction: column;
}

h1, h2 {
	font-size: 340%;
	margin: 0;
	text-align: center;
	color: black;
	font-family: 'Coolvetica', "Trebuchet MS", "Geneva CE", lucida, sans-serif;
	font-weight: normal;
}

h1 span {
	color: gray;
}

h1 small {
	color: #0000003d;
}

form {
	flex: 1;
	min-height: 0; /* resi problem s overflow u <pre> */
}

.panels {
	height: 100%;
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-column-gap: 20px;
}

.panels > div {
	min-width: 0; /* resi problem s overflow u <pre> */
	min-height: 0; /* resi problem s overflow u <pre> */
	display: flex;
	flex-direction: column;
}

.panel {
	display: flex;
	flex-direction: column;
	background: white;
	box-shadow: rgb(34 34 34 / 6%) 2px 2px 3px 0px;
	border-radius: 3px;
	overflow: hidden;
}

.file-title {
	padding: .2em 1em;
	font-weight: bold;
	text-align: center;
	background: #dcdcdc;
}

.editor {
	flex: 1;
	width: 100%;
	font-size: 90%;
	font-family: monaco, consolas, monospace;
	line-height: 1.6;
	color: #444;
	background: white;
	border: none;
	padding: 5px;
	margin: 0;
	box-sizing: border-box;
	overflow-x: auto;
}

.error {
	background: red;
	position: absolute;
}

footer {
	text-align: center;
	padding-top: 10px;
	font-size: 90%;
}

footer span {
	margin: 1px 1.5em;
}

footer span a {
	text-decoration: none;
	background: #00000052;
	padding: 1px 6px;
	border-radius: 2px;
	color: white;
	margin: 0 3px;
	white-space: pre;
}

footer span a:hover {
	background: #336eef;
}
