
body {
	margin: 0;
	overflow: hidden;
	background-color: #111; /* dark base background */
	color: #00E8FF;
	font-family: "Allerta Stencil", monospace;
}
canvas {
	position: absolute;
	width: 100%;
	height: 100%;
	z-index: 1;
}
div {
	position: absolute;
	z-index: 10;
}
.cpanel {
	background: rgba(0, 20, 40, 0.8); /* dark bluish with transparency */
	font-family: "JetBrains Mono", monospace;
	box-shadow: 0 0 25px rgba(0, 232, 255, 0.4); /* glowing cyan shadow */
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 2px solid #00E8FF; /* glowing border */
	font-weight: bold;
	resize: both;
	overflow: auto;
	height: 80vh;
	padding: 10px;
	border-radius: 8px;
	width:600px;
	max-width:100%;
}
.cpanel input,
.cpanel select {
	border: none;
	border-bottom: 1px solid #00E8FF;
	background: #111;
	outline: none;
	color: #00E8FF;
	font-size: 1rem;
	margin-top: 0.5vh;
	margin-bottom: 0.5vh;
	padding: 5px;
}
button {
	align-items: center;
	appearance: none;
	background-color: #111;
	border-radius: 6px;
	border: 2px solid #00E8FF;
	box-shadow: 0 0 15px rgba(0, 232, 255, 0.4);
	color: #00E8FF;
	cursor: pointer;
	display: inline-flex;
	font-family: "JetBrains Mono", monospace;
	height: 48px;
	justify-content: center;
	line-height: 1;
	overflow: hidden;
	padding-left: 16px;
	padding-right: 16px;
	position: relative;
	text-align: center;
	text-decoration: none;
	transition: all .2s ease-in-out;
	user-select: none;
	font-size: 1rem;
	margin-bottom: 2vh;
}
button:hover {
	background: #00E8FF;
	color: #111;
	box-shadow: 0 0 25px #00E8FF;
	transform: translateY(-2px);
}
button:active {
	transform: translateY(2px);
	box-shadow: 0 0 10px #00E8FF inset;
}
section {
	vertical-align: top;
	display: inline-block;
	border: 2px solid #00E8FF;
	background-color: #0a0a0a;
	padding: 10px;
	margin: 10px;
	color: #00E8FF;
	font-weight: bold;
	text-shadow: 0 0 5px rgba(0, 232, 255, 0.8);
	transition: 0.3s;
}
section:hover{
	transition: 0.1s;
	transform: rotateZ(3deg) scale(1.1);
	background-color: #00E8FF;
	color: #111;
}

.spanimg {
	margin-top: 10px;
	max-width: 100px;
	max-height: 100px;
	filter: drop-shadow(0 0 10px #00E8FF);
}

hr{
	color: #00E8FF;
	background: #00E8FF;
}

::-webkit-scrollbar {
  width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #111;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #00E8FF;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #f00;
}

.popup-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.7);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 100;
}
.popup {
	margin-left:50%;
	transform: translate(-50%,50%);
	background: rgba(0, 20, 40, 0.95);
	border: 2px solid #00E8FF;
	box-shadow: 0 0 30px rgba(0, 232, 255, 0.6);
	border-radius: 12px;
	padding: 20px 30px;
	text-align: center;
	max-width: 400px;
	font-family: "JetBrains Mono", monospace;
}


.popup h2 {
	margin-top: 0;
	font-family: "Allerta Stencil", monospace;
	color: #f00;
	text-shadow: 0 0 10px #f00, 0 0 20px #f00;
}
.popup p {
	margin: 20px 0;
	font-size: 1rem;
	color: #00E8FF;
	text-shadow: 0 0 8px rgba(0,232,255,0.8);
}

@media (max-width: 1000px) {
	.popup {
		max-width: 95%;
		width: 95%;
		font-size: 1.1rem;
		padding: 25px 20px;
	}
	.popup p {
		font-size: 1.2rem;
	}
	.popup h2 {
		font-size: 2rem;
	}
	.cpanel {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 50vh;
		resize: none;   /* prevent weird dragging on mobile */
		overflow: auto;
		box-sizing: border-box;
	}
	
	canvas {
		position: absolute;
		left: 0;
		bottom: 0;
		width: 100%;
		height: 50vh !important;
		margin: 0;
		max-height: none; /* allow full 50vh */
	}
}