/* General Styles */
body {
	font-family: Arial, sans-serif;
	margin: 0;
	padding: 0;
	background-color: #FFF1AD;
	color: #333;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.dark-mode {
	background-color: #121212;
	color: #e0e0e0;
}

body::-webkit-scrollbar {
	width: 0;
	background: transparent;
}

/* Header */
header {
	background-color: #8B0000;
	color: #fff;
	padding: 20px 0;
	text-align: center;
}

.dark-mode header {
	background-color: #2b2b2b;
	color: #e0e0e0;
}

header h1 {
	margin: 0;
	font-size: 36px;
}

.gov-footnote {
	font-size: 14px;
	color: #ccc;
}

/* Navigation Bar */
nav {
	background-color: #A52A2A;
	padding: 10px 0;
	text-align: center;
}

.dark-mode nav {
	background-color: #333333;
}

nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: center;
	align-items: center;
}

nav ul li {
	margin: 0 15px;
	position: relative;
}

nav ul li a {
	color: #fff;
	text-decoration: none;
	font-weight: bold;
	padding: 10px 15px;
	display: block;
}

.dark-mode nav ul li a {
	color: #e0e0e0;
}

nav ul li a:hover {
	background-color: #8B0000;
}

.dark-mode nav ul li a:hover {
	background-color: #550000;
}

nav ul li ul {
	display: none;
	position: absolute;
	background-color: #A52A2A;
	padding: 10px;
	top: 100%;
	left: 0;
}

.dark-mode nav ul li ul {
	background-color: #333333;
}

nav ul li:hover ul {
	display: block;
}

nav ul li ul li {
	margin: 0;
}

/* Darkmode toggle checkbox */
input[type="checkbox"] {
	display: none;
}

/* Main Content Wrapper */
main {
	padding: 20px;
	margin: 20px auto;
	max-width: 1200px;
	flex: 1;
}

/* Section Defaults */
section {
	margin-bottom: 40px;
	border-radius: 5px;
}

/* Splash Section */
section.splash {
	background-color: #ffe580;
	width: 80%;
	max-width: 1200px;
	margin: 40px auto;
	padding: 80px 20px;
	text-align: center;
}

.dark-mode section.splash {
	background-color: #1f1f1f;
}

/* Splash Title & Text */
section.splash h2 {
	font-size: 48px;
	margin-bottom: 20px;
	color: #8B0000;
}

.dark-mode section.splash h2 {
	color: #d4af37;
}

section.splash p {
	font-size: 18px;
	margin-bottom: 30px;
	color: inherit;
}

.dark-mode section.splash p {
	color: #ccc;
}

/* Splash Quick Links */
section.splash .quick-links {
	font-size: 20px;
}

section.splash .quick-links a {
	color: #8B0000;
	text-decoration: none;
	margin: 0 10px;
	font-weight: bold;
}

section.splash .quick-links a:hover {
	text-decoration: underline;
}

.dark-mode section.splash .quick-links a {
	color: #d4af37;
}

/* Separator Lines */
hr {
	border: 0;
	height: 2px;
	background: #A52A2A;
	margin: 40px 0;
}

.dark-mode hr {
	background: #8B0000;
}

/* Sub-section Backgrounds (light mode) */
section.about,
section.website-info,
section.important-info {
	background-color: #fff6d5;
	padding: 20px;
}

/* Sub-section Backgrounds (dark mode) */
.dark-mode section.about,
.dark-mode section.website-info,
.dark-mode section.important-info {
	background-color: #1a1a1a;
	padding: 20px;
}

/* Section Headers */
h2, h3 {
	border-bottom: 2px solid #8B0000;
	padding-bottom: 5px;
	margin-bottom: 15px;
	color: inherit;
}

.dark-mode h2, .dark-mode h3 {
	border-color: #d4af37;
	color: #e0e0e0;
}

/* Lists */
ul {
	padding-left: 20px;
}

ul li {
	margin-bottom: 10px;
	color: inherit;
}

/* Footer */
footer {
	background-color: #2c2f36;
	color: #fff;
	padding: 15px 0;
	width: 100%;
}

.dark-mode footer {
	background-color: #181818;
	color: #ccc;
}

.footer-content {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.footer-center-group {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}

.footer-center-group p {
	margin: 0;
	font-size: 0.9rem;
}

/* Legal email link styling */
.legal-contact a {
	color: #e03e2d;  /* lighter red for light mode */
	text-decoration: none;
	transition: all 0.2s ease;
}

.legal-contact a:hover {
	color: #ff5a49;
	text-decoration: underline;
}

.dark-mode .legal-contact a {
	color: #d4af37;  /* yellow in dark mode */
}

.dark-mode .legal-contact a:hover {
	color: #ffd966;
	text-decoration: underline;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
	.footer-center-group {
		flex-direction: column;
		align-items: center;
		gap: 10px;
		text-align: center;
	}

	.copyright {
		order: 1;
	}
}

.zh {
  display: none;
}

noscript .zh {
  display: inline;
}