html {
	overflow-x: hidden;
}

.disclaimer {
	background: #ffff00;
	color: #000000;
	font-family: 'Impact', 'Arial Black', sans-serif;
	text-align: center;
	padding: 8px 12px;
	border: 3px solid #000000;
	font-size: 1.05em;
	margin-top: 12px;
	letter-spacing: 0.5px;
}

.header-band {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: flex-start;
	gap: 32px;
	width: 100%;
	padding: 0 0 16px 0;
	box-sizing: border-box;
	position: relative;
	z-index: 1;
}

.header-main {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	justify-self: center;
}

.header-banner {
	max-width: 100%;
	height: auto;
	border: 6px solid #000000;
	display: block;
	margin: 0 auto;
	position: relative;
	z-index: 2;
}

.header-spacer {
	width: 120px;
	height: 1px;
	visibility: hidden;
}

.tab-menu {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	margin: 24px auto 32px;
	width: 90%;
	max-width: 960px;
}

.tab-button {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #000000 !important;
	border: 4px solid #000000;
	padding: 16px 24px;
	font-family: 'Arial Black', sans-serif;
	font-size: 1.3em;
	font-weight: bold;
	text-transform: uppercase;
	border-radius: 0;
	transition: transform 0.2s, box-shadow 0.2s;
	text-decoration: none;
}

.tab-button:hover,
.tab-button:focus-visible {
	transform: translateY(-4px);
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
	color: #000000 !important;
	text-decoration: none;
}

.tab-button.active {
	box-shadow: inset 0 0 0 4px #ffffff, 0 0 0 4px #000000;
	transform: translateY(-2px);
}

.home-tab { background: #ff0000; }
.store-tab { background: #ff8000; }
.about-tab { background: #ffff00; }
.contact-tab { background: #00ff00; }

.mode-toggle {
	position: static;
	width: 120px;
	height: 120px;
	background: #00ff00;
	color: #ffffff;
	font-family: 'Impact', 'Arial Black', sans-serif;
	font-size: 22px;
	border: 4px solid #00aa00;
	border-radius: 0;
	z-index: 4000;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 6px;
	margin: 0;
	box-sizing: border-box;
	justify-self: start;
	align-self: start;
}

.mode-toggle.boring {
	background: #ff0000;
	color: #ffffff;
	border-color: #aa0000;
}

/* boring-mode helper: pause animations/transitions but keep site content visible and images colored */
.boring-mode * {
	transition: none !important;
}

/* Pause common CSS animations by overriding animation properties for known animated classes */
.boring-mode .neon-text,
.boring-mode .blink,
.boring-mode .rotate,
.boring-mode .rotate-3d,
.boring-mode .floating,
.boring-mode .merch-text,
.boring-mode .merch-arrow,
.boring-mode .merch-arrow-gif,
.boring-mode .merch-circle,
.boring-mode .popup-window,
.boring-mode .inline-banner-ad,
.boring-mode .random-image-placement {
	animation-play-state: paused !important;
	animation: none !important;
}

/* When boring mode is active, remove inline banners and vertical side ads */
.boring-mode .inline-banner-ad { display: none !important; }
.boring-mode #left-ads, .boring-mode #right-ads { display: none !important; }

.boring-mode a:hover { text-decoration: none !important; }

/* Dim background in boring mode without affecting content */
body.boring-mode::before {
	content: '';
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.35);
	z-index: 0;
	pointer-events: none;
}

/* Reset motion side-effects: ensure transformed / blinking elements appear stable */
.boring-mode .rotate,
.boring-mode .rotate-3d,
.boring-mode .floating { transform: none !important; }

.boring-mode .blink { opacity: 1 !important; }

/* Keep images colored and visible (do not grayscale or hide gifs) */
.boring-mode img { filter: none !important; opacity: 1 !important; visibility: visible !important; }

/* Desaturate borders and force black text for non-image elements (images keep color) */
body.boring-mode :not(img) { color: #000000 !important; border-color: #000000 !important; }

/* Make tab buttons white in boring mode */
.boring-mode .tab-button { background: #ffffff !important; }

/* Sidebar ads */
#left-ads,
#right-ads {
	position: absolute;
	z-index: 500;
	display: flex;
	flex-direction: column;
	gap: 24px;
	pointer-events: auto;
}

#left-ads.hidden,
#right-ads.hidden { display: none !important; }

.side-ad {
	width: clamp(102px, 10.2vw, 153px);
	border: none;
	background: #ffffff;
	padding: 6px;
	display: block;
}

.side-ad:hover {
	transform: translateY(-4px);
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

@media (max-width: 900px) {
	.tab-menu {
		grid-template-columns: repeat(2, 1fr);
		width: 100%;
	}
	.tab-button {
		font-size: 1.1em;
		padding: 12px 16px;
	}

	#left-ads,
	#right-ads {
		display: none;
	}
}

@media (max-width: 768px) {
	body {
		padding: 10px;
		font-size: 14px;
	}
	.container {
		width: 95%;
		max-width: none;
		margin: 0 auto;
	}
	.header-band {
		grid-template-columns: 1fr;
		justify-items: center;
		gap: 12px;
		padding: 16px 0;
	}
	.header-spacer {
		display: none;
	}
	.header-main {
		width: 100%;
	}
	marquee {
		font-size: 1.2em;
	}
	.disclaimer {
		font-size: 0.9em;
		padding: 6px 8px;
		text-align: center;
	}
	.section-title {
		font-size: 1.4em;
		text-align: center;
	}
	.incoherent {
		font-size: 0.9em;
		line-height: 1.3;
		text-align: center;
	}
	.highlight-text {
		font-size: 1.1em;
	}
	.section {
		margin: 18px auto;
		padding: 14px 16px;
		border-width: 3px;
	}
	.section-title {
		font-size: 1.3em;
	}
	table {
		font-size: 0.9em;
		border: 2px solid #000000;
		border-collapse: separate;
		border-spacing: 0;
		margin: 0 auto;
		background-color: rgba(255, 255, 255, 0.95);
	}
	td {
		padding: 12px;
		vertical-align: top;
		text-align: center;
		border: none;
	}
	.merch-image {
		max-width: min(260px, 80vw);
		display: block;
		margin: 0 auto;
	}
	.merch-text {
		display: none;
	}
	.merch-row {
		flex-direction: column;
		gap: 14px;
	}
	.merch-circle {
		width: clamp(180px, 60vw, 260px);
		height: clamp(180px, 60vw, 260px);
		border-width: 6px;
	}
	.merch-arrow-gif {
		display: block;
		margin: 8px auto 0;
		left: 0;
		top: 0;
	}
	.large-text {
		font-size: 1.2em;
		text-align: center;
	}
	.ascii-art {
		font-size: 0.6em;
		text-align: center;
	}
	.popup-window {
		width: 90%;
		max-width: 90%;
	}
	.mode-toggle {
		width: 80px;
		height: 80px;
		font-size: 16px;
		justify-self: center;
	}
	.hit-counter,
	.eaten-counter {
		display: none !important;
	}
	.section,
	.section-title {
		position: static !important;
		left: auto !important;
		top: auto !important;
	}
}
