* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	background: linear-gradient(to right, #6f5370, #130733);
	/* background: #785c78; */
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: "UnifrakturMaguntia", system-ui;
	position: relative;
	overflow: hidden;
}

body::before {
	content: "";
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	pointer-events: none;
	z-index: 1;
}

.firefly {
	position: fixed;
	width: 2px;
	height: 2px;
	background: radial-gradient(circle, #ffffff, #e8e8ff);
	border-radius: 50%;
	pointer-events: none;
	z-index: 0;
	box-shadow: 0 0 8px 2px #ffffff;
}

.firefly:nth-child(1) {
	animation: firefly-movement-1 16s infinite ease-in-out;
}

.firefly:nth-child(2) {
	animation: firefly-movement-2 20s infinite ease-in-out;
}

.firefly:nth-child(3) {
	animation: firefly-movement-3 18s infinite ease-in-out;
}

.firefly:nth-child(4) {
	animation: firefly-movement-4 22s infinite ease-in-out;
}

.firefly:nth-child(5) {
	animation: firefly-movement-5 15s infinite ease-in-out;
}

.firefly:nth-child(6) {
	animation: firefly-movement-6 24s infinite ease-in-out;
}

@keyframes firefly-movement-1 {
	0% {
		left: 10%;
		top: 20%;
		opacity: 0;
	}
	10% {
		opacity: 0.1;
	}
	50% {
		left: 30%;
		top: 40%;
		opacity: 0.4;
	}
	90% {
		opacity: 0.2;
	}
	100% {
		left: 50%;
		top: 10%;
		opacity: 0;
	}
}

@keyframes firefly-movement-2 {
	0% {
		left: 80%;
		top: 30%;
		opacity: 0;
	}
	10% {
		opacity: 1;
	}
	50% {
		left: 60%;
		top: 50%;
		opacity: 0.7;
	}
	90% {
		opacity: 1;
	}
	100% {
		left: 20%;
		top: 20%;
		opacity: 0;
	}
}

@keyframes firefly-movement-3 {
	0% {
		left: 50%;
		top: 80%;
		opacity: 0;
	}
	10% {
		opacity: 1;
	}
	50% {
		left: 65%;
		top: 30%;
		opacity: 0.75;
	}
	90% {
		opacity: 1;
	}
	100% {
		left: 35%;
		top: 10%;
		opacity: 0;
	}
}

@keyframes firefly-movement-4 {
	0% {
		left: 20%;
		top: 10%;
		opacity: 0;
	}
	10% {
		opacity: 1;
	}
	50% {
		left: 40%;
		top: 60%;
		opacity: 0.8;
	}
	90% {
		opacity: 1;
	}
	100% {
		left: 70%;
		top: 40%;
		opacity: 0;
	}
}

@keyframes firefly-movement-5 {
	0% {
		left: 70%;
		top: 60%;
		opacity: 0;
	}
	10% {
		opacity: 1;
	}
	50% {
		left: 45%;
		top: 20%;
		opacity: 0.85;
	}
	90% {
		opacity: 1;
	}
	100% {
		left: 15%;
		top: 50%;
		opacity: 0;
	}
}

@keyframes firefly-movement-6 {
	0% {
		left: 35%;
		top: 50%;
		opacity: 0;
	}
	10% {
		opacity: 1;
	}
	50% {
		left: 55%;
		top: 15%;
		opacity: 0.7;
	}
	90% {
		opacity: 1;
	}
	100% {
		left: 75%;
		top: 70%;
		opacity: 0;
	}
}

.container {
	text-align: center;
	padding: 40px 20px;
	position: relative;
	z-index: 2;
}

.title {
	font-family: "UnifrakturMaguntia", system-ui;
	font-size: 3.5rem;
	color: #ffffff;
	margin-bottom: 60px;
	letter-spacing: 2px;
}

/* Timer Display */
.timer-display {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 15px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.time-unit {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.time-value {
	font-family: "UnifrakturMaguntia", system-ui;
	font-size: 3rem;
	color: #ffffff;
	line-height: 1;
	display: block;
}

.time-label {
	font-family: "Shafarik", system-ui;
	font-size: 1rem;
	color: #ffffff;
	margin-top: 8px;
	letter-spacing: 1px;
}

.time-separator {
	font-family: "UnifrakturMaguntia", system-ui;
	font-size: 3rem;
	color: #cbd5e0;
	margin: 0 5px;
	line-height: 1;
}

/* Memorial Section */
.memorial-section {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	gap: 60px;
	position: relative;
	width: 100%;
}

.ground-base {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	height: 30%;
	background: #03181f;
	z-index: 0;
	pointer-events: none;
}

/* Gravestone */
.gravestone {
	position: relative;
	width: 200px;
	height: 230px;
	top: 20px;
}

.gravestone::after {
	content: "";
	position: absolute;
	bottom: -80px;
	left: 10%;
	transform: translateX(-50%);
	width: 190px;
	height: 80px;
	background: rgba(0, 0, 0, 0.2);
	z-index: 1;
	filter: blur(8px);
	transform: skewX(20deg);
	border: 1px solid rgba(255, 221, 0, 0.2);
}

.gravestone-body {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 180px;
	height: 230px;
	background: linear-gradient(135deg, #68727d 0%, #272a2e 100%);
	border-radius: 80px 80px 0px 0px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	box-shadow:
		inset 0 2px 5px rgba(255, 255, 255, 0.3),
		inset 0 -2px 5px rgba(0, 0, 0, 0.2);
	animation: gravestone-glow 1.5s infinite;
}

@keyframes gravestone-glow {
	0%,
	19%,
	21%,
	23%,
	25%,
	54%,
	56%,
	100% {
		filter: brightness(1.2) drop-shadow(0 0 60px rgba(255, 200, 100, 0.3));
	}
	20%,
	24%,
	55% {
		filter: brightness(1.05) drop-shadow(0 0 5px rgba(255, 200, 100, 0.1));
	}
}

.gravestone-text {
	font-family: "Shafarik", system-ui;
	font-size: 1.2rem;
	color: #ffffff;
	margin-bottom: 5px;
}

a.gravestone-link {
	display: inline-block;
	text-decoration: none;
	font-size: 2.5rem;
	opacity: 0.7;
	margin-left: 150px;
}

a.gravestone-link:hover {
	animation: jiggle 0.5s infinite;
	opacity: 1;
}

@keyframes jiggle {
	0% {
		transform: translate(0, 0);
	}
	25% {
		transform: translate(-2px, 0);
	}
	50% {
		transform: translate(2px, 0);
	}
	75% {
		transform: translate(-2px, 0);
	}
	100% {
		transform: translate(0, 0);
	}
}

.gravestone-subtitle {
	font-family: "Shafarik", system-ui;
	font-size: 0.9rem;
	color: #cbd5e0;
	margin-bottom: 8px;
	letter-spacing: 1px;
}

.gravestone-dates {
	font-family: "Shafarik", system-ui;
	font-size: 1.2rem;
	color: #ffffff;
}

/* Candles */
.candle {
	position: relative;
	width: 0px;
	height: 120px;
	top: 10px;
}

.candle::before {
	content: "";
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 20px;
	height: 100px;
	background: linear-gradient(to top, #ffffff, #fffacd);
	border-radius: 50% 50% 0 0;
	box-shadow:
		inset -2px 0 5px rgba(0, 0, 0, 0.3),
		0 0 20px rgba(255, 200, 0, 0.4);
	animation: flicker 1.5s infinite;
}

.candle::after {
	content: "";
	position: absolute;
	bottom: 100px;
	left: 50%;
	transform: translateX(-50%);
	width: 12px;
	height: 20px;
	background: radial-gradient(ellipse at center, #ffdd00, #ff8800);
	border-radius: 50%;
	animation: flicker-glow 1.5s infinite;
	filter: blur(2px);
}

.left-candle::before {
	animation: flicker-left 1.5s infinite;
}

.left-candle::after {
	animation: flicker-glow-left 1.5s infinite;
}

.right-candle::before {
	animation: flicker-right 1.5s infinite;
}

.right-candle::after {
	animation: flicker-glow-right 1.5s infinite;
}

/* Flickering animations */
@keyframes flicker {
	0%,
	19%,
	21%,
	23%,
	25%,
	54%,
	56%,
	100% {
		box-shadow:
			inset -2px 0 5px rgba(0, 0, 0, 0.3),
			0 0 20px rgba(255, 200, 0, 0.4);
	}
	20%,
	24%,
	55% {
		box-shadow:
			inset -2px 0 5px rgba(0, 0, 0, 0.5),
			0 0 5px rgba(255, 200, 0, 0.1);
	}
}

@keyframes flicker-left {
	0%,
	19%,
	21%,
	23%,
	25%,
	54%,
	56%,
	100% {
		box-shadow:
			inset -2px 0 5px rgba(0, 0, 0, 0.3),
			0 0 20px rgba(255, 200, 0, 0.4);
	}
	20%,
	24%,
	55% {
		box-shadow:
			inset -2px 0 5px rgba(0, 0, 0, 0.5),
			0 0 5px rgba(255, 200, 0, 0.1);
	}
}

@keyframes flicker-right {
	0%,
	19%,
	21%,
	23%,
	25%,
	54%,
	56%,
	100% {
		box-shadow:
			inset -2px 0 5px rgba(0, 0, 0, 0.3),
			0 0 20px rgba(255, 200, 0, 0.4);
	}
	20%,
	24%,
	55% {
		box-shadow:
			inset -2px 0 5px rgba(0, 0, 0, 0.1),
			0 0 5px rgba(255, 200, 0, 0.1);
	}
}

@keyframes flicker-glow {
	0%,
	19%,
	21%,
	23%,
	25%,
	54%,
	56%,
	100% {
		opacity: 1;
	}
	20%,
	24%,
	55% {
		opacity: 0.4;
	}
}

@keyframes flicker-glow-left {
	0%,
	19%,
	21%,
	23%,
	25%,
	54%,
	56%,
	100% {
		opacity: 1;
	}
	20%,
	24%,
	55% {
		opacity: 0.4;
	}
}

@keyframes flicker-glow-right {
	0%,
	19%,
	21%,
	23%,
	25%,
	54%,
	56%,
	100% {
		opacity: 1;
	}
	20%,
	24%,
	55% {
		opacity: 0.4;
	}
}

/* Responsive design */
@media (max-width: 768px) {
	.title {
		font-size: 2.5rem;
		margin-bottom: 40px;
	}

	.timer-display {
		gap: 10px;
	}

	.time-value {
		font-size: 2.5rem;
	}

	.time-label {
		font-size: 0.8rem;
	}

	.time-separator {
		font-size: 2rem;
	}

	.memorial-section {
		gap: 40px;
	}

	.gravestone::after {
		width: 150px;
	}
}

@media (max-width: 480px) {
	.title {
		font-size: 1.8rem;
		margin-bottom: 30px;
	}

	.timer-display {
		gap: 8px;
	}

	.time-value {
		font-size: 1.8rem;
	}

	.time-label {
		font-size: 0.7rem;
	}

	.time-separator {
		font-size: 1.5rem;
		margin: 0 3px;
	}

	.memorial-section {
		gap: 25px;
	}
}
