@CHARSET "ISO-8859-1";

html {
	height: -webkit-fill-available;
}

body {
	background-color: #313131;
	color: white;
	font-size: 1.8vh;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	touch-action: none;
	height: 100vh;
	height: -webkit-fill-available;
	overflow: hidden;
}

body * {
	font-size: 100%;
}

a, a:visited {
	color: white;
}

h1 {
	font-size: 121%;
	margin: 0 0 3.5ex;
}

.narrow {
	display: none;
}

#page-wrapper {
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	position: relative;
	display: flex;
	flex-flow: column nowrap;
	justify-content: space-between;
	align-items: stretch;
}

#header {
	width: 100%;
	height: 11em;
	min-height: 5em;
	overflow: visible;
}

#header #header-menu {
	height: 6ex;
	display: flex;
	flex-flow: row nowrap;
	justify-content: center;
	padding: 3ex 2em 0;
	align-items: center;
}

#header #header-menu button {
	height: 4ex;
	background-color: #313131;
	color: white;
	border: 1px solid #767676;
	border-radius: 0.5ex;
	padding: 0.8ex 1.2em;
}

#header #logo {
	width: calc(6vw + 5vh);
	height: auto;
	max-width: 18vw;
	max-height: 18vh;
	min-width: 8ex;
	min-height: 5ex;
	margin: 0;
	padding: 0;
	position: relative;
	top: 8ex;
}

#content {
	margin: 4ex 2em;
	flex-grow: 0;
	flex-shrink: 1;
}

@media only screen and (max-height: 1104px)
{
	body {
		font-size: 18pt;
	}

	#header {
		height: 5ex;
		flex-bais: 5ex;
	}

	#header #header-menu {
		height: 5ex;
		padding-top: 2ex;
	}

	#header #logo {
		top: 0;
	}
}

@media only screen and (max-height: 976px)
{
	body {
		font-size: 18pt;
	}

	h1 {
		margin-bottom: 1.5ex;
	}

	#content {
		margin-top: 0;
		margin-bottom: 0;
	}

	#scan-messages {
		margin-top: 1ex;
	}

	#header #logo {
		top: 0;
	}
}

@media only screen and (max-width: 1200px)
{
	#header {
		height: 5em;
	}

	#header #logo {
		top: 0;
	}
}

@media only screen and (orientation: landscape) and (max-height: 800px)
{
	body {
		font-size: 15pt;
		overflow: visible;
		touch-action: initial;
	}
}

@media only screen and (orientation: portrait) and (max-width: 640px)
{
	body {
		font-size: 15pt;
		overflow: visible;
		touch-action: initial;
	}
}

@media only screen and (orientation: landscape) and (max-height: 640px)
{
	body {
		font-size: 12.5pt;
		overflow: visible;
		touch-action: initial;
	}
}

@media only screen and (orientation: portrait) and (max-width: 440px)
{
	body {
		font-size: 12.5pt;
		overflow: visible;
		touch-action: initial;
	}
}


#footer {
	width: 100%;
	height: 4em;
	flex-basis: 4em;
	min-height: 4em;
	margin: 0;
	padding: 0;
	display: flex;
	flex-flow: row nowrap;
	justify-content: center;
	align-items: center;
}

#footer span {
	padding: 0 0.5em;
}

.std-form select {
	padding: 0.7ex 1em;
}

.std-form input[type="text"],
.std-form input[type="password"] {
	padding: 0.7ex 1em;
}

.std-form ul {
	color: #F31E2B;
}

.std-button,
input[type="submit"] {
	padding: 1ex 1em;
	background-color: #007bff;
	color: white;
	border: 1px solid #8ec4ff;
	border-radius: 0.5ex;
	transition: filter 0.15s, background-color 0.3s;
	cursor: pointer;
}

button[name="clear"] {
	background-color: #767676;
	color: white;
	border: 1px solid white;
	border-radius: 0.5ex;
	padding: 0.7ex 0.5em;
	margin-left: 0.7em;
}

button.digit {
	background-color: white;
	color: black;
	padding: 0.7ex 0.7em;
	border: none;
	border-radius: 0.5ex;
}

input[type="submit"],
button {
	transition: filter 0.1s;
}

input[type="submit"]:hover,
button:hover {
	filter: brightness(1.2);
}

button.digit:hover {
	filter: brightness(0.7);
}