html {
	font-size: 16px;
}
@media (max-width: 767px) {
	html {
		font-size: 14px;
	}
}
body {
	background-color: #f5f5f5;
}

/* General */
h1, h2, h3, h4, h5, h6 {
	color: var(--main-color);
}
h1 {
	font-size: 2rem;
	font-weight: 700;
	margin-bottom: 1rem;
}
h2 {
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 1rem;
}
h3 {
	font-size: 1.25rem;
	font-weight: 700;
	margin-bottom: 1rem;
}
h4 {
	font-size: 1rem;
	font-weight: 700;
	margin-bottom: 0.75rem;
}
p {
	font-size: 1rem;
	font-weight: 400;
	margin-bottom: 0.5rem;
}
a {
	color: var(--main-color);
	text-decoration: none;
}
a:hover {
	color: #003333;
}

.btn-outline-main {
	color: var(--main-color);
	border-color: var(--main-color);
}
.btn-outline-main:hover {
	color: #fff;
	background-color: var(--main-color);
}

input.has-error, select.has-error, textarea.has-error, .vscomp-ele.has-error .vscomp-toggle-button {
	border-color: #dc3545;
}
.vscomp-ele {
	max-width: 100% !important;
}


/****** Login */

#login-wrapper {
	padding-top: 20px;
	padding-bottom: 100px;
}

.login-box {
	background-color: #fff;
	border: 2px solid var(--main-color);
	width: 800px;
	max-width: 90%;
}

.login-box h2 {
	background-color: var(--main-color);
	color: #fff;
	padding: 0.5rem 1rem 1rem 1rem;
}

.login-box-content {
	padding: 1rem;
}

#canvas {
    position: fixed;
    top: 0;
    overflow-y: hidden;
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    pointer-events: none;
}


/****** Dashboard */
/* Navigation */
#select_event {
	margin: 4px;
	min-width: 200px;
}
.nav-link {
	display: block;
	padding: .5rem 1rem;
	text-decoration: none;
	transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
}

#navigation {
	background-color: var(--main-color);
	color: #fff;
}

#navigation a {
	color: #fff;
	border-right: 1px solid #fff;
}
#navigation a:hover, #navigation a.active {
	background-color: #003333;
}
#btn_account {
	border-right: none;
	border-left: 1px solid #fff;
}
#navigation a svg {
	width: 18px;
	margin-right: 2px;
}

#nav_account {
	position: relative;
}
#nav_account>.dropdown {
	position: absolute;
	top: calc(100% + 20px);
	right: 0;
	width: 100%;
	z-index: 1000;
	background-color: var(--main-color);
	opacity: 0;
	visibility: hidden;
	transition: all 0.2s ease-in-out;
}
#nav_account:hover>.dropdown {
	opacity: 1;
	visibility: visible;
	top: 100%;
}
#nav_account>.dropdown a {
	color: #fff;
	border-top: 1px solid #fff;
	border-left: 1px solid #fff;
}

@media (max-width: 991px){
	#navigation {
		position: relative;
		margin-bottom: 70px;
	}
	#navigation_features {
		border-top: 1px solid #fff;
		position: absolute;
		top: 100%;
		left: 0;
		width: 100%;
		z-index: 1000;
		display: flex;
		background-color: #666;
	}
	#navigation_features a {
		width: 100%;
		text-align: center;
		font-size: 0.8rem;
	}
	#navigation_features a span {
		display: block;
	}
}

@media (max-width: 767px){
	#navigation_event, #nav_account {
		width: 50%;
		border-left: 0px transparent;
	}
	#nav_account {
		text-align: right;
	}
}



/* Main content */
#dashboard {
	padding: 10px 16px;
}

#dashboard .element {
	background-color: #fff;
	border: 1px solid #ccc;
	padding: 1rem;
	margin-bottom: 1rem;
}

#top_buttons {
	display: flex;
	justify-content: center;
	margin-top: 20px;
	gap: 0.5rem 0.25rem;
	padding: 0 1rem;
	margin-bottom: 1rem;
}
#top_buttons>button {
	width: 300px;
	height: 60px;
	border-radius: 0;
	font-size: 1.25rem;
	font-weight: 700;
}
@media (max-width: 767px) {
	#top_buttons {
		flex-direction: column;
	}
	#top_buttons>button {
		width: 100%;
	}
}

#camera_qr_scan {
	width: 100%;
	display: block;
	position: relative;
}
#camera_qr_scan.inactive, #camera_qr_scan.inactive+#camera_qr_scan_overlay {
	display: none;
}

#camera_qr_scan_overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
}
#camera_qr_scan_overlay img {
	max-height: 80%;
	max-width: 80%;
	margin: auto;
}
