/* damn, you found this page? add a "I LOVE CSS AND COMIC SANS" to one of your form responses. */

/* did you check out marcelisshort.com ? hope you enjoyed meeting marcel, my friend who linked it as his instagram bio, prompting me to buy this domain LOL. */

/* all the ebst for your coreteam application! -daren */

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html,
body {
	height: 100%;
	width: 100%;
	overflow-x: hidden;
}

body {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(45deg, #ff00ff, #00ffff, #ffff00, #ff00ff);
	background-size: 400% 400%;
	animation: gradientShift 8s ease infinite;
}

h1 h2 h3 {
	z-index: 100;
}

.intro {
	position: relative;
	z-index: 10;
	width: 80%;
	margin: 0 auto;
	margin-bottom: 3rem;
	padding: 2rem 1.5rem;
	max-width: 1560px;
	background: transparent;
}

.intro h1,
.intro h2,
.intro h3 {
	font-family: "Comic Sans MS", "Comic Sans", cursive;
	text-align: center;
	margin-bottom: 1rem;
	background: linear-gradient(90deg, #ff00ff, #00ffff, #ffff00);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.intro h1 {
	font-size: clamp(1.5rem, 5vw, 2.5rem);
}

.intro h2 {
	font-size: clamp(1.25rem, 4vw, 2rem);
}

.intro p {
	font-family: "Trebuchet MS", "Lucida Sans", Arial, sans-serif;
	font-size: clamp(1.2rem, 4vw, 1.75rem);
	line-height: 1.7;
	color: #000;
	text-align: center;
	margin-bottom: 1rem;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.08);
}

.intro p:last-child {
	margin-bottom: 0;
}

.dynamic-text-overlay {
	position: relative;
	font-size: clamp(1.5rem, 4vw, 2.5rem);
	font-weight: bold;
	font-family: "Comic Sans MS", "Comic Sans", cursive;
	text-align: center;
	margin-bottom: 1.5rem;
	text-shadow:
		2px 2px 0px #ff00ff,
		4px 4px 0px #00ffff,
		6px 6px 0px #ffff00,
		0 0 15px rgba(255, 255, 255, 0.8);
	animation: rainbow 3s linear infinite;
	letter-spacing: 0.05em;
}

/* Tablet intro adjustments */
@media (max-width: 1024px) {
	.intro {
		max-width: 90%;
		padding: 1.75rem 1.5rem;
		z-index: 9999;
	}
}

/* Mobile intro adjustments */
@media (max-width: 768px) {
	.intro {
		max-width: 95%;
		width: 95%;
		padding: 1.5rem 1.25rem;
		border-width: 2px;
		max-height: 80vh;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		z-index: 9999;
	}

	.intro p {
		line-height: 1.6;
	}
}

/* Small mobile intro adjustments */
@media (max-width: 480px) {
	.intro {
		max-width: 95%;
		width: 95%;
		padding: 1.25rem 1rem;
	}

	.intro p {
		font-size: clamp(1rem, 3.5vw, 1.5rem);
		line-height: 1.55;
	}

	.intro h1 {
		font-size: clamp(1.25rem, 4vw, 2rem);
	}

	.intro h2 {
		font-size: clamp(1.1rem, 3.5vw, 1.75rem);
	}

	.dynamic-text-overlay {
		font-size: clamp(1.25rem, 3.5vw, 2rem);
	}
}

.gradient-background {
	position: fixed;
	inset: 0;
	z-index: 0;
	display: flex;
	align-items: center;
	justify-content: center;

	background: linear-gradient(45deg, #ff00ff, #00ffff, #ffff00, #ff00ff);
	background-size: 400% 400%;
	animation: gradientShift 8s ease infinite;
	pointer-events: none;
}

/* Animated gradient background */
@keyframes gradientShift {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}

/* Starfield effect */
body::before {
	content: "";
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image:
		radial-gradient(2px 2px at 20% 30%, white, transparent),
		radial-gradient(2px 2px at 60% 70%, white, transparent),
		radial-gradient(1px 1px at 50% 50%, white, transparent),
		radial-gradient(1px 1px at 80% 10%, white, transparent),
		radial-gradient(2px 2px at 90% 60%, white, transparent),
		radial-gradient(1px 1px at 33% 80%, white, transparent),
		radial-gradient(1px 1px at 15% 95%, white, transparent);
	background-size: 200% 200%;
	animation: sparkle 3s linear infinite;
	pointer-events: none;
	z-index: 1;
}

@keyframes sparkle {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0.5;
	}
}

.image-container {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 80vw;
	max-width: 600px;
	aspect-ratio: 3 / 4;
	height: auto;
	border: 10px ridge #ff00ff;
	box-shadow:
		0 0 20px #ff00ff,
		0 0 40px #00ffff,
		inset 0 0 20px rgba(255, 255, 255, 0.5);
	animation:
		borderPulse 2s ease-in-out infinite,
		float 6s ease-in-out infinite;
	z-index: 5;
	background: linear-gradient(45deg, #ff00ff, #ffff00, #00ffff, #ff00ff);
	background-size: 400% 400%;
	animation:
		borderPulse 2s ease-in-out infinite,
		float 6s ease-in-out infinite,
		gradientShift 3s ease infinite;
}

@keyframes borderPulse {
	0%,
	100% {
		box-shadow:
			0 0 20px #ff00ff,
			0 0 40px #00ffff,
			inset 0 0 20px rgba(255, 255, 255, 0.5);
	}
	50% {
		box-shadow:
			0 0 40px #00ffff,
			0 0 80px #ff00ff,
			inset 0 0 40px rgba(255, 255, 255, 0.8);
	}
}

@keyframes float {
	0%,
	100% {
		transform: translate(-50%, -50%) rotate(0deg);
	}
	25% {
		transform: translate(-50%, -52%) rotate(-2deg);
	}
	50% {
		transform: translate(-50%, -48%) rotate(0deg);
	}
	75% {
		transform: translate(-50%, -52%) rotate(2deg);
	}
}

.image-container img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.text-overlay {
	position: fixed;
	top: 15%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 4rem;
	font-weight: bold;
	font-family: "Comic Sans MS", "Comic Sans", cursive;
	text-align: center;
	z-index: 10;
	pointer-events: none;
	white-space: nowrap;
	text-shadow:
		3px 3px 0px #ff00ff,
		6px 6px 0px #00ffff,
		9px 9px 0px #ffff00,
		0 0 20px rgba(255, 255, 255, 0.8);
	animation:
		rainbow 3s linear infinite,
		zoom 2s ease-in-out infinite;
	letter-spacing: 0.1em;
}

@keyframes rainbow {
	0% {
		color: #ff0000;
	}
	16% {
		color: #ff7f00;
	}
	33% {
		color: #ffff00;
	}
	50% {
		color: #00ff00;
	}
	66% {
		color: #0000ff;
	}
	83% {
		color: #8b00ff;
	}
	100% {
		color: #ff0000;
	}
}

@keyframes zoom {
	0%,
	100% {
		transform: translate(-50%, -50%) scale(1);
	}
	50% {
		transform: translate(-50%, -50%) scale(1.1);
	}
}

.subtitle {
	position: fixed;
	bottom: 15%;
	left: 50%;
	transform: translateX(-50%);
	font-size: 2.5rem;
	font-family: "Papyrus", fantasy;
	background: linear-gradient(90deg, #ff00ff, #00ffff, #ffff00, #ff00ff);
	background-size: 200% 200%;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	animation:
		gradientShift 3s ease infinite,
		blink 1.5s ease-in-out infinite;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
	z-index: 10;
	font-weight: bold;
	letter-spacing: 0.05em;
}

@keyframes blink {
	0%,
	49%,
	100% {
		opacity: 1;
	}
	50%,
	99% {
		opacity: 0.3;
	}
}

/* Spinning stars */
.star {
	position: fixed;
	font-size: 3rem;
	animation: spin 4s linear infinite;
	z-index: 2;
	filter: drop-shadow(0 0 10px currentColor);
}

.star-1 {
	top: 10%;
	left: 10%;
	color: #ff00ff;
	animation:
		spin 4s linear infinite,
		bounce 2s ease-in-out infinite;
}

.star-2 {
	top: 20%;
	right: 15%;
	color: #00ffff;
	animation:
		spin 3s linear infinite reverse,
		bounce 2.5s ease-in-out infinite;
}

.star-3 {
	bottom: 20%;
	left: 15%;
	color: #ffff00;
	animation:
		spin 5s linear infinite,
		bounce 3s ease-in-out infinite;
}

.star-4 {
	bottom: 15%;
	right: 10%;
	color: #ff00ff;
	animation:
		spin 3.5s linear infinite reverse,
		bounce 2.2s ease-in-out infinite;
}

@keyframes spin {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

@keyframes bounce {
	0%,
	100% {
		transform: translateY(0) rotate(0deg);
	}
	50% {
		transform: translateY(-20px) rotate(180deg);
	}
}

/* Marquee container */
.marquee-container {
	position: fixed;
	top: 5%;
	left: 0;
	width: 100%;
	background: rgba(0, 0, 0, 0.7);
	border-top: 3px solid #ff00ff;
	border-bottom: 3px solid #00ffff;
	padding: 10px 0;
	z-index: 15;
	overflow: hidden;
}

.marquee {
	font-family: "Impact", "Arial Black", sans-serif;
	font-size: 1.5rem;
	color: #ffff00;
	text-shadow:
		2px 2px 4px #ff00ff,
		-2px -2px 4px #00ffff;
	animation: scroll 15s linear infinite;
	white-space: nowrap;
	display: inline-block;
}

@keyframes scroll {
	from {
		transform: translateX(100%);
	}
	to {
		transform: translateX(-100%);
	}
}

/* Tablet adjustments */
@media (max-width: 1024px) {
	.text-overlay {
		font-size: 3rem;
		white-space: normal;
		max-width: 90vw;
		line-height: 1.2;
	}

	.subtitle {
		font-size: 2rem;
		max-width: 90vw;
	}
}

/* Mobile optimizations */
@media (max-width: 768px) {
	body {
		overflow-y: auto;
	}

	.marquee-container {
		top: 0;
		padding: 8px 0;
	}

	.marquee {
		font-size: 0.9rem;
		animation: scroll 10s linear infinite;
	}

	.text-overlay {
		font-size: 1.8rem;
		top: 12%;
		white-space: normal;
		max-width: 95vw;
		line-height: 1.3;
		text-shadow:
			2px 2px 0px #ff00ff,
			4px 4px 0px #00ffff,
			6px 6px 0px #ffff00,
			0 0 15px rgba(255, 255, 255, 0.8);
		letter-spacing: 0.05em;
	}

	.subtitle {
		font-size: 1.3rem;
		bottom: 10%;
		max-width: 85vw;
		padding: 0 10px;
	}

	.image-container {
		width: 85vw;
		aspect-ratio: 3 / 4;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		border: 6px ridge #ff00ff;
		box-shadow:
			0 0 15px #ff00ff,
			0 0 30px #00ffff,
			inset 0 0 15px rgba(255, 255, 255, 0.5);
	}

	@keyframes borderPulse {
		0%,
		100% {
			box-shadow:
				0 0 15px #ff00ff,
				0 0 30px #00ffff,
				inset 0 0 15px rgba(255, 255, 255, 0.5);
		}
		50% {
			box-shadow:
				0 0 30px #00ffff,
				0 0 60px #ff00ff,
				inset 0 0 30px rgba(255, 255, 255, 0.8);
		}
	}

	/* Reduce animation intensity on mobile for performance */
	@keyframes float {
		0%,
		100% {
			transform: translate(-50%, -50%) rotate(0deg);
		}
		50% {
			transform: translate(-50%, -51%) rotate(0deg);
		}
	}

	@keyframes zoom {
		0%,
		100% {
			transform: translate(-50%, -50%) scale(1);
		}
		50% {
			transform: translate(-50%, -50%) scale(1.05);
		}
	}

	.star {
		font-size: 1.8rem;
	}

	.star-1 {
		top: 8%;
		left: 5%;
	}

	.star-2 {
		top: 22%;
		right: 5%;
	}

	.star-3 {
		bottom: 22%;
		left: 5%;
	}

	.star-4 {
		bottom: 8%;
		right: 5%;
	}
}

/* Small mobile devices */
@media (max-width: 480px) {
	.text-overlay {
		font-size: 1.4rem;
		top: 10%;
	}

	.subtitle {
		font-size: 1rem;
		bottom: 8%;
	}

	.marquee {
		font-size: 0.75rem;
	}

	.star {
		font-size: 1.5rem;
	}

	.image-container {
		width: 90vw;
		aspect-ratio: 3 / 4;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		border: 5px ridge #ff00ff;
	}
}

/* Very small devices */
@media (max-width: 360px) {
	.text-overlay {
		font-size: 1.2rem;
	}

	.subtitle {
		font-size: 0.9rem;
	}
}
