/* Global Styles */
body {
	margin: 0;
	padding: 0;
	font-family: 'Poppins', sans-serif;
	overflow-x: hidden;
	overscroll-behavior: none;
	position: relative;
	background-color: black;
	color: #766464;
}

.header {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 1rem;
	background-color: black;
	box-sizing: border-box;
	width: 90%;
	max-width: 960px;
	margin: 0 auto;
	font-size: 0.875rem;
}

.header a {
	color: #9a9fa5;
	text-decoration: none;
	text-transform: uppercase;
	font-size: 0.9rem;
}

.header a.active {
	color: #ca4139;
}

.header a:hover:not(.active) {
	color: white;
}

.header img {
	height: 25rem;
}

/* Base styling for navigation */
.nav {
	display: flex;
	align-items: center;
	gap: 20px;
	position: relative;
}
  
/* Dropdown container styling */
.dropdown {
	position: relative;
}
  
/* Hidden by default */
.dropdown-content {
	display: none;
	flex-direction: column;
	position: absolute;
	top: 100%;
	left: 0;
	background-color: black;
	white-space: nowrap;
	padding: 8px;
	box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
	z-index: 1;
	gap: 0.6rem;
}
  
/* Style for submenu items (horizontal layout) */
.dropdown-content a {
	text-decoration: none;
	color: #9a9fa5;
}

/* Optional hover effects */
.dropdown-content a:hover {
	color: white;
}
  
.wrapper {
	max-width: 960px;
	margin: 0 auto;
	width: 85%;
	background-color: white;
	padding-top: 1rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.divider {
	width: 80%;
	height: 1px;
	background-color: rgb(160, 160, 160);
	margin: 2rem 0;
}

.wrapper .title {
	width: 50%;
	font-size: 1.3rem;
	line-height: 1.5;
	font-weight: 600;
	font-style: italic;
	color: #333;
	text-align: center;
	margin: 1rem 0;
}

.wrapper .article {
	width: 80%;
	display: flex;
	gap: 2rem;
	color: #3c1b1b;
}

.wrapper .article img {
	width: 48%;
}

.wrapper .article .acticle-details {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	font-size: 0.875rem;
	justify-content: start;
	align-items: start;
	height: 100%;
	line-height: 1.5;
}

.wrapper .article .acticle-details .article-link {
	text-decoration: none;
	color: #766464;
	font-weight: 600;
}

.wrapper .article .acticle-details .article-link:hover {
	color: #988b64;
}

.wrapper .more-info-section {
	width: 60%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 1.1rem;
	color: #3c1b1b;
}

.wrapper .more-info-section a {
	text-decoration: none;
	color: #766464;
}

.wrapper .more-info-section a:hover {
	color: #988b64;
}

.wrapper .footer {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2rem;
	margin-bottom: 4rem;
	box-sizing: border-box;
	font-size: 0.8rem;
}

.wrapper .footer .social-links {
	display: flex;
	gap: 1rem;
	margin-top: -1rem;
}

.wrapper .footer .social-links a img {
	width: 1.9rem;
	height: 1.9rem;
}

/* Civil war Page */
.wrapper .game-title {
	width: 80%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 1rem;
	font-size: 1.2rem;
	line-height: 1.5;
	color: #333;
	text-align: center;
	margin: 1rem 0;
	letter-spacing: 0.07cm;
}

.wrapper .game-title img {
	width: 100%;
}

.wrapper .game-title div:last-child {
	width: 70%;
}

.wrapper .video-container {
	width: 80%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 2rem;
}

.wrapper .video-container iframe {
	width: 100%;
	aspect-ratio: 1 / 0.5;
}

.wrapper .main-features {
	width: 80%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 1.5rem;
}

.wrapper .section-title {
	font-size: 1.2rem;
	font-weight: 600;
	color: #333;
	letter-spacing: 0.05cm;
	margin-bottom: 1.5rem;
}

.wrapper .main-features .feature {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 1.5rem;
	width: 100%;
}

.wrapper .main-features .feature > img {
	width: 100%;
}

.wrapper .main-features .feature .title {
	font-style: normal;
	text-align: left;
	margin: 0;
	font-size: 1.1rem;
}

.wrapper .main-features .feature .subtitle {
	align-self: center;
	font-weight: 600;
	font-size: 1.1rem;
	color: #333;
}

.wrapper .main-features .feature .description {
	font-size: 0.9rem;
	text-align: left;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	line-height: 1.3;
}

.wrapper .main-features .feature .description .list ul {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.wrapper .main-features .feature .image-carousel {
	display: flex;
}

.wrapper .main-features .feature .image-carousel .feature-image {
	width: 100%;
	display: none;
	transition: opacity 1s ease-in-out;
	opacity: 0;
}

.wrapper .main-features .feature .image-carousel .feature-image.active {
	display: block;
	opacity: 1;
}

.wrapper .steam-section .section-title {
	text-align: center;
	text-transform: uppercase;
}

.wrapper .other-stores .links {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.5rem;
}

.wrapper .other-stores .links .app-store {
	width: 200px;
}

.wrapper .awards {
	width: 80%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 0.5rem;
}

.wrapper .awards ul {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	align-self: flex-start;
}

.wrapper .awards ul li {
	font-size: 1.2rem;
}

/* Ultimate General: Gettysburg Page */
.wrapper .stores {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.5rem;
}

.wrapper .stores .app-store {
	width: 14rem;
}

.wrapper .info-title-section {
	width: 80%;
	font-weight: 600;
	font-size: 1.2rem;
	color: #333;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	gap: 1.5rem;
}

/* Blog posts */
.wrapper #blogPosts {
	width: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 2rem;
}

.wrapper #blogPosts .blog-post {
	width: 80%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	gap: 1.5rem;
}

