html {
	margin: 0;
	padding: 0;
	height: 100%;
}

body {
	font-family: Futura, Trebuchet MS, Arial, sans-serif;
	text-align: center;
	background-color: #2D2D2D;
	color: #FFFFFF;
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	margin: 0;
	height: 100%;
	overflow: hidden;
}

p {
	margin-top: 0;
	margin-bottom: 1rem;
}

button, #langSelector {
	border-radius: 5px;
	border-style: none;
	font-size: 57px;
	display: block;
	margin-right: auto;
	margin-left: auto;
	margin-top: 16px;
	padding: 8px 16px 8px 16px;
	background-color: #FFFFFF;
	color: #FFFFFF;
	cursor: pointer;
}

#langSelector {
	font-size: 17px;
	color: #000000;
}

button:active {
	box-shadow: 1px 1px 2px #505050;
}

header {
	background-color: white;
	flex: 0 0 3rem;
	height: 3rem;
	display: flex;
	flex-wrap: nowrap;
	padding: 1rem;
	align-items: center;
}

footer {
	background-color: white;
	display: flex;
	flex-wrap: nowrap;
	padding: 1rem;
	height: 15rem;
	flex: 0 0 15rem;
	font-size: 0.85rem;
}

h6 {
	color: #3A87DF;
	margin: 0 0 0.25rem 0;
	font-size: 0.85rem;
}

.submit {
	background-color: #2275D4;
	border-radius: 8px;
	font-size: 20px;
	margin-top: 1rem;
	width: 80%;
	max-width: 200px;
}

.logo {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-top: 0;
}

.logo > img {
	max-height: 3rem;
}

.submit:hover {
	background-color: #3e89e0;
}

.default {
	color: #0fa31c;
}

.default:hover {
	color: #11bb1f;
}

.buzzed {
	color: #f2c32c;
}

.buzzed :active {
	box-shadow: none;
}

.locked {
	color: #D10A0A;
	box-shadow: none;
	cursor: default;
	background-color: #FFFFFF;
}

.clear {
	background-color: #FFFFFF;
	color: #2D2D2D;
	margin-top: 1rem;
}

#settingsContainer {
	position: fixed;
	top: 6rem;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 10;
}

.settings {
	font-size: 17px;
	background-color: #FFFFFF;
	color: #000000;
	width: 145px;
	padding: 7px 0 7px 0;
}


.inputforms {
	z-index: 2;
	padding: 16px;
	opacity: 1;
	background-color: #FFFFFF;
	color: #000000;
	position: fixed;
	left: 16px;
	right: 16px;
	top: 0;
	margin: auto;
	font-size: 20px;
	text-align: center;
	bottom: 0;
	height: 298px;
	box-shadow: 2px 2px 5px 0 black;
	max-width: 400px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.inputforms input, .inputforms select {
	height: 30px;
	font-size: 20px;
	padding: 8px 16px;
	line-height: 20px;
	border-radius: 8px;
	text-align: center;
	width: 70%;
}

.inputforms select {
	height: 45px;

}

#popup {
	position: fixed;
	top: 0;
	left: 0;
	background-color: #2D2D2D;
	z-index: 1;
	bottom: 0;
	right: 0;
}

#wrapper {
	flex: 1;
	padding: 1rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

#container {
	position: absolute;
	background-color: #2d2d2d;
	border-radius: 3px;
	text-align: center;
	margin-bottom: 10px;
	padding: 2px 6px 2px 6px;
	display: inline;
	margin-right: auto;
	margin-left: auto;
	color: #ffffff;
	bottom: 2rem;
	width: 80%;
	z-index:9999;
	max-width: 440px;
}

#container.warning {
	background-color: #f2c32c;
	color: black;
}

#container.danger {
	background-color: darkred;
	color: white;
}

#infobox {
	width: 375px;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
	padding: 3px 3px 3px 3px;
	margin-bottom: 3px;
}

#ulistwrapper {
	flex: 1;
	color: black;
	border-right: 1px solid black;
	padding-right: 1rem;
	order: -1;
	max-width: 33%;
}

#historywrapper.hidden + #ulistwrapper {
	border-right: none;
	padding-right: 0;
	max-width: 100%;
}

.history {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
	margin-bottom: 0.5rem;
	color: grey;
}

.history:first-child {
	color: #000000;
}



#info {
	color: black;
	flex: 1;
	display: flex;
	align-items: center;
	font-size: 1rem;
	justify-content: flex-start;
	min-height: 300px;

}

#info > div {
	display: flex;
	flex-direction: column;
}

#historywrapper {
	flex: 2;
	color: black;
	padding-left: 1rem;
}

#history, #users {
	display: flex;
	flex-direction: column;
	position: relative;
	height: calc(100% - 2.1rem);
	overflow: auto;
	margin-top: 0.75rem;
}

#users span {
	color: red;
}

#users > div {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

#buzzbutton {
	height: 90%;
	margin-top: 0;
	max-height: 500px;
	max-width: 500px;
	font-size: 3rem;
}

#togglesettings, #showQRCode, #clearHistShortBtn {
	height: 45px;
	width: 45px;
	padding: 8px;
	font-size: 2rem;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 2rem;
	border-radius: 1rem;
	box-shadow: 0 0 2px 0px rgba(0,0,0,0.5);
	margin-top: 0;
	color: black;
}

#showQRCode {
	margin-left: 1rem;
	position: fixed;
	top: 6rem;
	left: 0;
}

#clearHistShortBtn {
	position: absolute;
	right: 0;
	width: 35px;
	height: 35px;
	font-size: 1.2rem;
	top: -0.3rem;
}

/* Custom Scrollbar */

::-webkit-scrollbar-thumb{ background-color: rgba(204, 204, 204, 0.6); border-radius: 20.3125rem; }

@media screen and (min-width: 760px) {
	::-webkit-scrollbar{
		width: 1rem;
	}

	::-webkit-scrollbar-thumb {
		background-color: rgba(204, 204, 204, 0.6);
		border-radius: 9999px;
		background-clip: padding-box;
		border: 4px solid rgba(0, 0, 0, 0);
	}

}

input,
textarea,
button,
select,
a {
	-webkit-tap-highlight-color: transparent;
}

/* QR CODE DISPLAY CSS */
html.qr {
	background-color: #2D2D2D;
}

body.qr {
	display: flex;
	flex-direction: column;
	margin: 1rem;
	overflow: auto;
	background-color: white;
	height: calc(100% - 2rem);
}

.qr h1 {
	text-align: center;
	font-weight: bold;
	color: black;
	font-size: 3rem;
	position: absolute;
	left: 0;
	right: 0;
}

.qr #canvas {
	margin: auto;
}