/* Base Reset and Typography */
html, body {
	width: 100%;
	height: 100%;
}

body {
	font-family: Lora, "Helvetica Neue", Helvetica, Arial, sans-serif;
	position: relative;
	color: #ccc;
	background-color: #000;
}

h1, h2, h3, h4, h5, h6 {
	font-family: Cabin, "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-weight: 700;
	margin: 0 0 35px;
	letter-spacing: 1px;
}

p {
	font-size: 16px;
	line-height: 1.5;
	margin: 0 0 25px;
}

@media (min-width: 768px) {
	p {
		font-size: 18px;
		line-height: 1.6;
		margin: 0 0 35px;
	}
}

a {
	transition: all 0.2s ease-in-out;
	color: #8bc541;
}

a:focus,
a:hover {
	text-decoration: none;
	color: #1d9b6c;
}

/* Utility Classes */
.center {
	text-align: center;
}

.middle {
	clear: both;
	margin-top: 50px;
}

/* Navigation */
#mainNav {
	background: #000;
	color: #fff;
	border-bottom: 1px solid rgba(255,255,255,0.2);
	padding: 10px 20px;
	position: relative;
	z-index: 1000;
	font-family: Cabin, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.nav-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 1200px;
	margin: 0 auto;
}

.navbar-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	font-size: 20px;
}

.navbar-brand img {
	height: 30px;
}

.nav-links ul {
	display: flex;
	gap: 30px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-links a {
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	transition: color 0.2s;
}

.nav-links li {
	position: relative;
}

.nav-links .dropdown {
	position: absolute;
	top: 100%;
	right: 0;
	display: none;
	background-color: #111;
	padding: 10px;
	border: 1px solid #333;
	border-radius: 6px;
	z-index: 999;
}

.nav-links .dropdown li {
	margin: 10px;
}

.nav-links .dropdown a {
	display: block;
	padding: 8px 20px;
	color: #fff;
	white-space: nowrap;
}

.nav-links .dropdown a:hover {
	background-color: #222;
	color: #8bc541;
}

.nav-links a:hover {
	color: #8bc541;
}

.has-dropdown {
	position: relative;
}

.has-dropdown:hover .dropdown {
	display: block;
}

.nav-toggle {
	background: none;
	color: #fff;
	font-size: 24px;
	border: none;
	cursor: pointer;
	display: none;
}

/* Mobile Slide-In Menu */
.slide-in-menu {
	position: fixed;
	right: -100vw;
	top: 0;
	width: 300px;
	height: 100%;
	background-color: #111;
	color: #fff;
	transition: right 0.3s ease-in-out;
	z-index: 2000;
	display: flex;
	flex-direction: column;
	padding: 20px;
	box-shadow: -2px 0 5px rgba(0,0,0,0.5);
}

.slide-in-menu.show {
	right: 0;
}

.drawer-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	font-size: 18px;
	font-weight: 700;
}

.drawer-header button {
	background: none;
	border: none;
	color: #fff;
	font-size: 28px;
	cursor: pointer;
}

.drawer-links {
	list-style: none;
	padding: 0;
	margin: 0;
}

.drawer-links li {
	margin: 10px 0;
}

.drawer-links a {
	color: #8bc541;
	text-decoration: none;
	font-size: 16px;
	transition: color 0.2s;
}

.drawer-links a:hover {
	color: #1d9b6c;
}

.slide-in-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.6);
	z-index: 1999;
	display: none;
}

.slide-in-overlay.show {
	display: block;
}

/* Mobile Navigation */
.mobile-nav {
	display: none;
	flex-direction: column;
	background: #111;
	padding: 10px 20px;
}

.mobile-nav a {
	padding: 10px 0;
	color: #fff;
	text-decoration: none;
	border-bottom: 1px solid #222;
}

.mobile-nav a:last-child {
	border-bottom: none;
}

@media (max-width: 768px) {
	.nav-links {
		display: none;
	}
	.nav-toggle {
		display: block;
	}
	.mobile-nav.show {
		display: flex;
	}
}

/* Hero Section */
.masthead {
	display: table;
	width: 100%;
	height: auto;
	padding: 200px 0;
	text-align: center;
	color: #fff;
	background: linear-gradient(rgba(20,20,20,0.7), rgba(20,20,20,0.7)), url(/img/machead_v2/intro-bg.jpg) no-repeat bottom center scroll;
	background-color: #000;
	background-size: cover;
}

.masthead .intro-body {
	display: table-cell;
	vertical-align: middle;
}

.masthead .brand-heading {
	font-size: 50px;
}