.wrapper #blogPosts .blog-post img {
	width: 80%;
}

.wrapper #blogPosts .read-more-btn {
	background-color: #ca4139;
	color: white;
	border: none;
	padding: 0.5rem 1rem;
	font-family: 'Poppins', sans-serif;
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.05cm;
	cursor: pointer;
	transition: background-color 0.3s ease;
	border-radius: 4px;
}

.wrapper #blogPosts .read-more-btn:hover {
	background-color: #b23b33;
}

/* Contact Page */
.wrapper .contacts {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.5rem;
}

.wrapper .contacts a {
	font-weight: 600;
	text-decoration: none;
	color: #766464;
}

.wrapper .contacts  a:hover {
	color: #988b64;
}

.wrapper .contacts .email-section {
	display: flex;
	align-items: center;
	gap: 0.3rem;
}

.wrapper .contacts .email-section .label {
	font-weight: 600;
}

@media (max-width: 768px) {
	.header {
	  	width: 95%;
	 	 padding: 0.5rem;
	}
	
	.header img {
	 	 height: 15rem;
	}
	
	.nav {
		flex-direction: column;
		gap: 10px;
		width: 100%;
		align-items: center;
	}
	
	.dropdown-content {
		position: static;
		width: 100%;
		box-shadow: none;
		padding: 5px 0;
	}
  
	/* Wrapper and content adjustments */
	.wrapper {
	 	width: 95%;
	}
	
	.wrapper .title {
		width: 90%;
		font-size: 1.1rem;
	}
	
	/* Article layout for mobile */
	.wrapper .article {
		width: 90%;
		flex-direction: column;
		gap: 1rem;
	}
	
	.wrapper .article img {
	  	width: 100%;
	}
	
	.wrapper .article .acticle-details {
	  	width: 100%;
	}
	
	/* More info section */
	.wrapper .more-info-section {
	  	width: 90%;
	}
	
	/* Game title section */
	.wrapper .game-title {
	  	width: 90%;
	}
	
	.wrapper .game-title div:last-child {
	  	width: 100%;
	}
	
	/* Video container */
	.wrapper .video-container {
	 	width: 90%;
	}
	
	.wrapper .video-container iframe {
	  	aspect-ratio: 1 / 0.75;
	}
	
	/* Main features section */
	.wrapper .main-features {
	  	width: 90%;
	}
	
	/* Awards section */
	.wrapper .awards {
	 	width: 90%;
	}
	
	.wrapper .awards ul li {
	  	font-size: 1rem;
	}
	
	/* Store and app links */
	.wrapper .stores .app-store {
	  	width: 10rem;
	}
	
	/* Blog posts */
	.wrapper #blogPosts .blog-post {
	  	width: 90%;
	}
	
	.wrapper #blogPosts .blog-post img {
	  	width: 100%;
	}
	
	/* Footer adjustments */
	.wrapper .footer {
	  	padding: 0 1rem;
	}
	
	/* Divider */
	.divider {
	 	width: 90%;
	}
	
	/* Other stores and links */
	.wrapper .other-stores .links .app-store {
	  	width: 160px;
	}
	
	/* Info title section */
	.wrapper .info-title-section {
		width: 90%;
		font-size: 1rem;
	}

	/* Steam widget responsive sizing */
	iframe {
		width: 100%;
		max-width: 646px;
		min-height: 190px;
	}
	  
	/* Store logos */
	.store-logo {
		max-width: 100%;
		width: auto;
		height: auto;
	}
	  
	/* Stores section */
	.stores {
		width: 90%;
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 1.5rem;
		padding: 0 10px;
		box-sizing: border-box;
	}
	
	/* Image carousel */
	.wrapper .main-features .feature .image-carousel {
		width: 100%;
	}
	
	/* Feature images */
	.wrapper .main-features .feature .feature-image {
		max-width: 100%;
		height: auto;
	}

	/* Game image in title section */
	.wrapper .game-title img.game-image {
		width: 100%;
		height: auto;
	}

	/* Steam section */
	.steam-section {
		width: 90%;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 1rem;
	}

	.steam-section a {
		display: flex;
		justify-content: center;
	}
	
	.steam-logo {
		max-width: 100%;
		height: auto;
	}
	
	/* Other stores section */
	.other-stores {
		width: 90%;
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 1rem;
	}
  
	.other-stores .links {
		width: 100%;
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 1.5rem;
	}
	
	.other-stores .links a {
		display: flex;
		justify-content: center;
	}
	
	.other-stores .links .store-logo {
		max-width: 90%;
		height: auto;
	}
	
	/* Video container (multiple videos) */
	.video-container {
		display: flex;
		flex-direction: column;
		gap: 1.5rem;
	}
  
	/* Game title section */
	.game-title span, 
	.game-title div {
		font-size: 0.95rem;
		line-height: 1.4;
	}
	
	/* Feature list */
	.wrapper .main-features .feature .description .list ul {
		padding-left: 20px;
	}
	
	.wrapper .main-features .feature .description .list ul li {
		margin-bottom: 8px;
	}
}
  
