/* The Trail Mats - Dwarves Mine Theme */
/* 7th Unique Design: Earthy Underground Cave Aesthetic */
/* Colors: Browns, Copper, Bronze, Stone Gray */
/* Font: Palatino Linotype (7th unique serif font) */

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

:root {
    --primary-color: #8B4513;        /* Saddle Brown */
    --secondary-color: #CD853F;      /* Peru (Copper/Bronze) */
    --accent-color: #B8860B;         /* Dark Goldenrod */
    --dark-bg: #2F1B0C;              /* Deep Brown */
    --light-bg: #4A2F1A;             /* Medium Brown */
    --stone-gray: #696969;           /* Dim Gray */
    --text-light: #F5DEB3;           /* Wheat */
    --text-dark: #1A0F06;            /* Almost Black */
    --warning-color: #FF6347;        /* Tomato */
}

body {
    font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--light-bg) 100%);
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
}

/* Header & Navigation */
header {
    background: linear-gradient(90deg, #2F1B0C 0%, #4A2F1A 50%, #2F1B0C 100%);
    border-bottom: 3px solid var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav-links a:hover {
    color: var(--secondary-color);
    background: rgba(205, 133, 63, 0.1);
    border-color: var(--secondary-color);
}

.nav-links a.active {
    color: var(--accent-color);
    background: rgba(184, 134, 11, 0.2);
    border-color: var(--accent-color);
    font-weight: 600;
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.nav-toggle span {
    width: 28px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    min-height: 500px;
    /* Dull background image with dark overlay to keep contrast */
    background: linear-gradient(135deg, rgba(26,15,6,0.65) 0%, rgba(26,15,6,0.45) 100%),
                url('bg.jpg') center/cover no-repeat;
    border-radius: 8px;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-light);
    line-height: 1.8;
}

.hero-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.3) 0%, rgba(205, 133, 63, 0.2) 100%);
    border: 3px solid var(--secondary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.hero-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.1rem;
    border: 2px solid var(--secondary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(205, 133, 63, 0.6);
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--stone-gray) 0%, var(--primary-color) 100%);
    border-color: var(--stone-gray);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--stone-gray) 100%);
}

/* Disclaimer Section */
.disclaimer-section {
    max-width: 1400px;
    margin: 3rem auto;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255, 99, 71, 0.15) 0%, rgba(184, 134, 11, 0.1) 100%);
    border: 3px solid var(--warning-color);
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(255, 99, 71, 0.3);
}

