body {
	margin: 0;
	background-color: #000;
	color: #fff;
	font-family: Monospace;
	font-size: 13px;
	line-height: 24px;
	overscroll-behavior: none;
	overflow: hidden;
}

#canvas {
	width: 100%;
	height: 100%;
	/* background-color: lightgray; */
}

.controller {
	display: flex;
	flex-direction: column;
	gap: 15px;
	position: absolute;
	top: 50px;
	left: 50px;
	width: 200px;
	background: none;
	font-family: sans-serif;
	font-size: 1rem;
	z-index: 50;

	/* Show scrollbar when controller's section height reaches the height limit */
	max-height: calc(100vh - 100px);
	overflow-y: auto;
	padding-right: 5px;
	scrollbar-width: thin;
	scrollbar-color: white transparent;
}

.show-hide-section {
	display: flex;
	flex-direction: column;
	border: 2px solid white;
	border-radius: 0.5em;
	padding: 10px 0;
}

.show-hide-section .section-title {
	text-align: center;
	padding-bottom: 10px;
	border-bottom: 2px solid white;
}

.show-hide-section label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
	margin: 10px 10px 0;
}

.show-hide-section label span {
	display: flex;
	align-items: flex-start;
	gap: 2px;
}

.show-hide-section input[type="checkbox"] {
	width: 15px;
	height: 15px;
	cursor: pointer;
}

.hud {
	text-align: center;
	border: 2px solid white;
	border-radius: 0.5em;
	padding: 15px 10px;
}

.hud:hover {
	cursor: pointer;
	background: rgba(255, 255, 255, 0.5);
}

#top-right-alert {
	display: none;
	position: absolute;
	max-width: 250px;
	min-width: 150px;
	top: 30px;
	right: 50px;
	padding: 10px 20px;
	text-align: center;
	font-family: sans-serif;
	font-size: 1rem;
	border-radius: 0.5em;
	z-index: 100;
	background-color: #ffd6d6;
	color: black;
}

#top-right-alert .title {
	display: block;
	font-weight: 600;
	margin-bottom: -5px;
}

#top-right-alert .subtitle {
	display: block;
	font-size: 15px;
	font-weight: 600;
	margin-bottom: -5px;
}

#top-right-alert .timestamp {
	display: block;
	font-size: 14px;
	margin-bottom: 5px;
	color: slategray;
}

#top-right-alert .value {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 25px;
}

#top-right-alert .line-title {
	display: block;
	text-align: left;
	font-weight: 600;
	margin: 10px 0 0;
}

#top-right-alert ul {
	margin: 0;
	padding-left: inherit;
}

#top-right-alert .sensor-list-div {
	max-height: 250px;
	overflow-y: auto;
	scrollbar-width: thin;
}

.label {
	color: #FFF;
	font-family: sans-serif;
	padding: 2px;
	background: rgba(0, 0, 0, .6);
}

.label-value {
	color: rgb(172, 202, 253);
	font-family: sans-serif;
	padding: 10px;
	font-size: 20px;
	background: rgba(0, 0, 0, .6);
}

.legend-icon {
	width: 25px;
	height: 25px;
}
.legend-icon-text {
	margin-right: 5px;
	font-family: 'Times New Roman', Times, serif;
	font-weight: 500;
	font-size: 18px;
}
.legend-icon-screen {
	width: 15px;
	height: 15px;
	border: 1px solid whitesmoke;
	margin-right: 5px;
}
.legend-icon-outer-ring {
	position: relative;
	width: 17.5px;
	height: 17.5px;
	border: 1px solid whitesmoke;
	margin-right: 4px;
	border-radius: 50%;
}
.legend-icon-inner-ring {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 9px;
	height: 9px;
	border: 1px solid whitesmoke;
	border-radius: 50%;
}

a {
	color: #ff0;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

button {
	cursor: pointer;
	text-transform: uppercase;
}

#info {
	position: absolute;
	top: 0px;
	width: 100%;
	padding: 10px;
	box-sizing: border-box;
	text-align: center;
	-moz-user-select: none;
	-webkit-user-select: none;
	-ms-user-select: none;
	user-select: none;
	pointer-events: none;
	z-index: 1;
	/* TODO Solve this in HTML */
}

a,
button,
input,
select {
	pointer-events: auto;
}

.lil-gui {
	z-index: 2 !important;
	/* TODO Solve this in HTML */
}

@media all and (max-width: 640px) {
	.lil-gui.root {
		right: auto;
		top: auto;
		max-height: 50%;
		max-width: 80%;
		bottom: 0;
		left: 0;
	}
}

#overlay {
	position: absolute;
	font-size: 16px;
	z-index: 2;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	background: rgba(0, 0, 0, 0.7);
}

#overlay button {
	background: transparent;
	border: 0;
	border: 1px solid rgb(255, 255, 255);
	border-radius: 4px;
	color: #ffffff;
	padding: 12px 18px;
	text-transform: uppercase;
	cursor: pointer;
}

#notSupported {
	width: 50%;
	margin: auto;
	background-color: #f00;
	margin-top: 20px;
	padding: 10px;
}

@media (max-height: 767px) {
	.controller {
		font-size: 0.8rem;
		gap: 10px;
	}
	.show-hide-section {
		padding: 5px 0;
	}
	.show-hide-section .section-title {
		padding-bottom: 5px;
	}
	.show-hide-section label {
		margin: 5px 5px 0;
	}
	.hud {
		padding: 10px;
	}
	#top-right-alert {
		font-size: 16px;
	}
	#top-right-alert .subtitle {
		font-size: 14px;
	}
	#top-right-alert .timestamp {
		font-size: 13px;
	}
	#top-right-alert .value,
	#top-right-alert .line-title,
	#top-right-alert ul {
		font-size: 13px;
	}
}

@media (max-width: 767px) {
	.show-hide-section, .hud {
		display: none;
	}
}