* {
	box-sizing: border-box;
}

body {
	background-color: black;
	/* 1x strength (original - subtle) */
	/* background-image:
		radial-gradient(
			circle at 20% 50%,
			rgba(229, 50, 46, 0.05) 0%,
			transparent 50%
		),
		radial-gradient(
			circle at 80% 80%,
			rgba(229, 50, 46, 0.03) 0%,
			transparent 50%
		); */

	/* 2x strength (moderate)
	background-image:
		radial-gradient(
			circle at 20% 50%,
			rgba(229, 50, 46, 0.1) 0%,
			transparent 50%
		),
		radial-gradient(
			circle at 80% 80%,
			rgba(229, 50, 46, 0.06) 0%,
			transparent 50%
		); */

	background-image:
		radial-gradient(
			circle at 20% 50%,
			rgba(229, 50, 46, 0.15) 0%,
			transparent 50%
		),
		radial-gradient(
			circle at 80% 80%,
			rgba(229, 50, 46, 0.09) 0%,
			transparent 50%
		);

	/* 4x strength (strong) */
	/*
	background-image:
		radial-gradient(
			circle at 20% 50%,
			rgba(229, 50, 46, 0.20) 0%,
			transparent 50%
		),
		radial-gradient(
			circle at 80% 80%,
			rgba(229, 50, 46, 0.12) 0%,
			transparent 50%
		); */
	margin: 0;
	padding: 0;
	min-height: 100vh;

	color: white;

	font-family: "Playwrite AU QLD", cursive;
	font-optical-sizing: auto;
	font-weight: 300;
	font-style: normal;
	font-size: 12px;

	display: flex;
	justify-content: center;
	align-items: center;
	padding: 50px;
}

.container {
	display: grid;
	grid-template-columns: 320px 1fr;
	gap: 50px;
	align-items: start;
	width: 100%;
	max-width: 1200px;
}

@media (max-width: 1024px) {
	body {
		padding: 20px;
		align-items: start;
	}

	.container {
		grid-template-columns: 1fr;
		gap: 30px;
		max-width: 600px;
	}

	canvas {
		width: 100% !important;
		height: auto !important;
	}

	div#sidebar {
		position: static !important;
		top: auto !important;
	}
}

div#sidebar {
	border: 2px solid rgba(255, 255, 255, 0.9);
	text-align: center;
	padding: 30px 20px;
	/* For glassmorphism to work, we need some transparency.
	   Since main bg is black, using a dark red tint instead */
	background: linear-gradient(
		135deg,
		rgba(229, 50, 46, 0.05) 0%,
		rgba(0, 0, 0, 0.8) 50%,
		rgba(229, 50, 46, 0.03) 100%
	);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	box-shadow: 0 10px 40px rgba(229, 50, 46, 0.1);
	transition:
		box-shadow 0.3s ease,
		transform 0.3s ease;
	position: sticky;
	top: 50px;
	max-height: calc(100vh - 100px);
	overflow-y: auto;
}

div#sidebar:hover {
	box-shadow: 0 15px 50px rgba(229, 50, 46, 0.15);
	transform: translateY(-2px);
}

h1 {
	font-family: "Love Light", cursive;
	font-weight: 400;
	font-style: normal;
	font-size: 50px;
	margin: 0 0 10px 0;
	letter-spacing: 2px;
	text-shadow: 0 0 20px rgba(229, 50, 46, 0.3);
}

h1 span {
	animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0.7;
	}
}

a {
	color: #e5322e;
	text-decoration: none;
	position: relative;
	transition: color 0.3s ease;
}

a::after {
	content: "";
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 0;
	height: 1px;
	background: #e5322e;
	transition: width 0.3s ease;
}

a:hover {
	color: #ff4a46;
}

a:hover::after {
	width: 100%;
}

canvas {
	border: 2px solid rgba(255, 255, 255, 0.9);
	box-shadow: 0 10px 40px rgba(229, 50, 46, 0.1);
	width: 100%;
	height: auto;
}

button {
	font-family: "Playwrite AU QLD", cursive;
	font-optical-sizing: auto;
	font-weight: 300;
	font-style: normal;
	font-size: 12px;

	color: white;
	background: black;
	border: 2px solid white;
	padding: 8px 16px;
	cursor: pointer;
	transition: all 0.3s ease;
}

button:hover {
	background: #e5322e;
	border-color: #e5322e;
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(229, 50, 46, 0.3);
}

button:active {
	transform: translateY(0);
}

