* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: Georgia, 'Times New Roman', Times, serif;
	background-color: #EFEAD6;
	min-height: 100vh;
}

.main-container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 8px;
}

/* Mobile Header - Hidden by default */
.mobile-header {
	display: none;
	background-image: url('https://majesticmails.com/img/border.jpg');
	border: 2px solid #663300;
	margin-bottom: 20px;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	overflow: hidden;
}

.mobile-header-content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 15px;
	position: relative;
	z-index: 2;
}

.mobile-logo {
	height: 50px;
	width: auto;
}

.mobile-menu-toggle {
	background: rgba(255,255,255,0.9);
	border: 2px solid #663300;
	color: #663300;
	padding: 10px 15px;
	border-radius: 8px;
	cursor: pointer;
	font-size: 16px;
	font-weight: bold;
	transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
	background: rgba(255,255,255,1);
	border-color: #5B3315;
	color: #5B3315;
	transform: translateY(-1px);
}

.mobile-menu-toggle:active {
	transform: translateY(0);
}

/* Mobile Navigation Menu */
.mobile-nav {
	display: none;
	background-image: url('https://majesticmails.com/img/border.jpg');
	border: 2px solid #663300;
	border-top: none;
	position: fixed;
	top: 74px;
	left: 0;
	right: 0;
	z-index: 999;
	overflow: hidden;
}

.mobile-nav.active {
	display: block;
	animation: slideDown 0.3s ease-out;
}

.mobile-nav a.active {
	background: #C6B57B;
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.mobile-nav-links {
	display: flex;
	flex-direction: column;
	padding: 15px 0;
	position: relative;
	z-index: 2;
}

.mobile-nav-links a {
	color: #5B3315;
	text-decoration: none;
	padding: 12px 20px;
	font-size: 16px;
	font-weight: bold;
	transition: all 0.3s ease;
	border-bottom: 1px solid rgba(102, 51, 0, 0.2);
	position: relative;
}

.mobile-nav-links a:last-child {
	border-bottom: none;
}

.mobile-nav-links a:hover {
	background: rgba(255, 255, 255, 0.1);
	padding-left: 30px;
	color: #8F4B18;
}

.mobile-nav-links a::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	background: #5B3315;
	transform: scaleY(0);
	transition: transform 0.3s ease;
}

.mobile-nav-links a:hover::before {
	transform: scaleY(1);
}

/* Header Section - Hidden on mobile */
.header-wrapper {
	border: 4px solid #663300;
	background-image: url('../../img/border.jpg');
	margin-bottom: 5px;
}

.header-content {
	display: flex;
	align-items: center;
	padding: 5px;
	flex-wrap: wrap;
}

.logo-section {
	flex: 0 0 5%;
	min-width: 220px;
	text-align: left;
}

.header-ads {
	flex: 1;
	text-align: center;
	padding: 0 5px;
}

/* New Menu Styles - Positioned above banner ad */
.desktop-menu {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	padding: 15px 10px;
	background-image: url('../../img/border.jpg');
	margin-bottom: 10px;
}

.desktop-menu a {
	color: #4A2C00;
	text-decoration: none;
	padding: 10px 16px;
	border-radius: 5px;
	font-size: 14px;
	font-weight: bold;
	border: 2px solid #4A2C00;
	box-shadow: 0 3px 6px rgba(0,0,0,0.2);
	transition: all 0.3s ease;
	white-space: nowrap;
	min-width: 80px;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.desktop-menu a::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
	transition: left 0.5s ease;
}

.desktop-menu a:hover::before {
	left: 100%;
}

