@import url('https://fonts.googleapis.com/css2?family=Fruktur&display=swap');
*
{
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Fruktur', cursive;
}
section 
{
	position: absolute;
	width: 100%;
	height: 100vh;
	overflow: hidden;
	display: flex;
	justify-content: center;
	align-items: center;
	background: #0b061f;
}
.spider
{
	position: absolute;
	top: 0;
	animation: animateSpider 15s ease-in-out infinite;
}
@keyframes animateSpider 
{
	0%,100%
	{
		transform: translateY(-500px);
	}
	50% 
	{
		transform: translateY(0px);
	}
}
.pumpkin01
{
	position: absolute;
	top: 100px;
	right: 200px;
	animation: animatePumpkin 8s ease-in-out infinite;
}
.pumpkin02
{
	position: absolute;
	bottom: 20px;
	left: 50px;
	scale: 0.5;
	animation: animatePumpkin 4s ease-in-out infinite;
}
@keyframes animatePumpkin 
{
	0%,100% 
	{
		transform: translateY(-50px);
	}
	50% 
	{
		transform: translateY(50px);
	}
}
.spiderWeb 
{
	position: absolute;
	width: 100%;
	height: 100%;
	object-fit: cover;
	mix-blend-mode: screen;
}
h2
{
		position: relative;
    font-size: 12vw;
		font-weight: 100;
		display: flex;
    color: #0e3742;
    text-shadow: none;
    animation: animate 5s infinite linear;
}
 
@keyframes animate 
{
    0%,18%,20%,50.1%,60%,65.1%,80%,90.1%,92%
    {
			color: rgba(255, 255, 255, 0.1);
			text-shadow: none;
    }
    18.1%,20.1%,30%,50%,60.1%,65%,80.1%,90%,92.1%,100%
    {
			color: #ffac09;
			text-shadow: 0 0 10px #ffac09,
										0 0 20px #ffac09,
										0 0 40px #ffac09,
										0 0 80px #ffac09,
										0 0 160px #ffac09;
    }
}

/* Wrap text + promo side by side */
/* Stack title + promo vertically and center them */
.banner-content {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: clamp(10px, 3vw, 20px);
	text-align: center;
	z-index: 5; /* keep above pumpkins */
}


/* Adjust Halloween text alignment */
.banner-content h2 {
	display: flex;
	font-size: 6rem;
	color: #ffb100;
	text-shadow: 0 0 20px #ffb100, 0 0 40px #ff8000;
	animation: glowPulse 2s ease-in-out infinite alternate;
	letter-spacing: 2px;
	text-align: center;
}

/* Make the main title scale on any screen */
.banner h2 {
	/* adjust to your base styles if different */
	font-size: clamp(40px, 12vw, 120px);
	line-height: 1;
	text-align: center;
}


@keyframes glowPulse {
	0% {
		text-shadow: 0 0 10px #ffb100, 0 0 20px #ff8000;
	}

	100% {
		text-shadow: 0 0 30px #ffb100, 0 0 60px #ff8000;
	}
}

/* Promo box centered under the title */
.promo-box {
	display: flex;
	align-items: center;
	gap: 10px;
	background: rgba(0,0,0,.55);
	padding: 10px 14px;
	border-radius: 10px;
	border: 1px solid #ffb100;
	box-shadow: 0 0 15px rgba(255,177,0,.5);
	font-family: 'Poppins', sans-serif;
	color: #fff;
	font-size: clamp(14px, 3.5vw, 18px);
	z-index: 6; /* above pumpkins */
	max-width: 90vw;
}

#promo-code {
	font-weight: 700;
	color: #ffb100;
	text-shadow: 0 0 10px #ffb100, 0 0 20px #ff8000;
	word-break: keep-all;
}

/* Keep pumpkins behind the promo/title so they don't cover it */
.pumpkin01, .pumpkin02 {
	z-index: 2;
	pointer-events: none;
}

.spider, .spiderWeb {
	z-index: 1;
	pointer-events: none;
}

#copy-btn {
	background: #ffb100;
	border: none;
	padding: 8px 10px;
	border-radius: 8px;
	cursor: pointer;
	color: #000;
	font-weight: 700;
	font-size: 0.95em;
	transition: all 0.3s ease;
}

#copy-btn:hover {
	background: #ff9900;
	transform: scale(1.05);
}

/* Mobile layout tweaks */
@media (max-width: 768px) {
	.promo-box {
		padding: 10px 12px;
		gap: 8px;
	}

	/* Nudge/scale pumpkins so they don't overlap text */
	.pumpkin01,
	.pumpkin02 {
		transform: scale(.8);
	}
}

@media (max-width: 480px) {
	.promo-box {
		width: 92vw;
		justify-content: center;
		gap: 12px;
	}

	#copy-btn {
		padding: 10px 16px; /* bigger tap target */
	}

	/* Move pumpkins further to the corners & smaller */
	.pumpkin01 {
		transform: translateX(-10%) scale(.65);
	}

	.pumpkin02 {
		transform: translateX(10%) scale(.65);
	}
}