* {
	touch-action: none;
}

html {
	overflow: hidden;
}

body {
	font-family: Arial, Helvetica, sans-serif;
	position: relative;
	margin: 0px;
	height: 100%;
	width: 100%;
	overflow: hidden;
}

form>input {
	margin-top: 0.2em;
	margin-bottom: 0.4em;
}

form>select {
	margin-top: 0.2em;
	margin-bottom: 0.4em;
}

form>label {
	padding-right: 1.5em;
}

input, button, select {
	font-size: inherit;
}

form>div {
	margin-top: 0.2em;
	margin-bottom: 0.4em;
}

input.text, form>select {
	width: 100%;
}

.stattable {
	width: 100%;
	font-size: inherit;
}

.stattable th {
	padding: 0.2em;
}

.stattable th a {
	color: black;
}

.stattable tr {
	transition: all 0.1s ease-in-out;
}

.stattable tr td {
	padding: 0.2em;
	text-align: center;
	overflow-x: hidden;
	overflow-y: visible;
	text-overflow: ellipsis;
	transition: all 0.4s ease-in-out;
}

.stattable tr:nth-child(odd) {
	background-color: #d8e3f8;
}

.stattable tr:nth-child(even) {
	background-color: #bed1f4;
}

.stattable tr:hover {
	background-color: white;
}

.stattable tr td:first-child {
	padding-right: 0.2em;
	padding-left: 0.2em;
	margin: 0;
}

.grid-container {
	position: relative;
	display: grid;
	height: 100%;
	width: 100%;
	margin: 0px;
	padding: 0px;
}

.flex-container {
	position: relative;
	display: flex;
	flex-wrap: nowrap;
	height: 100%;
	width: 100%;
	margin: 0px;
	padding: 0px;
}

.foreground {
	z-index: 20;
}

.block {
	box-sizing: content-box;
	border: 3px solid;
	border-radius: 20px;
	
	border-color: #608fbf;
	background-color: #c6d6f5;
	
	margin: 5px;
	padding: 0.8em;
}

.block h1 {
	font-size: 2em;
	font-weight: normal;
	margin: 0;
}

.center {
	text-align: center;
}

.right {
	text-align: right;
}

.title {
	min-height: 0;
	background-color: #e5ecfb;
}

.spacer {
	width: 100%;
}

#root {
	grid-template-rows: auto 1fr auto;
	grid-template-columns: 1fr auto;
	grid-template-areas:
	'header'
	'main'
	'footer';
}

@media only screen and (min-width: 768px) {
	#header {
		grid-area: header;
		padding: 10px;
		background-color: #06235c;
		color: #c7cad1;
	}

	#header>.flex-container {
		justify-content: stretch;
		align-items: center;
	}

	#header>.flex-container>div:first-child {
		font-size: 45px;
		white-space: nowrap;
	}

	#header>.flex-container>div:first-child>a {
		text-decoration: none;
		color: #c7cad1;
	}

	#header>.flex-container>div:nth-child(2)>a>img {
		font-size: 45px;
		height: 1em;
	}
	
	#welcome {
		text-align: center;
		margin-right: 10px;
	}

	#welcome>span {
		font-size: 1.5em;
	}
	
	#footer {
		grid-area: footer;
		padding: 10px;
		background-color: #06235c;
		color: #c7cad1;
	}

	#footer>.flex-container {
		flex-direction: row;
		justify-content: flex-end;
	}

	#footer>.flex-container>div {
		text-align: right;
	}
}

@media only screen and (max-width: 768px) {
	#header {
		grid-area: header;
		padding: 0px 5px 0px 5px;
		background-color: #06235c;
		color: #c7cad1;
	}

	#header>.flex-container {
		justify-content: stretch;
		align-items: center;
	}

	#header>.flex-container>div:first-child {
		font-size: 25px;
		white-space: nowrap;
	}

	#header>.flex-container>div:first-child>a {
		text-decoration: none;
		color: #c7cad1;
	}

	#header>.flex-container>div:nth-child(2)>a>img {
		font-size: 25px;
		height: 1em;
	}
	
	#welcome {
		text-align: center;
		margin-right: 5px;
		font-size: 0.8em;
	}

	#welcome>span {
		font-size: 1.5em;
	}
	
	#footer {
		grid-area: footer;
		padding: 5px;
		background-color: #06235c;
		color: #c7cad1;
	}

	#footer>.flex-container {
		flex-direction: row;
		justify-content: flex-end;
	}

	#footer>.flex-container>div {
		text-align: right;
		font-size: 0.8em;
	}
}

#main {
	grid-area: main;
	font-size: 1.1em;
	font-weight: 400;
}

#contentbox * {
	touch-action: pan-y;
}

#contentbox {
	position: relative;
	width: 100%;
	height: 100%;
}

#contentbox .flex-container:first-child {
	position: absolute;
	flex-direction: column;
	align-items: stretch;
}

#contentbox .flex-container:first-child > div {
	height: 100%;
}

#contentbox .flex-container:nth-child(2) {
	position: absolute;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: center;
	align-items: center;
	overflow: auto;
}

#contentbox .flex-container:nth-child(2)>div {
	margin: auto 0 auto 0;
	transition: all 1s ease-in-out;
	overflow-x: hidden;
	overflow-y: visible;
}

#contentbox .flex-container:nth-child(2).column {
	flex-direction: column;
	justify-content: flex-start;
}

#contentbox .flex-container:nth-child(2).column>div {
	margin: 0;
	overflow: visible;
}

#contentbox .flex-container:nth-child(2).column>div:first-child {
	margin-top: auto;
}

#contentbox .flex-container:nth-child(2).column>div:last-child {
	margin-bottom: auto;
}

#background {
	background-color: #020a1a;
	background-image: url("../img/Background.jpg");
	background-repeat: repeat;
	background-size: 420px;
}

#results {
	max-height: 0px;
}

#logo {
	padding-left: 0.2em;
}

#resultscontainer {
	max-height: 0;
	overflow: hidden;
}

#counter {
	white-space: nowrap;
	font-size: 20px;
}

#resultsdiv {
	overflow-x: hidden;
}