* {
	box-sizing: border-box;
}

html, body {
	margin: 0;
	padding: 0;
	height: 100%;
	width: 100%;
	background-color: #111;
	color: #CCC;
	font-family: Calibri, Arial, sans-serif;
	overflow: hidden;
}

body {
	display: flex;
	flex-direction: column;
	user-select: none;
}



textarea, input:not([type='submit']) {
	background: #222;
	color: #EEE;
	user-select: auto;
}

button, input[type='submit'] {
	background: linear-gradient(to bottom, #222, #333, #222);
	color: #EEE;
	border: 1px solid #000;
	border-radius: 0.3em;
	padding: 0.2em 0.5em;
	box-shadow: 0 0 5px #000;
	overflow: hidden;
}

button:hover, input[type='submit']:hover {
	background: linear-gradient(to bottom, #333, #444, #333);
}

button:active, input[type='submit']:active {
	transform: translate(1px, 1px);
	background: linear-gradient(to bottom, #333, #446, #333);
	box-shadow: 0 0 5px #000, inset 1px 1px 5px #000;
}



#modalOverlay {
	display: none;
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	background-color: rgba(0,0,0, 0.8);
	justify-content: center;
	align-items: center;
}

#modalOverlay.active {
	display: flex;
}

#modalDialog {
	display: flex;
	flex-direction: column;
	gap: 0.5em;
	background-color: #222;
	color: #EEE;
	border: 1px solid #555;
	border-radius: 0.5em;
	box-shadow: 0.2em 0.2em 1em rgba(0,0,0, 0.8);
	padding: 1em 1.5em;
	min-width: 300px;
	max-width: 80%;
}

#modalDialog > .title {
	font-size: 1.5em;
	font-weight: bold;
}

#modalDialog > .content {
	text-align: justify;
}

#modalDialog > .buttons {
	display: flex;
	justify-content: flex-end;
	gap: 1em;
}
