/* Global Styles */
body {
	font-family: Arial, sans-serif;
	margin: 0;
	padding: 0;
	color: white;
	background-color: #282c34;
	font-size: 14px;
}

h1 {
	color: #b8860b;
	font-family: 'Uncial Antiqua', cursive;
	font-weight: normal;
	font-size: 3rem;
	text-shadow: 1px 1px 2px #000;
}

li {
	margin: 5px 0;
}

button {
	font-family: 'Uncial Antiqua', 'MedievalSharp', cursive;
	font-size: 20px;
	color: white;
	background-color: transparent;
	border: 2.5px solid white;
	border-radius: 12px;
	width: 400px;
	height: 70px;
	margin: 10px 0;
	cursor: pointer;
	letter-spacing: 1px;
	text-shadow: 1px 1px 2px #000;
	transition: all 0.25s ease-in-out;
	box-shadow: none;
}

button:hover {
	color: #d4af37;
	background-color: rgba(50, 50, 50, 0.3);
	border-color: #d4af37;
	text-shadow: 0 0 5px #d4af37, 0 0 10px #b8860b, 1px 1px 2px #000;
	box-shadow: 0 0 10px #d4af37, 0 0 20px rgba(212, 175, 55, 0.5), 0 0 30px rgba(128, 128, 128, 0.4);
	transform: scale(1.03);
}

button:active {
	transform: scale(0.98);
	box-shadow: inset 0 0 8px #222;
}

button.active {
	color: #d4af37;
	background-color: rgba(50, 50, 50, 0.3);
	border-color: #d4af37;
	text-shadow: 0 0 5px #d4af37, 0 0 10px #b8860b, 1px 1px 2px #000;
	box-shadow: 0 0 10px #d4af37, 0 0 20px rgba(212, 175, 55, 0.5), 0 0 30px rgba(128, 128, 128, 0.4);
	transform: scale(1.03);
}

#BackGroundImgae {
	background-image: url("Pictures/dark_background.jpeg");
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
	background-repeat: no-repeat;
	height: 100vh;
	width: 100%;
	margin: 0;
	padding: 0;
}

#about_me,
#my-code-text {
	display: none;
}

#sub_info {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-around;
	margin-top: 30px;
	gap: 30px;
}

#sub_text {
	flex: 1;
	min-width: 280px;
	max-width: 28%;
	background-color: rgba(40, 40, 40, 0.9);
	border: 2px solid #d4af37;
	border-radius: 12px;
	padding: 15px;
	box-shadow: 0 0 10px rgba(159, 43, 104, 0.3);
}

#sub_text h3 {
	font-size: 18px;
	color: #d4af37;
	font-family: 'Merriweather', serif;
	text-shadow: 1px 1px 2px #000;
	margin-bottom: 10px;
}

#sub_text ul {
	list-style-type: '✦ ';
	padding-left: 20px;
}

#sub_text li {
	margin-bottom: 10px;
}

.about_me {
	margin: 40px auto;
	padding: 20px;
	background: linear-gradient(145deg, #1a1a1a, #111);
	border: 3px solid #b8860b;
	border-radius: 20px;
	box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8), 0 0 15px rgba(212, 175, 55, 0.3);
	font-family: 'Merriweather', serif;
	font-size: 18px;
	color: #f0f0f0;
	text-shadow: 1px 1px 2px #000;
	max-width: 80%;
}

#my-code-text {
	margin: 40px auto;
	padding: 15px;
	max-width: 90%;
	border: 3px solid #b8860b;
	border-radius: 15px;
	background: linear-gradient(145deg, #1a1a1a, #111);
	box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8), 0 0 15px rgba(212, 175, 55, 0.2);
	font-family: 'Merriweather', serif;
	color: #f0f0f0;
	text-shadow: 1px 1px 2px #000;
	font-size: 20px;
}

#top_nav {
	width: 100%;
	display: flex;
	justify-content: center;
	background-color: transparent;
	margin-top: 20px;
}

#home_info {
	font-family: 'MedievalSharp', cursive;
	font-weight: normal;
	font-size: 2rem;
	text-shadow: 1px 1px 2px #000;
	padding-top: 120px;
	padding-left: 20px;
}