.disclaimer-section h2 {
    color: var(--warning-color);
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.disclaimer-section p {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.disclaimer-section .btn {
    display: block;
    margin: 0 auto;
    max-width: 300px;
}

/* Game Section */
.game-section {
    max-width: 1400px;
    margin: 3rem auto;
    padding: 2rem;
}

.game-section h1,
.game-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.game-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    background: var(--dark-bg);
    border: 4px solid var(--secondary-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
}

.game-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* About Section */
.about {
    max-width: 1400px;
    margin: 3rem auto;
    padding: 3rem 2rem;
    /* Dull background image with slightly lighter overlay than hero */
    background: linear-gradient(135deg, rgba(26,15,6,0.55) 0%, rgba(26,15,6,0.35) 100%),
                url('bg.jpg') center/cover no-repeat;
    border-top: 3px solid var(--secondary-color);
    border-bottom: 3px solid var(--secondary-color);
    border-radius: 6px;
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.about p {
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto 1.5rem;
    text-align: center;
    color: var(--text-light);
}

/* Features Section */
.features {
    max-width: 1400px;
    margin: 3rem auto;
    padding: 3rem 2rem;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: linear-gradient(135deg, rgba(74, 47, 26, 0.8) 0%, rgba(47, 27, 12, 0.9) 100%);
    padding: 2rem;
    border-radius: 8px;
    border-left: 5px solid var(--secondary-color);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateX(10px);
    border-left-color: var(--accent-color);
    box-shadow: 0 8px 25px rgba(205, 133, 63, 0.4);
}

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

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Reviews Section */
.reviews {
    max-width: 1400px;
    margin: 3rem auto;
    padding: 3rem 2rem;
    background: rgba(47, 27, 12, 0.6);
}

.reviews h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.review-card {
    background: linear-gradient(135deg, rgba(74, 47, 26, 0.7) 0%, rgba(47, 27, 12, 0.8) 100%);
    padding: 2rem;
    border-radius: 8px;
    border-top: 4px solid var(--secondary-color);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.review-card p {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.review-card .reviewer {
    color: var(--accent-color);
    font-weight: 600;
    text-align: right;
}

/* Contact Section */
.contact-hero {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
    text-align: center;
}

.contact-hero h1 {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.contact-hero p {
    font-size: 1.2rem;
    color: var(--text-light);
}

.contact-form-section {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 2rem;
}

.contact-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

form {
    background: rgba(74, 47, 26, 0.6);
    padding: 2.5rem;
    border-radius: 10px;
    border: 2px solid var(--secondary-color);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.9rem;
    background: rgba(26, 15, 6, 0.5);
    border: 2px solid var(--stone-gray);
    border-radius: 6px;
    color: var(--text-light);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 10px rgba(205, 133, 63, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.checkbox-group a {
    color: var(--accent-color);
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-light);
    border: 2px solid var(--secondary-color);
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(205, 133, 63, 0.4);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background: rgba(74, 47, 26, 0.6);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.info-card h3 {
    color: var(--accent-color);
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.info-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.info-card a {
    color: var(--secondary-color);
    text-decoration: none;
    display: block;
    margin-top: 0.5rem;
    transition: color 0.3s ease;
}

.info-card a:hover {
    color: var(--accent-color);
}

/* Legal Pages */
.legal-hero {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
    text-align: center;
    background: rgba(74, 47, 26, 0.4);
    border-bottom: 3px solid var(--secondary-color);
}

.legal-hero h1 {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.legal-hero p {
    font-size: 1.1rem;
    color: var(--text-light);
}

.legal-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.legal-section {
    margin-bottom: 3rem;
    background: rgba(74, 47, 26, 0.5);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.legal-section h2 {
    color: var(--secondary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.legal-section h3 {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
}

.legal-section p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-section ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.legal-section li {
    color: var(--text-light);
    margin-bottom: 0.8rem;
    line-height: 1.7;
}

.legal-section a {
    color: var(--accent-color);
    text-decoration: underline;
}

.legal-notice {
    background: linear-gradient(135deg, rgba(255, 99, 71, 0.2) 0%, rgba(184, 134, 11, 0.15) 100%);
    border: 3px solid var(--warning-color);
    border-radius: 8px;
    padding: 2rem;
    margin-top: 2rem;
    text-align: center;
}

.disclaimer-critical {
    background: linear-gradient(135deg, rgba(255, 99, 71, 0.25) 0%, rgba(184, 134, 11, 0.2) 100%);
    border-left-color: var(--warning-color);
}

.highlight-box {
    background: rgba(184, 134, 11, 0.2);
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid var(--accent-color);
    margin: 1rem 0;
}

.age-warning {
    color: var(--warning-color);
    font-size: 1.3rem;
}

.critical-list {
    list-style: none;
    margin-left: 0;
}

.critical-list li {
    padding-left: 1.5rem;
    position: relative;
}

.critical-list li::before {
    content: "⚠";
    position: absolute;
    left: 0;
    color: var(--warning-color);
}

/* Footer */
footer {
    background: linear-gradient(90deg, #2F1B0C 0%, #4A2F1A 50%, #2F1B0C 100%);
    border-top: 3px solid var(--secondary-color);
    margin-top: 4rem;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.5);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.footer-section p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.footer-section a {
    display: block;
    color: var(--text-light);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    padding: 0.3rem 0;
}

.footer-section a:hover {
    color: var(--secondary-color);
    padding-left: 10px;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--stone-gray);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Popup Overlay */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.popup-overlay.show {
    display: flex;
}

.popup-content {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--light-bg) 100%);
    padding: 3rem;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    border: 4px solid var(--warning-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    text-align: center;
}

.popup-content h3 {
    color: var(--warning-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.popup-content p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.popup-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.accept-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-light);
    padding: 1rem 2rem;
    border: 2px solid var(--secondary-color);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.accept-btn:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(205, 133, 63, 0.5);
}

.decline-btn {
    background: linear-gradient(135deg, var(--stone-gray) 0%, #4A2F1A 100%);
    color: var(--text-light);
    padding: 1rem 2rem;
    border: 2px solid var(--stone-gray);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.decline-btn:hover {
    background: linear-gradient(135deg, #4A2F1A 0%, var(--stone-gray) 100%);
}

/* Success Popup */
.success-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.success-content {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--light-bg) 100%);
    padding: 2.5rem;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    border: 3px solid var(--accent-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    text-align: center;
}

.success-content h3 {
    color: var(--accent-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.success-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.success-content button {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-light);
    padding: 0.8rem 2rem;
    border: 2px solid var(--secondary-color);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.success-content button:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-light);
    width: 50px;
    height: 50px;
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-top:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(205, 133, 63, 0.5);
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(180deg, #2F1B0C 0%, #4A2F1A 100%);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        border-bottom: 3px solid var(--secondary-color);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 2rem 1rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .popup-content {
        padding: 2rem 1.5rem;
    }

    .popup-content h3 {
        font-size: 1.5rem;
    }

    .popup-buttons {
        flex-direction: column;
    }
}