.desktop-menu a:hover {
	background: linear-gradient(145deg, #8B6914, #663300);
	color: #FFF;
	border-color: #663300;
	transform: translateY(-2px);
	box-shadow: 0 5px 12px rgba(102, 51, 0, 0.3);
}

.desktop-menu a.active {
	background: linear-gradient(145deg, #C6B57B, #5B3315);
	color: #F0FFF0;
	border-color: #663300;
	box-shadow: 0 4px 8px rgba(130, 76, 22, 0.4);
}

.desktop-menu a.active:hover {
	background: linear-gradient(145deg, #8B6914, #663300);
	border-color: #663300;
	transform: translateY(-2px);
	box-shadow: 0 6px 14px rgba(130, 76, 22, 0.4);
}

.stats {
	color: #663300;
	font-size: 1.1rem;
	font-weight: bold;
	margin-top: 20px;
}

/* Banner Ads Section - Hidden on mobile */
.banner-section {
	display: flex;
	gap: 5px;
	margin-bottom: 0px;
	padding: 10px;
	flex-wrap: wrap;
}

.banner-slot {
	flex: 1;
	min-width: 300px;
	text-align: center;
}

/* Featured Banner Ads  */
.featured-ad {
	text-align: center;
	margin: 20px 0;
}

.featured-ad a {
	display: inline-block;
	max-width: 100%;
}

.featured-ad img {
	max-width: 100%;
	height: auto;
	display: block;
}


/* Main Content Layout */
.content-wrapper {
	display: flex;
	gap: 20px;
	margin-top: 20px;
	width: 100%;
	align-items: stretch;
}

/* Sidebars */
.sidebar {
	border: 4px solid #663300;
	background-image: url('../../img/border.jpg');
	padding: 15px;
	min-width: 160px;
	max-width: 200px;
	width: 100%;
	display: flex;
	flex-direction: column;
}

.sidebar h3 {
	text-align: center;
	margin-bottom: 10px;
	font-size: 1rem;
}

.sidebar hr {
	margin: 10px 0;
	border-color: #663300;
}

.sidebar-links {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.sidebar-links a {
	color: #663300;
	text-decoration: none;
	font-weight: bold;
	font-size: 0.9rem;
	transition: color 0.3s;
	padding: 5px 2px;
}

.sidebar-links a:hover {
	color: #fff6e6;
	text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
	text-decoration: underline;
	background-color: #C6B57B;
	padding: 5px 2px;
}


/* Main Content */
.main-content {
	flex: 1;
	min-height: 500px;
	display: flex;
	flex-direction: column;
}

.featured-sponsor {
	border: 4px solid #663300;
	background-image: url('../../img/border.jpg');
	padding: 20px;
	text-align: center;
	margin-bottom: 20px;
}

.featured-sponsor h2 {
	font-size: 1.5rem;
	margin-bottom: 15px;
}

.content-box {
	border: 4px solid #663300;
	background-image: url('../../img/border.jpg');
	padding: 20px;
	background-color: rgba(255, 255, 255, 0.9);
}

/* Join Us Link */
.joinus {
	text-align: center;
	margin: 20px 0;
}

.joinus a {
	font-size: 1.5rem;
	font-weight: bold;
	color: #332100;
	text-decoration: none;
	transition: color 0.3s;
}

.joinus a:hover {
	color: #fff6e6;
	text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Upgrade Boxes */
#upbox {
	border: 3px solid #663300;
	margin-top: 20px;
	padding: 20px;
	border-radius: 25px;
	background-color: #EFEAD6;
	overflow: hidden;
}

#upbox h2 {
	color: #663300;
	margin-bottom: 15px;
}

#upbox img {
	max-width: 200px;
	height: auto;
	margin: 10px;
}

.pricebox {
	display: inline-block;
	margin: 20px 0;
}

.pricebox a {
	display: inline-block;
	background: #805300;
	border: 1px solid #663300;
	padding: 10px 20px;
	border-radius: 5px;
	color: #fff;
	text-decoration: none;
	font-weight: bold;
	transition: all 0.3s;
}

.pricebox a:hover {
	background: orange;
	color: blue;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Footer */
.footer {
	border: 4px solid #663300;
	background-image: url('../../img/border.jpg');
	padding: 20px;
	text-align: center;
	margin-top: 40px;
}

.footer p {
	margin: 10px 0;
	font-weight: bold;
}

/* Responsive Design */
@media (max-width: 1024px) {
	.content-wrapper {
		gap: 15px;
	}
	
	.header-content {
		flex-direction: column;
	}
	
	.logo-section {
		flex: 1 0 100%;
		margin-bottom: 20px;
	}

	.desktop-menu a {
		font-size: 12px;
		padding: 8px 12px;
		min-width: 70px;
	}
}

@media (max-width: 900px) {
	.content-wrapper {
		flex-direction: column;
	}
	
	.sidebar {
		width: 100%;
		max-width: 500px;
		margin: 0 auto;
		min-width: unset;
	}
	
	.sidebar:first-child {
		order: 2;
	}
	
	.main-content {
		order: 1;
	}
	
	.sidebar:last-child {
		order: 3;
	}
}

/* Mobile Specific Styles */
@media (max-width: 768px) {
	.main-container {
		padding: 0;
		padding-top: 80px; /* Add top padding to account for fixed header */
	}
	
	/* Hide desktop header, menu, and banner sections on mobile */
	.header-wrapper,
	.desktop-menu,
	.banner-section {
		display: none !important;
	}
	
	/* Show mobile header only on mobile */
	.mobile-header {
		display: block !important;
		margin: 0;
	}
	
	.main-container {
		padding: 80px 5px 5px 5px;
	}
	
	.sidebar:first-child {
		display: none;
	}
	
	.sidebar iframe {
		max-width: 160px;
		height: auto;
	}
	
	.featured-ad {
		margin: 15px 0;
	}
	
	.featured-ad img {
		width: 100%;
		max-width: 468px; /* Maintain original aspect ratio */
	}
	
	.stats {
		font-size: 0.9rem;
	}
	
	#upbox img {
		float: none !important;
		display: block;
		margin: 10px auto;
		max-width: 150px;
	}
	
	#upbox div[align="right"] {
		text-align: right !important;
	}
	
	#upbox div[align="left"] {
		text-align: left !important;
	}
}

@media (max-width: 480px) {
	.joinus a {
		font-size: 1.2rem;
	}
	
	h2 {
		font-size: 1.2rem;
	}
	
	.pricebox a {
		padding: 8px 16px;
		font-size: 14px;
	}
	
	.mobile-header-content {
		padding: 8px 12px;
	}
	
	.mobile-logo {
		height: 40px;
	}
	
	.mobile-menu-toggle {
		padding: 8px 12px;
		font-size: 14px;
	}
}