body {
	margin: 0;
	padding: 0 10px 40px 10px;
	font-family: 'Courier New', monospace;
	background-color: #000;
	color: #0f0;
	min-height: 100vh;
	overflow-x: hidden;
	overflow-y: auto;
}

.container {
    text-align: center;
    position: relative;
    z-index: 2;
    padding-top: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.static {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: repeating-linear-gradient(
		0deg,
		rgba(0, 0, 0, 0.15),
		rgba(0, 0, 0, 0.15) 1px,
		transparent 1px,
		transparent 2px
	);
	opacity: 0.2;
	z-index: 1;
	pointer-events: none;
}

h1 {
	font-size: 2rem;
	margin-bottom: 1rem;
	text-shadow: 0 0 10px #0f0;
	animation: glitch 1s infinite alternate;
}

.map-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px;
	padding: 20px;
	width: calc(100% - 80px);
	max-width: 1160px;
	margin: 0 auto;
}

.map-card {
	background: rgba(0, 50, 0, 0.3);
	border: 1px solid #0f0;
	border-radius: 5px;
	padding: 20px;
	margin: 10px;
	display: flex;
	flex-direction: column;
	align-items: center;
	transition: all 0.3s ease;
	opacity: 0;
	transform: translateY(20px);
	animation: fadeInUp 0.5s ease forwards;
	will-change: transform, opacity;
}

