@import url('https://fonts.googleapis.com/css?family=Cutive+Mono');
@import url('https://fonts.googleapis.com/css?family=Averia+Serif+Libre');

@font-face {
	font-family: 'Hamburger Schwabacher';
	src: url('Hamburger_Schwabacher.ttf') format('truetype');
}

:root {				
	--dark-1: #212121;
	--dark-2: #333333;
	--light-1: #efefef;
	--light-2: #dedede;
	--red: #C5000B;
	
	height: 100%;
	
	background-color: var(--dark-1);
	background-image: url("bg.jpg");
	color: var(--light-1);

	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu,Cantarell, "Helvetica Neue", sans-serif;
	font-family: 'Averia Serif Libre';
	font-size: calc(8px + 1vmin);
	text-shadow: 0.2em 0.2em 0.4em rgba(0, 0, 0, 0.8);
}

body {
	display: flex;
	flex-direction: column;
	
	box-sizing: border-box;
	
	height: 100%;
	
	margin: 0;
	padding: 2.5% 15% 5%;
}

@media (max-width: 1024px) or (max-height: 768px) {
	body {
		padding: 1em;
	}
}

header {
	white-space: nowrap;
	margin-bottom: 0.5em;
}

header h1 {
	margin: 0;
	
	font-family: 'Hamburger Schwabacher';
	font-size: calc(8px + 1vmin * 5);
	
	background-color: var(--light-1);
	color: transparent;
	text-shadow: 0.125em 0.125em 0.05em rgba(0,0,0,0.2);
	-webkit-background-clip: text;
	-moz-background-clip: text;
	background-clip: text;
}

header small {
	display: block;
	margin-top: -1em;
	margin-left: 2.6em;
}

@media (max-width: 640px) or (max-height: 768px) {
	header small {
		margin-left: 0;
		margin-top: 0em;
	}
}

a {
	color: var(--light-1);
	text-decoration: none;
}

a:hover {
	color: white;
	text-shadow: 0 0 0.1em rgba(255, 255, 255, 0.5);
}

button, input, textarea {
	font-family: inherit;
	font-size: inherit;
}

button {
	position: relative;
	
	padding: 0.25em 1em;

	background-color: var(--dark-2);
	color: var(--light-1);
	
	border: none;

	font-family: inherit;
	overflow: hidden;
	text-overflow: ellipsis;
	
	cursor: pointer;
}

button .icon {
	margin-right: 0.3em;
}

button:hover {
	background-color: var(--red);
}

.toolbar {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
}

.toolbar label {
	margin-left: 0.3em;
	
	font-size: 85%;
	text-transform: uppercase;
	
	-webkit-user-select: none; /* Safari 3.1+ */
	-moz-user-select: none; /* Firefox 2+ */
	-ms-user-select: none; /* IE 10+ */
	user-select: none;
}

.toolbar {
	justify-content: flex-start;
	margin-bottom: -0.5em;
}

.toolbar .inputWrapper {
	display: flex;
	align-items: center;
	
	padding: 0.25em 0.5em;
}

.toolbar .inputWrapper:last-child {
	flex-grow: 1;
	display: flex;
	justify-content: flex-end;
}			

#paragaphsField {
	width: 3em;
	margin-right: 0.3em;
}

#specialWordsInfoButton {
	display: inline-block;
	
	width: 1.2em;
	height: 1.2em;
	
	margin-left: 0.3em;
	
	background-color: var(--light-2);
	border-radius: 50%;
	
	font-size: 75%;
	font-weight: bolder;
	color: var(--dark-2);
	text-align: center;
	line-height: 1.1em;
	
	cursor: pointer;
	
	-webkit-user-select: none; /* Safari 3.1+ */
	-moz-user-select: none; /* Firefox 2+ */
	-ms-user-select: none; /* IE 10+ */
	user-select: none;
}

#specialWordsInfo {
	position: fixed;
	
	max-width: 60vw;
	
	padding: 0.75em 2em;
	
	background-color: var(--light-2);
	color: var(--dark-1);
	
	box-shadow: 0.5em 0.5em 1em rgba(0, 0, 0, 0.5);
	
	font-size: 85%;
	text-shadow: 0.1em 0.1em 0.2em rgba(0, 0, 0, 0.1);
	
	pointer-events: none;
	
	opacity: 0;
	
	transition: opacity 200ms ease-in-out;
}

#output {
	flex-grow: 1;
	
	margin-top: 1em;
	padding: calc(0.5em + 2vmin);
	
	background-color: var(--light-2);
	
	border: 0.1em solid var(--dark-2);
	
	font-family: 'Cutive Mono', monospace;
	color: var(--dark-1);
	text-shadow: 
		0 0 0.0125em var(--dark-1),
		0.05em 0.05em 0.025em rgba(0,0,0,0.2);
}

footer {
	margin-top: 0.5em;
	
	font-size: 85%;
	text-transform: uppercase;
}

footer a:not(:last-child):after {
	content: "-";
	margin-left: 0.6em;
	margin-right: 0.3em;
	display: inline-block;
}