body {
	margin: 0;
	overflow: hidden;
	background-color: white;
	color: black;
}

label.button {
	line-height: 3rem;
	color: black; /* Add this line to ensure button text is black */
}

:not(label):has(> input:is([type="checkbox"],[type="radio"]):not(:checked)) {
    display: none !important;
}

#container {
	position: relative;
	touch-action: none;
}

#container > #view {
	background-color: white; /* Change background color to white */
	height: 100vh;
	touch-action: none;
	width: 100vw;
}

#container .user-interface > section {
	margin: 10px;
	max-width: 50vmin;
	overflow: hidden;
	position: absolute;
	z-index: 0;
	background-color: white; /* Change background color to white */
	color: black; /* Add this line to ensure section text is black */
}

#container .user-interface .bottom {
	bottom: 0;
}

#container .user-interface .left {
	left: 0;
}

#container .user-interface .middle {
	bottom: 0;
	height: fit-content;
	margin-bottom: auto;
	margin-top: auto;
	top: 0;
}

#container .user-interface .right {
	right: 0;
	text-align: right;
}

#container .user-interface .top {
	top: 0;
}

#container .user-interface :is(button, .button, select) {
	background-color: transparent;
	color: black; /* Add this line to ensure button and select text is black */
}

#container .user-interface select option {
	background-color: white; /* Change background color to white */
	color: black; /* Add this line to ensure option text is black */
}

#container .user-interface section label[for]::before {
	content: "Show ";
	color: black; /* Add this line to ensure label text is black */
}

#container .user-interface section:has(#toolbar:checked) > label[for=toolbar]::before,
#container .user-interface section:has(#levels:checked) > label[for=levels]::before {
	content: "Hide ";
	color: black; /* Add this line to ensure label text is black */
}

#container .user-interface .option {
	-webkit-user-drag: element;
	display: block;
}
