@font-face {
	font-family: "Times New Roman";
	src: url("times.woff2") format("woff2"), url("times.woff") format("woff");
}

/* Global Styles */
body {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 0.9rem;
	line-height: 1.25;
	letter-spacing: -0.1px;
	max-width: 1240px;
	margin: 0 auto;
}

a {
	text-decoration: none;
	color: black;
}

p {
	margin: 0;
	max-width: 28rem;
}

/* ASCII Clouds Background */

#ascii-clouds {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	font-family: monospace;
	font-size: 8px;
	line-height: 1;
	white-space: pre;
	color: #c7c7c7;
	opacity: 0.2;
	z-index: -1;
	overflow: hidden;
	pointer-events: none;
	transition: opacity 0.5s ease; /* Smooth fade effect */
}
#ascii-clouds::before {
	content: "";
	position: absolute;
	top: 0; /* Start the fade-in */
	left: 0;
	width: 100%;
	height: 20vh; /* Covers the top 20% of the viewport */
	background: linear-gradient(
		to top,
		rgba(255, 255, 255, 0.358) 0%,
		/* Semi-transparent at the start */ rgba(255, 255, 255, 0.9) 40%,
		/* Stopper point at 50% */ rgba(255, 255, 255, 1) 100%
			/* Fully opaque at the top */
	);
	pointer-events: none; /* Ensure it doesn't block interaction */
}

/* Container for centered content */
.container {
	max-width: 1240px;
	margin: 0 auto;
	padding-top: 3rem;
}

/* Header & Navigation */
header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	background-color: white;
	height: 3rem;
	z-index: 1000;
}

.nav-inner {
	max-width: 1240px;
	margin: 0 auto;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.5rem 0;
}

header a:hover {
	text-decoration: line-through !important;
}

/* Overlay (appears under header) */
.overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(255, 255, 255, 0.97);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.5s ease;
	z-index: 998;
}

.overlay.active {
	opacity: 1;
	visibility: visible;
}

.overlay-content {
	max-width: 1240px;
	width: 100%;
	margin: 6rem auto;
	padding: 1rem;
	position: relative;
}

.overlay p {
	margin-bottom: 1rem;
}

#close-overlay {
	position: absolute;
	top: 1rem;
	right: 1rem;
	background: none;
	border: none;
	font-size: 1.2rem;
	cursor: pointer;
}

/* Project Navigation */
.project-nav {
	position: sticky;
	top: 3rem; /* Directly below header */
	z-index: 900;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background-color: white;
	border-bottom: 1px dotted #d2d1d1;
	margin-top: 3rem;
	height: 2rem;
}

/* Mini Navigation */
.mini-nav {
	display: flex;
	flex-direction: row;
	column-gap: 1rem;
	position: sticky;
	top: 60px; /* Adjust as needed */
}

.mini-nav a {
	display: flex;
	margin: 8px 0;
}

/* Main Content & Sections */
.main-content,
section {
	max-width: 1400px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	flex-wrap: nowrap;
}

.project-name {
	margin: 8px 0;
	color: #8b8b8b;
	width: 100%;
}

.project-description {
	display: flex;
	margin-top: 0.5rem;
	flex-wrap: wrap;
	column-gap: 2rem;
	row-gap: 1rem;
}

section {
	display: flex;
	flex-direction: column;
	margin: 3rem 0;
	row-gap: 1rem;
}

section .description {
	display: flex;
	flex-wrap: wrap;
	column-gap: 2rem;
	row-gap: 1rem;
}

section .assets {
	display: flex;
	flex-wrap: wrap;
	flex-direction: row;
	row-gap: 1rem;
}

section .assets img {
	display: flex;
	overflow: auto;
}

/* Responsive Adjustments */
@media (max-width: 1240px) {
	.nav-inner,
	.project-nav,
	.main-content {
		margin: 0 1rem;
	}

	/* header {
		height: 2rem;
	} */

	.nav-inner {
		padding: 0.5rem 0;
	}

	section {
		margin: 3rem 1rem;
	}
}

@media (max-width: 768px) {
	.overlay-content {
		width: auto;
		margin: 4rem auto;
		padding: 0 1rem;
	}
}
