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



#container {
	width: 100vw;
	height: 100vh;
	position: fixed;
	top: 0;
	left: 0;
}

#container canvas {
	display: block;
	width: 100%;
	height: 100%;
}

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: 0;
	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;
}

/* Dynamic mobile joystick styles */
#dynamicJoystick {
	position: fixed;
	width: 120px;
	height: 120px;
	background: rgba(255,255,255,0.15);
	border: 3px solid rgba(255,255,255,0.4);
	border-radius: 50%;
	touch-action: none;
	box-shadow: 0 0 20px rgba(255,255,255,0.2);
	display: none;
	z-index: 2000;
	pointer-events: none;
}

#dynamicJoystickKnob {
	position: absolute;
	width: 40px;
	height: 40px;
	background: rgba(255,255,255,0.9);
	border: 2px solid rgba(255,255,255,1);
	border-radius: 50%;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	touch-action: none;
	box-shadow: 0 0 15px rgba(255,255,255,0.5);
	transition: all 0.1s ease;
}

/* Container and interaction cursor (centered via CSS) */
#container {
	position: relative;
}

#crosshair {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 20px;
	height: 20px;
	transform: translate(-50%, -50%);
	pointer-events: none;
	z-index: 99;
	/* mix-blend-mode removed */
}

#crosshair::before,
#crosshair::after {
	content: '';
	position: absolute;
	background-color: rgba(255, 255, 255, 0.7);
}

#crosshair::before {
	width: 12px;
	height: 2px;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
}

#crosshair::after {
	width: 2px;
	height: 12px;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
}

#interactionCursor {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 16px;
	height: 16px;
	transform: translate(-50%,-50%);
	pointer-events: none;
	display: none;
	z-index: 3000; /* Ensure always above overlays/iframes */
}

#interactionCursor img {
	position: absolute;
	width: 100%;
	height: 100%;
	object-fit: contain;
	left: 0;
	top: 0;
}
