:root {
    /* Main Background Layer */
    --bg-primary: #3F2A1D;
    --bg-secondary: #5A3A25;
    --overlay-section: rgba(63, 42, 29, 0.72);
    --overlay-card: rgba(106, 69, 45, 0.75);
    --card-hover: rgba(122, 82, 53, 0.85);
    
    /* Accent Colors */
    --accent-yellow: #F7C948;
    --accent-gold: #E8B949;
    --accent-orange: #F59E0B;
    --accent-leaf: #6FBF4A;
    --accent-jungle: #6FBF4A;
    
    /* Text Colors */
    --text-primary: #FFFDF7;
    --text-secondary: #DDD5C7;
    --text-muted: #BDB59E;

    /* Fonts & Structure */
    --font-heading: 'Impact', 'Arial Black', sans-serif;
    --font-body: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --max-width: 1400px;
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
    --border-radius-sm: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    /* 
      WALLPAPER-FIRST DESIGN:
      This background prominently features playful cartoon monkey characters swinging and exploring.
    */
    background-image: url('images/monkey-characters-swinging-background.jpg'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent-yellow);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Base Section Styling */
section {
    padding: 80px 0;
    background-color: var(--overlay-section);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-top: 2px solid rgba(232, 185, 73, 0.2);
    border-bottom: 2px solid rgba(232, 185, 73, 0.2);
    position: relative;
}

/* Header */
header {
    background-color: rgba(63, 42, 29, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 2px solid var(--accent-gold);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--accent-yellow);
    text-shadow: 2px 2px 0px #000;
}

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

.nav-links a {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.nav-links a:hover {
    color: var(--accent-yellow);
    text-shadow: 0 0 10px rgba(247, 201, 72, 0.5);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--accent-yellow) 0%, var(--accent-gold) 100%);
    color: #3F2A1D;
    font-weight: bold;
    font-size: 1.1rem;
    text-transform: uppercase;
    border-radius: 50px;
    border: 2px solid var(--accent-orange);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    text-shadow: none;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6);
    background: linear-gradient(135deg, var(--accent-gold) 0%, #F59E0B 100%);
}

/* Hero Section */
.hero {
    margin-top: 80px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background-color: transparent; 
    background-image: url('images/large-monkey-village-hero-background.jpg');
    background-size: cover;
    background-position: center;
    border: none;
    padding: 80px 0;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(63, 42, 29, 0.65);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 800px;
    background-color: rgba(63, 42, 29, 0.8);
    padding: 60px 40px;
    border-radius: var(--border-radius-lg);
    border: 2px solid var(--accent-gold);
    backdrop-filter: blur(5px);
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.disclaimer-badge {
    display: inline-block;
    background-color: rgba(0,0,0,0.6);
    padding: 15px 20px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--accent-orange);
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 30px;
    line-height: 1.5;
}

/* Game Section */
.game-section {
    text-align: center;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 50px;
}

.game-container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
    background: rgba(90, 58, 37, 0.7);
    padding: 15px;
    border-radius: var(--border-radius-lg);
    border: 4px solid var(--accent-gold);
    box-shadow: 0 20px 50px rgba(0,0,0,0.6), inset 0 0 20px rgba(0,0,0,0.8);
    position: relative;
    backdrop-filter: blur(5px);
}

.game-container::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border: 2px solid var(--accent-yellow);
    border-radius: 30px;
    pointer-events: none;
}

.game-frame {
    width: 100%;
    height: 700px;
    border: none;
    border-radius: var(--border-radius-md);
    background-color: #000;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    background-color: var(--overlay-card);
    padding: 40px 20px;
    border-radius: var(--border-radius-md);
    text-align: center;
    border: 1px solid rgba(232, 185, 73, 0.3);
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.feature-card:hover {
    transform: translateY(-10px);
    background-color: var(--card-hover);
    border-color: var(--accent-yellow);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--accent-gold);
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-item {
    background-color: rgba(63, 42, 29, 0.75);
    padding: 30px;
    border-radius: var(--border-radius-md);
    border: 1px dashed var(--accent-gold);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--accent-leaf);
    margin-bottom: 10px;
    text-shadow: 2px 2px 0px #000;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: bold;
    text-transform: uppercase;
}

/* CTA Banner */
.cta-banner {
    text-align: center;
    background: linear-gradient(45deg, rgba(63,42,29,0.85), rgba(90,58,37,0.85)), url('images/monkeys-finding-treasure-cta-background.jpg');
    background-size: cover;
    background-position: center;
}

.cta-banner h2 {
    font-size: 2.5rem;
}

/* Internal Pages Structure (About, Legal, etc.) */
.page-header {
    margin-top: 80px;
    padding: 80px 0;
    text-align: center;
    background-image: url('images/monkey-family-header-background.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    border-bottom: 2px solid var(--accent-gold);
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(63, 42, 29, 0.75);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 3.5rem;
    margin: 0;
}

.content-section {
    padding: 60px 0;
}

.content-box {
    background-color: var(--overlay-card);
    padding: 50px;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--accent-gold);
    backdrop-filter: blur(8px);
}

.content-header-img {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
    border-radius: var(--border-radius-md);
    margin-bottom: 40px;
    border: 3px solid var(--accent-gold);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.content-box h2 {
    color: var(--accent-yellow);
    font-size: 2rem;
}

.content-box h3 {
    color: var(--accent-gold);
    margin-top: 20px;
    font-size: 1.5rem;
}

.content-box ul {
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.content-box li {
    margin-bottom: 10px;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: bold;
    color: var(--accent-leaf);
}

.form-group input, .form-group textarea {
    padding: 15px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--accent-gold);
    background-color: rgba(63, 42, 29, 0.6);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-yellow);
}

/* Legal Notice Banner */
.legal-notice {
    background-color: rgba(26, 17, 11, 0.85);
    backdrop-filter: blur(5px);
    text-align: center;
    padding: 40px 0;
    border-top: 3px solid var(--accent-orange);
}

.legal-notice h3 {
    color: var(--accent-orange);
}

.legal-notice p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Footer */
footer {
    background-color: rgba(26, 17, 11, 0.95);
    backdrop-filter: blur(5px);
    padding: 60px 0 20px;
    text-align: center;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-nav a {
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.footer-nav a:hover {
    color: var(--accent-leaf);
}

.copyright {
    color: #8A7E73;
    font-size: 0.8rem;
    margin-top: 30px;
    border-top: 1px solid #301f15;
    padding-top: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-layout {
        flex-direction: column;
        text-align: center;
    }
    .hero-content {
        text-align: center;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .game-container {
        width: 95%;
    }
    .game-frame {
        height: 600px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hero-content {
        padding: 40px 20px;
    }
    .game-container {
        width: 100%;
        padding: 5px;
        border-width: 2px;
    }
    .game-container::before {
        display: none;
    }
    .game-frame {
        height: 450px;
    }
    .features-grid, .stats-grid {
        grid-template-columns: 1fr;
    }
    .content-box {
        padding: 30px 20px;
    }
}