@charset "utf-8";
/* CSS Document 

Tooplate 2153 Fireworks Composer

https://www.tooplate.com/view/2153-fireworks-composer

*/

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root {
	--charcoal: #0a0a0f;
	--deep-burgundy: #8B2635;
	--wine-red: #C74B50;
	--champagne: #F4E7C3;
	--gold: #D4AF37;
	--emerald: #1B4D3E;
	--amber: #E07A5F;
	--ivory: #FFFEF7;
}

body {
	font-family: 'Work Sans', sans-serif;
	background: linear-gradient(135deg, var(--charcoal) 0%, #1a1a2e 100%);
	color: var(--champagne);
	overflow-x: hidden;
	min-height: 100vh;
}

h1,
h2,
h3 {
	font-family: 'Cormorant Garamond', serif;
	font-weight: 600;
}

#canvas {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	cursor: crosshair;
	z-index: 1;
}

.ui-container {
	position: relative;
	z-index: 10;
	pointer-events: none;
}

header {
	padding: 2rem 2rem 1rem;
	text-align: center;
	pointer-events: none;
}

h1 {
	font-size: clamp(2.5rem, 6vw, 4.5rem);
	font-weight: 600;
	letter-spacing: 0.02em;
	background: linear-gradient(135deg, var(--champagne) 0%, var(--gold) 50%, var(--wine-red) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	margin-bottom: 0.5rem;
	text-shadow: 0 0 40px rgba(212, 175, 55, 0.3);
}

.subtitle {
	font-size: clamp(0.9rem, 2vw, 1.1rem);
	color: var(--champagne);
	opacity: 0.8;
	font-weight: 300;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

.controls {
	position: fixed;
	bottom: 2rem;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(10, 10, 15, 0.4);
	backdrop-filter: blur(20px);
	border: 1px solid rgba(244, 231, 195, 0.15);
	border-radius: 20px;
	padding: 1.2rem 2.5rem;
	display: flex;
	gap: 2.5rem;
	align-items: center;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
	max-width: 98%;
	flex-wrap: nowrap;
	justify-content: center;
	pointer-events: auto;
}

.controls * {
	pointer-events: auto;
}

.control-group {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.control-label {
	font-size: 0.65rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--gold);
	font-weight: 500;
}

.color-palette {
	display: flex;
	gap: 0.4rem;
}

.color-option {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 2px solid transparent;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
}

.color-option:hover {
	transform: scale(1.1);
	box-shadow: 0 0 20px currentColor;
}

.color-option.active {
	border-color: var(--champagne);
	box-shadow: 0 0 20px currentColor;
}

.color-option.burgundy {
	background: #FF5A6E;
}

.color-option.gold {
	background: #FFD700;
}

.color-option.emerald {
	background: #3FE0A0;
}

.color-option.purple {
	background: #B377FF;
}

.color-option.champagne {
	background: #FFFEF7;
}

.firework-types {
	display: flex;
	gap: 0.4rem;
}

.type-btn {
	padding: 0.5rem 0.9rem;
	background: rgba(139, 38, 53, 0.3);
	border: 1px solid var(--wine-red);
	border-radius: 10px;
	color: var(--champagne);
	cursor: pointer;
	font-family: 'Work Sans', sans-serif;
	font-size: 0.75rem;
	font-weight: 500;
	transition: all 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.type-btn:hover {
	background: rgba(139, 38, 53, 0.5);
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(139, 38, 53, 0.4);
}

.type-btn.active {
	background: var(--wine-red);
	border-color: var(--gold);
	box-shadow: 0 4px 20px rgba(199, 75, 80, 0.6);
}

.action-buttons {
	display: flex;
	gap: 0.6rem;
}

.action-btn {
	padding: 0.6rem 0.8rem;
	background: linear-gradient(135deg, var(--deep-burgundy) 0%, var(--wine-red) 100%);
	border: 1px solid var(--gold);
	border-radius: 12px;
	color: var(--champagne);
	cursor: pointer;
	font-family: 'Work Sans', sans-serif;
	font-size: 0.8rem;
	font-weight: 500;
	transition: all 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	min-width: 94px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.action-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 25px rgba(212, 175, 55, 0.4);
	background: linear-gradient(135deg, var(--wine-red) 0%, var(--deep-burgundy) 100%);
}

.action-btn.secondary {
	background: rgba(27, 77, 62, 0.6);
	border-color: var(--emerald);
}

.action-btn.secondary:hover {
	background: var(--emerald);
}

.play-icon,
.stop-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-right: 0.4rem;
	font-size: 0.7rem;
	width: 0.8rem;
	height: 0.8rem;
}

.stop-icon {
	display: none;
}

.action-btn.playing .play-icon {
	display: none;
}

.action-btn.playing .stop-icon {
	display: inline-block;
}

.eye-icon {
	font-size: 0.9rem;
}

.eye-btn {
	position: fixed;
	top: 2rem;
	left: 2rem;
	width: 32px;
	height: 32px;
	background: rgba(10, 10, 15, 0.4);
	backdrop-filter: blur(20px);
	border: 1px solid rgba(244, 231, 195, 0.15);
	border-radius: 6px;
	color: var(--champagne);
	font-size: 0.9rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	z-index: 100;
	pointer-events: auto;
}

.eye-btn:hover {
	background: rgba(139, 38, 53, 0.5);
	transform: scale(1.05);
	box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
}

body.hide-ui .eye-btn {
	transform: translateX(-50%);
	background: rgba(27, 77, 62, 0.6);
	opacity: 0.5;
}

body.hide-ui .eye-btn:hover {
	transform: translateX(0);
	opacity: 1;
}

#toggleUI {
	min-width: auto;
	padding: 0.6rem;
}

body.hide-ui #toggleUI {
	background: rgba(27, 77, 62, 0.8);
}