@keyframes fadeInUp {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.credits {
	margin-top: 15px;
	font-size: 0.9rem;
	word-wrap: break-word;
	max-width: 100%;
	text-align: center;
	width: 100%;
	position: relative;
	padding: 20px 0;
}

.map-card:hover {
	box-shadow: 0 0 15px #0f0;
	transform: translateY(-5px);
}

.map-title {
	color: #0f0;
	font-size: 1.5rem;
	margin-bottom: 5px;
	text-shadow: 0 0 5px #0f0;
	order: 0;
	width: 100%;
}

.map-image {
	width: 100%;
	max-width: 300px;
	height: auto;
	border-radius: 5px;
	margin: 10px 0;
	order: 1;
}

.map-video {
	width: 100%;
	max-width: 300px;
	height: 169px;
	margin: 10px 0;
}

.map-links {
	order: 4;
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 15px;
	width: 100%;
	max-width: 300px;
}

.map-link {
	background: rgba(0, 255, 0, 0.1);
	color: #0f0;
	padding: 8px 15px;
	border-radius: 5px;
	text-decoration: none;
	transition: all 0.3s ease;
}

.map-link:hover {
	background: rgba(0, 255, 0, 0.2);
	transform: scale(1.05);
}

@keyframes glitch {
	0% { transform: translate(2px, 0) skew(0deg); }
	20% { transform: translate(-2px, 0) skew(0deg); }
	40% { transform: translate(0, 0) skew(0deg); }
	60% { transform: translate(2px, 0) skew(0deg); }
	80% { transform: translate(-2px, 0) skew(0deg); }
	100% { transform: translate(0, 0) skew(0deg); }
}

.back-button {
	display: inline-block;
	background-color: #0f0;
	color: #000;
	border: none;
	padding: 10px 20px;
	border-radius: 5px;
	cursor: pointer;
	font-family: 'Courier New', monospace;
	text-decoration: none;
	margin-bottom: 20px;
	margin-top: 20px;
	transition: all 0.3s;
	
}

.back-button:hover {
	background-color: #00ff00;
	box-shadow: 0 0 15px #0f0;
	transform: scale(1.05);
}

@media screen and (max-width: 600px) {
	.map-grid {
		grid-template-columns: 1fr;
	}
	
	.map-card {
		margin: 10px 0;
	}
}

/* Add styles for optional content */
.map-video-container {
	order: 3;
	width: 100%;
	max-width: 300px;
	margin: 10px auto;
	min-height: 50px;
	display: none;
}

.map-video-container.expanded {
	display: block;
}

.expand-video-button {
	order: 2;
	width: 100%;
	max-width: 300px;
	background: rgba(0, 255, 0, 0.1);
	color: #0f0;
	padding: 8px 15px;
	border-radius: 5px;
	border: 1px solid #0f0;
	cursor: pointer;
	font-family: 'Courier New', monospace;
	margin: 10px 0;
	transition: all 0.3s ease;
}

.expand-video-button:hover {
	background: rgba(0, 255, 0, 0.2);
	transform: scale(1.05);
}

.expand-video-button.hidden {
	display: none;
}

.no-video-message {
	color: #0f0;
	font-style: italic;
	padding: 10px;
	background: rgba(0, 50, 0, 0.3);
	border-radius: 5px;
}

.disabled-link {
	opacity: 0.5;
	pointer-events: none;
	cursor: not-allowed;
}

.error-message {
	color: #ff0000;
	background: rgba(50, 0, 0, 0.3);
	padding: 20px;
	border-radius: 5px;
	margin: 20px;
}

.archive-title {
	color: #0f0;
	font-style: italic;
	padding: 10px;
	margin-bottom: 10px;
	background: rgba(0, 50, 0, 0.3);
	border-radius: 5px;
	font-size: 0.9em;
}

.map-info {
	width: 100%;
	max-width: 300px;
	margin: 10px 0;
	order: 3;
}

.info-button {
	width: 100%;
	background: rgba(0, 255, 0, 0.1);
	color: #0f0;
	padding: 8px 15px;
	border-radius: 5px;
	border: 1px solid #0f0;
	cursor: pointer;
	font-family: 'Courier New', monospace;
	margin: 5px 0;
	transition: all 0.3s ease;
}

.info-button:hover {
	background: rgba(0, 255, 0, 0.2);
	transform: scale(1.02);
}

.info-content {
	display: none;
	padding: 10px;
	margin: 5px 0;
	background: rgba(0, 50, 0, 0.3);
	border-radius: 5px;
	text-align: left;
	font-size: 0.9em;
	line-height: 1.4;
}

.info-content.expanded {
	display: block;
}

.info-content h3 {
	margin: 0 0 10px 0;
	font-size: 1em;
	color: #0f0;
	text-transform: uppercase;
}

/* Update video container order to maintain layout */
.map-video-container {
	order: 4;
}

.map-links {
	order: 5;
}

.instructions-container {
    width: calc(100% - 80px);
    max-width: 1160px;
    margin: 0 auto 20px auto;
    box-sizing: border-box;
    border: 1px solid #0f0;
    background: rgba(0, 50, 0, 0.3);
    /* Remove default padding which might affect centering */
    padding: 0;
    /* Ensure it's centered */
    display: block;
    position: relative;
    left: 0;
    right: 0;
}

.instructions-button {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: none;
    border-bottom: 1px solid #0f0;
    color: #0f0;
    cursor: pointer;
    font-family: monospace;
    font-size: 1.1em;
    transition: all 0.3s ease;
    margin: 0;
    text-align: center;
}


.instructions-button:hover {
	background: rgba(0, 255, 0, 0.1);
}

.instructions-content {
    background: transparent;
    border: none;
    padding: 20px;
    display: none;
    color: #0f0;
    font-family: monospace;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    text-align: center; /* Center the content */
}

.instructions-content.expanded {
	display: block;
	animation: slideDown 0.3s ease-out;
}

.instructions-content h3 {
    margin-top: 0;
    margin-bottom: 15px;
    text-align: center;
}

.instructions-content ol {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: item;
}

.instructions-content li {
	margin: 10px 0;
	padding: 0;
	display: block;
}

.instructions-content li::before {
	content: counter(item) ". ";
	counter-increment: item;
	color: #0f0;
	display: inline;
}

.instructions-content ul {
	margin: 5px 0;
	padding: 0;
	list-style: none;
}

.instructions-content ul li::before {
	content: "○ ";
	color: #0f0;
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media screen and (min-width: 601px) {
    .instructions-container,
    .map-grid {
        width: calc(100% - 80px) !important; /* Force exact width match */
        max-width: 1160px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Mobile styles */
@media screen and (max-width: 600px) {
    .instructions-container,
    .map-grid {
        width: calc(100% - 40px) !important;
        margin-left: auto;
        margin-right: auto;
    }
}

.map-alt-names {
    color: #8f8;  /* Lighter green */
    font-size: 0.9rem;
    font-style: italic;
    margin-top: -10px;  /* Pull it closer to the title */
    margin-bottom: 15px;
    text-align: center;
    width: 100%;
    order: 0;  /* Keep it right after the title */
}

.download-all-button {
	display: inline-block;
	padding: 10px 20px;
	margin: 10px 0;
	background-color: #00ff00;
	color: #000;
	text-decoration: none;
	border-radius: 5px;
	font-weight: bold;
	transition: all 0.3s ease;
}

.download-all-button:hover {
	background-color: #00cc00;
	transform: scale(1.05);
	box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
}

*::-webkit-scrollbar {
	width: 14px;
	height: 14px;
}

*::-webkit-scrollbar-track {
	background: rgba(0, 0, 0, 0.8);
	border-left: 1px solid rgba(0, 255, 0, 0.2);
}

*::-webkit-scrollbar-thumb {
	background: rgba(0, 255, 0, 0.3);
	border-radius: 7px;
	border: 2px solid rgba(0, 0, 0, 0.8);
}

*::-webkit-scrollbar-thumb:hover {
	background: rgba(0, 255, 0, 0.5);
	box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

*::-webkit-scrollbar-corner {
	background: rgba(0, 0, 0, 0.8);
}

/* Firefox scrollbar styling for all elements */
* {
	scrollbar-width: thin;
	scrollbar-color: rgba(0, 255, 0, 0.3) rgba(0, 0, 0, 0.8);
}