.masthead .intro-text {
	font-size: 18px;
}

.game-intro {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-around;
	gap: 20px;
	margin: 20px 0;
}

.game-intro h1 {
	font-size: 4rem;
}

.game-intro h2 {
	font-size: 2rem;
}

.game-intro p {
	margin: 0;
}

@media (min-width: 768px) {
	.masthead {
		height: 100%;
		padding: 0;
	}
	.masthead.game {
		height: 200px;
	}
	.masthead .brand-heading {
		font-size: 4rem;
	}
	.masthead .intro-text {
		font-size: 1.5rem;
	}
}

/* Sticky Nav */
.sticky-nav {
	position: fixed;
	top: 100px;
	right: 20px;
	background: #fff;
	padding: 10px;
	border-radius: 6px;
	box-shadow: 0 0 8px rgba(0,0,0,0.1);
	z-index: 900;
}

.sticky-nav ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.sticky-nav li {
	margin: 10px 0;
}

.sticky-nav a {
	text-decoration: none;
	color: #333;
}

/* Buttons */
.btn-circle {
	font-size: 26px;
	width: 55px;
	height: 55px;
	margin-top: 15px;
	line-height: 45px;
	color: #fff;
	border: 2px solid #fff;
	border-radius: 100% !important;
	background: none;
	transition: background 0.3s ease-in-out;
}

.btn-circle:focus,
.btn-circle:hover {
	color: #fff;
	outline: 0;
	background: rgba(255, 255, 255, 0.1);
}

.btn {
	font-family: Cabin, "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-weight: 400;
	text-transform: uppercase;
	border-radius: 0;
	transition: all 0.3s ease-in-out;
}

.btn-default {
	color: #8bc541;
	border: 1px solid #8bc541;
	background-color: transparent;
}

.btn-default:focus,
.btn-default:hover {
	color: #000;
	border: 1px solid #8bc541;
	background-color: #8bc541;
	outline: 0;
}

/* Content and Layout */
section.game,
section.game section {
	max-width: 800px;
	margin: 0 auto;
	padding: 60px 20px;
	text-align: left;
}

.app-icon {
	width: 120px;
	height: 120px;
	border-radius: 20px;
	margin-bottom: 20px;
}

.content-section {
	padding-top: 150px;
	padding-bottom: 150px;
}

.download-section {
	color: #fff;
	background: linear-gradient(rgba(20,20,20,0.7), rgba(20,20,20,0.7)), url(/img/machead_v2/downloads-bg.jpg) no-repeat right center scroll;
	background-color: #000;
	background-size: cover;
}

.screenshot-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	justify-content: center;
}

.screenshot-grid > div {
	max-width: 200px;
	text-align: center;
}

.screenshot-grid > div img {
	width: 100%;
	height: auto;
	border-radius: 8px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

@media (min-width: 992px) {
	.content-section {
		padding-top: 200px;
		padding-bottom: 200px;
	}
	#map {
		height: 350px;
	}
}

/* App Grid Section */
.app-grid-section {
	padding: 4rem 2rem;
	text-align: center;
}

.app-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 30px;
	padding: 0 20px;
}

.app-card {
	background-color: rgba(255,255,255,0.2);
	padding: 20px;
	border-radius: 20px;
	text-align: center;
	width: 160px;
	transition: transform 0.2s ease;
}

.app-card:hover {
	transform: translateY(-5px);
}

.app-card img {
	width: 100px;
	height: 100px;
	border-radius: 20px;
}

.app-title {
	margin-top: 10px;
	font-weight: 700;
	color: #fff;
	font-size: 18px;
}

.app-desc {
	font-size: 14px;
	color: #BBBBBB;
	margin-top: 5px;
	line-height: 1.4;
	text-decoration: none;
}

@media (max-width: 600px) {
	.app-card {
		width: 120px;
	}
	.app-card img {
		width: 80px;
		height: 80px;
	}
}

/* Footer */
footer {
	clear: both;
	color: #ccc;
	padding: 50px 0;
	display: flex;
	flex-direction: column;
	align-items: center;
}

footer p {
	font-size: 14px;
	margin: 0;
}

footer p.faint {
	color: #666;
}

/* Text Selection */
::selection {
	background: rgba(255, 255, 255, 0.2);
	text-shadow: none;
}

::-moz-selection {
	background: rgba(255, 255, 255, 0.2);
	text-shadow: none;
}

img::selection,
img::-moz-selection {
	background: none;
}

/* FAQ Block */
dl {
	text-align: left;
}

dt::before {
	content: "Q: ";
}

dd::before {
	content: "A: ";
}