body.hide-ui header,
body.hide-ui .fullscreen-btn,
body.hide-ui .developer-credit,
body.hide-ui .controls {
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.instructions {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	text-align: center;
	pointer-events: none;
	opacity: 0;
	animation: fadeInOut 4s ease-in-out;
}

@keyframes fadeInOut {

	0%,
	100% {
		opacity: 0;
	}

	50% {
		opacity: 1;
	}
}

.instructions h2 {
	font-size: 2rem;
	color: var(--gold);
	margin-bottom: 1rem;
}

.instructions p {
	font-size: 1.2rem;
	color: var(--champagne);
	opacity: 0.9;
}

.year-display {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-family: 'Cormorant Garamond', serif;
	font-size: clamp(3rem, 8vw, 6rem);
	font-weight: 700;
	color: rgba(244, 231, 195, 0.05);
	pointer-events: none;
	letter-spacing: 0.05em;
	z-index: 5;
	text-align: center;
	white-space: nowrap;
}

.year-line1,
.year-line2 {
	display: inline;
}

.year-line2 {
	font-size: 1.15em;
}

.year-line2::before {
	content: ' ';
}

@media (max-width: 1000px) {
	.controls {
		flex-wrap: wrap;
		max-width: 90%;
	}
}

@media (max-width: 768px) {
	.controls {
		bottom: 1rem;
		padding: 1rem;
		gap: 1rem;
	}

	.action-buttons {
		width: 100%;
		justify-content: center;
	}

	h1 {
		font-size: 2rem;
	}

	.year-display {
		white-space: normal;
		max-width: 90%;
	}

	.year-line1,
	.year-line2 {
		display: block;
	}

	.year-line2::before {
		content: '';
	}
}

.fullscreen-btn {
	position: fixed;
	top: 2rem;
	right: 2rem;
	width: 50px;
	height: 50px;
	background: rgba(10, 10, 15, 0.4);
	backdrop-filter: blur(20px);
	border: 1px solid rgba(244, 231, 195, 0.15);
	border-radius: 12px;
	color: var(--champagne);
	font-size: 1.5rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	z-index: 100;
	pointer-events: auto;
}

.fullscreen-btn:hover {
	background: rgba(139, 38, 53, 0.5);
	transform: scale(1.05);
	box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
}

.developer-credit {
	position: fixed;
	bottom: 2rem;
	right: 2rem;
	font-size: 0.85rem;
	color: var(--champagne);
	opacity: 0.7;
	z-index: 100;
	transition: opacity 0.3s ease;
	pointer-events: none;
}

.developer-credit a {
	color: var(--gold);
	text-decoration: none;
	font-weight: 500;
	transition: color 0.3s ease;
	pointer-events: auto;
}

.developer-credit a:hover {
	color: var(--wine-red);
	opacity: 1;
}

@media (max-width: 768px) {
	.fullscreen-btn {
		top: 1rem;
		right: 1rem;
		width: 40px;
		height: 40px;
		font-size: 1.2rem;
	}

	.eye-btn {
		top: 1rem;
		left: 1rem;
		width: 32px;
		height: 32px;
		font-size: 0.85rem;
	}

	body.hide-ui .eye-btn {
		transform: translateX(-50%);
	}

	.developer-credit {
		bottom: 1rem;
		right: 1rem;
		left: auto;
		font-size: 0.7rem;
	}
}