textarea {
	background: rgba(0, 0, 0, 0.5);
	color: white;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 4px;
	display: block;
	margin: 20px auto;
	padding: 10px;
	width: 90%;
	height: 250px;
	font-family: "Courier New", monospace;
	font-size: 13px;
	line-height: 1.5;
	resize: vertical;
	transition: all 0.3s ease;
}

/* Custom scrollbar for textarea */
textarea::-webkit-scrollbar {
	width: 10px;
}

textarea::-webkit-scrollbar-track {
	background: rgba(0, 0, 0, 0.3);
	border-radius: 5px;
}

textarea::-webkit-scrollbar-thumb {
	background: rgba(229, 50, 46, 0.3);
	border-radius: 5px;
	border: 1px solid rgba(255, 255, 255, 0.1);
}

textarea::-webkit-scrollbar-thumb:hover {
	background: rgba(229, 50, 46, 0.5);
}

/* Firefox scrollbar */
textarea {
	scrollbar-width: thin;
	scrollbar-color: rgba(229, 50, 46, 0.3) rgba(0, 0, 0, 0.3);
}

textarea:focus {
	outline: none;
	border-color: #e5322e;
	box-shadow: 0 0 15px rgba(229, 50, 46, 0.2);
	background: rgba(0, 0, 0, 0.8);
}

textarea::placeholder {
	color: rgba(255, 255, 255, 0.4);
	font-style: italic;
}

select {
	background-color: rgba(0, 0, 0, 0.5);
	color: white;
	border: 2px solid rgba(255, 255, 255, 0.5);
	border-radius: 4px;
	padding: 8px 12px;
	width: 90%;
	cursor: pointer;
	transition: all 0.3s ease;

	font-family: "Playwrite AU QLD", cursive;
	font-optical-sizing: auto;
	font-weight: 300;
	font-style: normal;
	font-size: 12px;
}

select:hover {
	border-color: rgba(255, 255, 255, 0.9);
	background-color: rgba(0, 0, 0, 0.8);
}

select:focus {
	outline: none;
	border-color: #e5322e;
	box-shadow: 0 0 10px rgba(229, 50, 46, 0.2);
}

.keyboard-hint {
	display: inline-block;
	background: rgba(229, 50, 46, 0.2);
	border: 1px solid rgba(229, 50, 46, 0.5);
	border-radius: 3px;
	padding: 6px 12px;
	margin: 10px 0;
	font-size: 11px;
	letter-spacing: 0.5px;
	animation: fadeIn 0.5s ease;
	cursor: pointer;
	font-family: "Playwrite AU QLD", cursive;
	font-weight: 300;
	color: white;
	transition: all 0.3s ease;
}

.keyboard-hint:hover {
	background: rgba(229, 50, 46, 0.4);
	border-color: rgba(229, 50, 46, 0.8);
	transform: translateY(-1px);
	box-shadow: 0 3px 10px rgba(229, 50, 46, 0.2);
}

.keyboard-hint:active {
	transform: translateY(0);
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(-5px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Custom Cursor Styles */
* {
	cursor: none !important;
}

.cursor-dot {
	position: fixed;
	top: 0;
	left: 0;
	width: 8px;
	height: 8px;
	background-color: #e5322e;
	border-radius: 50%;
	pointer-events: none;
	z-index: 9999;
	transform: translate(-50%, -50%);
	transition:
		transform 0.1s ease,
		opacity 0.2s ease;
	mix-blend-mode: screen;
}

.cursor-outline {
	position: fixed;
	top: 0;
	left: 0;
	width: 30px;
	height: 30px;
	border: 2px solid rgba(229, 50, 46, 0.5);
	border-radius: 50%;
	pointer-events: none;
	z-index: 9998;
	transform: translate(-50%, -50%);
	transition: all 0.15s ease;
	animation: cursorPulse 2s infinite;
}

@keyframes cursorPulse {
	0% {
		transform: translate(-50%, -50%) scale(1);
		opacity: 1;
	}
	50% {
		transform: translate(-50%, -50%) scale(1.2);
		opacity: 0.5;
	}
	100% {
		transform: translate(-50%, -50%) scale(1);
		opacity: 1;
	}
}

/* Hover states for cursor */
.cursor-hover .cursor-dot {
	transform: translate(-50%, -50%) scale(1.5);
	background-color: #ff4a46;
}

.cursor-hover .cursor-outline {
	width: 50px;
	height: 50px;
	border-color: rgba(229, 50, 46, 0.8);
	animation: none;
}

/* Click state */
.cursor-click .cursor-dot {
	transform: translate(-50%, -50%) scale(0.5);
}

.cursor-click .cursor-outline {
	transform: translate(-50%, -50%) scale(0.8);
}
