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

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 */
}

#info_left,
#info_left_closed {
	position: absolute;
	top: 0px;
	left: 20px;
	width: 20%;
	padding: 10px;
	box-sizing: border-box;
	font-family: Arial;
	text-align: center;
	-moz-user-select: none;
	-webkit-user-select: none;
	-ms-user-select: none;
	user-select: none;
	pointer-events: none;
	z-index: 1;
	text-align: left;
	background-color: #3e3e3eb0;
	border-bottom-left-radius: 10px;
	border-bottom-right-radius: 10px;
}

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

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

#hdr_backgrounds tr td img,
#hdr_models tr td img {
	width: 95% !important;
}

#mdl_bckgrounds {
	overflow-y: auto;
	/* vertical scrollbar if needed */
	overflow-x: hidden;
	/* NO horizontal scrollbar */
	position: relative;
}

#mdl_bckgrounds .close-modal {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 9999;
}

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

	#info_left {
		width: 100%;
		width: 90%;
		line-height: 1.3em;
	}

	#info_left_closed {
		width: 90%
	}
}

#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-width: 480px) {
	#internal_btn_container {
		display: grid !important;
		grid-template-columns: repeat(2, max-content) !important;
		gap: 8px !important;
		width: max-content !important;
		max-width: calc(100% - 24px) !important;
		box-sizing: border-box !important;
	}

	#internal_btn_container button,
	#internal_btn_container .btn {
		width: 100% !important;
		margin: 0 !important;
		box-sizing: border-box !important;
	}
}