#top_nav_buttons {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	opacity: 1;
	transition: opacity 0.6s ease;
	pointer-events: auto;
}

#top_nav_buttons.fading-out {
	opacity: 0;
	pointer-events: none;
}

#top_nav_buttons.fading-in {
	opacity: 1;
	pointer-events: auto;
}

.horizontal-layout {
	flex-direction: row !important;
	justify-content: center;
	gap: 30px;
}

/* Contact Info */
#contact_info {
	display: none;
	margin: 40px auto;
	max-width: 90%px;
	font-size: 18px;
	border: 3px solid #b8860b;
	border-radius: 20px;
	padding: 20px;
	background: linear-gradient(145deg, #1a1a1a, #111);
	box-shadow: inset 0 0 10px rgba(0,0,0,0.8), 0 0 15px rgba(212,175,55,0.3);
	text-shadow: 1px 1px 2px #000;
}

#contact_info ul {
	list-style: none;
	padding: 0;
}

#contact_info li {
	margin: 10px 0;
	color: #f0f0f0;
}

#contact_info a {
	color: #d4af37;
	text-decoration: none;
	transition: color 0.3s;
}

#contact_info a:hover {
	color: #fffacd;
	text-decoration: underline;
}

/* Fading sections */
.fade-section {
	opacity: 0;
	transition: opacity 0.5s ease;
	pointer-events: none;
	display: none;
}

.fade-section.visible {
	display: block;
	opacity: 1;
	pointer-events: auto;
}

/* Project Section */
#project_list {
	margin: 0 auto;
	border: 2px solid #b8860b;
	padding: 20px;
	border-radius: 12px;
	background-color: rgba(20, 20, 20, 0.9);
}

.project-entry {
	padding: 10px 15px;
	font-size: 22px;
	cursor: pointer;
	border-bottom: 1px solid #444;
	color: #d4af37;
	transition: background-color 0.3s, transform 0.3s;
	font-family: 'Uncial Antiqua', cursive;
}

.project-entry:hover {
	background-color: rgba(212, 175, 55, 0.1);
	transform: scale(1.01);
}

.project-details {
	display: none;
	margin: 10px 0 25px;
	padding: 15px;
	border-left: 4px solid #b8860b;
	background-color: #111;
	font-size: 16px;
	color: #f0f0f0;
	animation: fadeIn 0.3s ease;
	text-shadow: 1px 1px 2px #000;
	overflow: hidden;
}

.project-text {
	flex: 1 1 60%;
	padding-right: 20px;
	font-size: 22px;
	line-height: 1.6;
}

.project-info {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
}

.project-image {
	flex: 1 1 35%;
	display: flex;
	justify-content: center;
	align-items: center;
}

.project-image img {
	max-width: 100%;
	height: auto;
	border: 2px solid #444;
	border-radius: 8px;
}

.project-details button {
	margin-top: 12px;
	font-size: 16px;
	padding: 10px 20px;
	background-color: transparent;
	border: 2px solid #d4af37;
	color: #d4af37;
	border-radius: 10px;
	cursor: pointer;
	transition: all 0.3s ease;
	font-family: 'Uncial Antiqua', cursive;
}

.project-details button:hover {
	background-color: rgba(212, 175, 55, 0.2);
	transform: scale(1.05);
}

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

/* Make Entire Site Responsive for Mobile */
@media (max-width: 768px) {
	html, body {
		overflow-x: hidden;
		width: 100%;
	}

	h1 {
		font-size: 2rem;
	}

	#my-code-text h2,
	#about_heading,
	#project_heading,
	#contact_heading {
		font-size: 2rem;
	}

	button {
		width: 90%;
		height: auto;
		padding: 20px 10px;
		font-size: 18px;
	}

	#top_nav_buttons {
		flex-direction: column !important;
		width: 100%;
		gap: 10px;
	}

	#sub_info {
		flex-direction: column;
		align-items: center;
	}

	#sub_text {
		max-width: 90%;
	}

	.project-info {
		flex-direction: column;
	}

	.project-text {
		padding-right: 0;
		margin-bottom: 20px;
		font-size: 18px;
	}

	.project-image {
		width: 100%;
	}

	#contact_info {
		padding: 20px;
		font-size: 16px;
	}

	#contact_info a {
		font-size: 16px;
	}
}
