/* ===== Global ===== */
html,
body {
	margin: 0;
	padding: 0;
	overflow-x: hidden;
	font-family: system-ui, Arial, sans-serif;
	color: white;
	text-align: center;
	background: url('../Images/Background.jpg') no-repeat center center fixed;
	background-size: cover;
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	background: rgba(61, 1, 95, 0.7);
	z-index: -1;
}

/* Responsive images */
img {
	max-width: 100%;
	height: auto;
}

/* ===== Headings ===== */
h1 {
	font-size: 2.5em;
	margin-bottom: 20px;
}

.headings-marquee {
	height: 40px;
	background-color: rgba(128, 0, 128, 0.5);
	overflow: hidden;
	font-size: 25px;

	/* NEW */
	width: calc(100% - 70px);
	/* space for menu icon */
	margin-right: 70px;
}


/* ===== Image Section ===== */
.images {
	display: flex;
	justify-content: center;
	gap: 20px;
	margin-bottom: 30px;
	flex-wrap: wrap;
}

.images img {
	width: 800px;
	height: 550px;
	object-fit: cover;
	border: 2px solid white;
}

/* ===== Buttons ===== */
.reg-btn {
	background-color: purple;
	color: #fff;
	border: none;
	padding: 15px 30px;
	font-size: 25px;
	cursor: pointer;
	margin-bottom: 35px;
	border-radius: 5px;
	transition: transform 0.3s ease, background 0.3s ease;
}

.reg-btn:hover {
	background: #a300ff;
	transform: scale(1.3);
	box-shadow: 0 0 12px rgba(200, 0, 255, 0.8);
}

.reg-btn:active {
	background: #64009e;
	transform: scale(1.1);
}

.btn-wrap {
	position: relative;
	display: inline-block;
}

/* ===== GIF Animation ===== */
.arrow-gif {
	position: absolute;
	left: 210px;
	transform: translateY(10%);
	z-index: 4;
}

/* ===== Rules Box ===== */
.rules-box {
	position: relative;
	z-index: 1;
	overflow: visible;
	/* 👈 CRITICAL */
	background-color: rgba(128, 0, 128, 0.5);
	border: 4px solid rgb(196, 0, 196);
	border-radius: 10px;
	padding: 45px 20px 25px;
	max-width: 1200px;
	margin: 40px auto;
	box-sizing: border-box;
}

.rules-box::before {
	content: attr(data-title);
	position: absolute;
	top: -25px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(61, 1, 95, 1);
	color: white;
	padding: 6px 15px;
	border-radius: 20px;
	border: 3px solid white;
	font-weight: bold;
	font-size: 25px;
	z-index: 5;
	/* 👈 ABOVE EVERYTHING */
	pointer-events: none;
}

.rules-box h2 {
	margin-top: 0;
}

.rules-box p,
.rules-box li {
	font-size: 20px;
	line-height: 1.6;
	overflow-wrap: break-word;
}

.rules-box ul,
.rules-box ol {
	padding-left: 16px;
	margin-left: 0;
}

.rules-box--left {
	text-align: left;
}

.rules-box--center {
	text-align: center;
}

.rules-box--right {
	text-align: right;
}

.rules-box--wide {
	max-width: 100%;
}

.rules-box h2 {
	font-size: 1.3em;
}

/* ===== Social Button ===== */
.social-btn {
	margin: 20px 0;
	display: flex;
	justify-content: center;
	gap: 32px;
}

.social-btn img {
	width: 64px;
	height: 64px;
	cursor: pointer;
	transition: transform 0.3s, opacity 0.3s;
}

.social-btn img:hover {
	transform: scale(1.2);
	opacity: 0.8;
}

/* ===== Overlay Wrapper ===== */
.overlay {
	position: relative;
	z-index: 0;
	background-color: rgba(50, 0, 50, 0.75);
	min-height: 100vh;
	padding: 20px;
}

/* ===== Header Row ===== */
.header-row {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	flex-wrap: wrap;
}

.left-emblem {
	position: absolute;
	left: 20px;
	top: 25%;
	transform: translateY(-20%);
}

.right-emblem {
	position: absolute;
	right: 20px;
	top: 50%;
	transform: translateY(-20%);
}

/* ===== About Page Back Button ===== */
.about-back-wrap {
	text-align: left;
	margin: 15px 0 15px 18px;
}

.about-back-btn {
	display: inline-block;
	background: purple;
	color: white;
	text-decoration: none;

	/* → BIGGER SIZE */
	padding: 12px 22px;
	font-size: 20px;
	font-weight: bold;

	border-radius: 8px;
	border: 2px solid rgba(255, 255, 255, 0.4);

	transition: transform 0.2s ease, background 0.3s ease, box-shadow 0.3s ease;
}

/* Hover glow */
.about-back-btn:hover {
	background: #a300ff;
	transform: scale(1.12);
	box-shadow: 0 0 12px rgba(200, 0, 255, 0.8);
}

.about-back-btn:active {
	background: #64009e;
	transform: scale(1.05);
}

/* Logo inside back button */
.back-logo {
	width: 48px;
	height: 48px;
	vertical-align: middle;
	margin-right: 8px;
}



/* ===== Credits ===== */
.developer {
	text-align: left;
	cursor: default;
}

.developer-span:hover {
	background: red;
	color: black;
	font-weight: bold;
}


/* ===== Mobile ===== */
@media (max-width: 768px) {

	h1 {
		font-size: 1.6em;
	}

	.slideshow-container {
		aspect-ratio: 4 / 3;
	}

	.slideshow-controls button {
		font-size: 14px;
		padding: 8px 12px;
	}

	.preview-btn {
		font-size: 36px;
	}

	.modal-content {
		max-width: 95%;
		max-height: 70%;
	}

	.header-row img:first-child {
		position: static;
		transform: none;
	}

	.headings-marquee {
		width: calc(100% - 55px);
		margin-right: 55px;
		font-size: 18px;
	}

	#backToTop {
		width: 44px;
		height: 44px;
		font-size: 20px;
	}
}