* {
	font-family: "Courier New", Courier, monospace;
}

body {
	margin: 0;
	overflow: hidden;
	position: absolute;
}

canvas {
	position: absolute;
}

.inventoryCanvas {
	position: relative;
	padding: 0;
	margin: auto;
	display: block;
	/* background-color: #8d8d8d; */
}

.itemLabel {
	background-color: rgba(0, 0, 0, 0.1);
	padding: 0.25em;
}

.guiContainer {
	position: relative;
}

.button {
	font-size: inherit;
	font-family: inherit;
	background: linear-gradient(#d34c62, #d34c62, #93205d);
	color: #ffffff;
	text-shadow: -2px 0 black, 0 2px black, 2px 0 black, 0 -2px black;
	border: 2px solid black;
	border-radius: 5px;
	font-weight: bold;
	box-shadow: inset 0 0.7em 0 rgba(255, 255, 255, 0.2);
	padding: 5px 20px;
	transition: all 0.1s;
	cursor: pointer;
}

.button:hover {
	box-shadow: inset 0 0.7em 0 rgba(255, 255, 255, 0.2),
		inset 0 0 0.5em rgba(0, 0, 255, 0.2);
}

.button:active {
	box-shadow: inset 0 0.1em 0 rgba(255, 255, 255, 0.2),
		inset 0 0 0.5em rgba(0, 0, 255, 0.2);
}

.listButton {
	position: relative;
	font-size: inherit;
	font-family: inherit;
	background-color: transparent;
	color: white;
	text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
	width: 100%;
	text-align: left;
}

.checkboxContainer {
	display: block;
	position: relative;
	margin-bottom: 12px;
	cursor: pointer;
	font-size: inherit;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	color: cyan;
}

.checkboxContainer input {
	position: absolute;
	opacity: 0;
	cursor: pointer;
	height: 0;
	width: 0;
}

.checkmark {
	position: absolute;
	top: 0.05em;
	line-height: 0.7em;
	width: 1.5em;
	background-color: transparent;
	border: 0.1em solid cyan;
	border-radius: 10%;
	box-shadow: inset 0 0 0 cyan;
	transition: all 0.2s;
	vertical-align: middle;
}

.checkmark:before {
	position: relative;
	left: 0.1em;
	content: "OFF";
	font-size: 0.6em;
	color: cyan;
}

.checkboxContainer:hover input ~ .checkmark {
	background-color: rgba(255, 255, 255, 0.2);
}

.checkboxContainer:hover input:checked ~ .checkmark {
	box-shadow: inset 1.6em 0 0 rgba(0, 255, 255, 0.8);
}

.checkboxContainer input:checked ~ .checkmark {
	box-shadow: inset 1.6em 0 0 cyan;
}

.checkboxContainer input:checked ~ .checkmark:before {
	position: relative;
	content: "ON";
	color: black;
	left: 1.2em;
	font-size: 0.6em;
}

.slider {
	-webkit-appearance: none;
	font-size: inherit;
	height: 0.5em;
	width: 10em;
	border-radius: 10%;
	background: rgba(0, 255, 255, 0.2);
	outline: none;
	-webkit-transition: all 0.2s;
	transition: all 0.2s;
}

.slider:hover {
	background: rgba(0, 255, 255, 0.4);
}

.slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 1em;
	height: 1em;
	border-radius: 50%;
	background: cyan;
	cursor: pointer;
}

.slider::-moz-range-thumb {
	width: 1em;
	height: 1em;
	border-radius: 50%;
	background: cyan;
	cursor: pointer;
}

.sliderLabel {
	font-size: inherit;
	color: cyan;
}

/* Replace the fixed sizing in the HTML with: */
html,
body {
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
}

.container {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 90%;
	max-width: 600px;
}

/* Make title responsive */
.title {
	font-size: clamp(2rem, 8vw, 5rem); /* Scales between 2rem and 5rem */
}

.menu-button {
	font-size: clamp(1rem, 2vw, 1.4rem);
	padding: clamp(12px, 2vh, 18px) clamp(20px, 4vw, 40px);
}

/* Iframe positioning and hiding */
iframe {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none;
	z-index: 999;
	display: none; /* Hidden by default */
}

/* Ensure canvas elements are properly positioned */
canvas {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
}

/* GUI container should not interfere */
.guiContainer {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 10;
}

/* Allow pointer events on GUI elements */
.guiContainer > * {
	pointer-events: auto;
}