/* Extra small devices (phones, 480px and down) */
@media (max-width: 480px) {
	.header img {
	  	height: 12rem;
	}
	
	.wrapper .title {
	  	font-size: 1rem;
	}
	
	.wrapper .section-title {
		font-size: 1rem;
		text-align: center;
	}
	
	.wrapper .main-features .feature .title {
	  	font-size: 1rem;
	}
	
	.wrapper .main-features .feature .subtitle {
	  	font-size: 0.9rem;
	}
	
	.wrapper .main-features .feature .description {
	  	font-size: 0.8rem;
	}
	
	.wrapper .awards ul li {
	  	font-size: 0.9rem;
	}
	
	.wrapper .footer {
		gap: 1rem;
		margin-bottom: 2rem;
	}
	
	.wrapper .footer .social-links a img {
		width: 1.5rem;
		height: 1.5rem;
	}

	/* Steam widget height adjustment for smaller screens */
	iframe {
		min-height: 170px;
	}
	
	/* App store button size */
	.app-store {
		width: 140px !important;
	}
	
	/* Store section padding */
	.stores {
		padding: 0 5px;
		gap: 1rem;
	}
	
	/* Game title spacing */
	.wrapper .game-title {
		gap: 0.8rem;
	}

	.steam-section .section-title,
  	.other-stores .section-title {
		font-size: 1rem;
	}
  
	.wrapper .main-features .feature .subtitle {
		text-align: center;
		width: 100%;
	}
  
	/* Make store logos a bit smaller on very small screens */
	.steam-logo, 
	.other-stores .links .store-logo {
		max-width: 80%;
	}
	
	/* Further reduce padding for lists */
	.wrapper .main-features .feature .description .list ul {
		padding-left: 15px;
	}
}
