/* --- Global Styles & Variables --- */
 :root {
     --primary-color: #1a1a1a;
     --secondary-color: #111111;
     --accent-color: #B22222;
     --glow-color: rgba(178, 34, 34, 0.7);
     --text-color: #e0e0e0;
     --font-heading: 'Special Elite', cursive;
     --font-body: 'Roboto', sans-serif;
}
 * {
     box-sizing: border-box;
     margin: 0;
     padding: 0;
}
 html {
     scroll-behavior: smooth;
}
 body {
     font-family: var(--font-body);
     background-color: var(--primary-color);
     color: var(--text-color);
     line-height: 1.6;
     overflow-x: hidden;
}
 .container {
     max-width: 1100px;
     margin: 0 auto;
     padding: 0 30px;
}
 h1, h2 {
     font-family: var(--font-heading);
     color: white;
     margin-bottom: 20px;
}
 h1 {
     font-size: 3.8rem;
     min-height: 150px;
}
 h2 {
     font-size: 2.5rem;
     text-align: center;
     text-transform: uppercase;
     letter-spacing: 2px;
}
 p {
     margin-bottom: 15px;
}
 a {
     color: var(--accent-color);
     text-decoration: none;
}
/* --- Navigation Bar --- */
 .navbar {
     background-color: rgba(0, 0, 0, 0.7);
     backdrop-filter: blur(8px);
     border-bottom: 1px solid #333;
     position: fixed;
     width: 100%;
     top: 0;
     z-index: 100;
}
 .navbar .container {
     display: flex;
     justify-content: space-between;
     align-items: center;
     height: 70px;
}
 .navbar .logo {
     font-family: var(--font-heading);
     font-size: 1.8rem;
     color: white;
     font-weight: bold;
     text-shadow: 0 0 10px var(--glow-color);
}
 .navbar .nav-links {
     list-style: none;
     display: flex;
     align-items: center;
}
 .navbar .nav-links li {
     margin-left: 25px;
}
 .navbar .nav-links a {
     color: var(--text-color);
     font-weight: bold;
     text-transform: uppercase;
     transition: color 0.3s ease, text-shadow 0.3s ease;
}
 .navbar .nav-links a:hover {
     color: var(--accent-color);
     text-shadow: 0 0 5px var(--glow-color);
}
 .hamburger {
     display: none;
     cursor: pointer;
}
 .hamburger .bar {
     display: block;
     width: 25px;
     height: 3px;
     margin: 5px auto;
     transition: all 0.3s ease-in-out;
     background-color: white;
}
/* --- Hero Section --- */
.hero {
    position: relative;
    width: 100%;
    height: 80vh; /* this ensures the hero has vertical space */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2; /* above overlays and images */
    max-width: 90%;
}

/* Hero slideshow */
.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* behind everything */
}

.hero-slideshow img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%); /* center image */
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slideshow img.active {
    opacity: 1;
}

 .hero-overlay {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: radial-gradient(circle, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.8) 100%);
}
 .noise-overlay {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: url('images/noise.png');
     opacity: 0.1;
     pointer-events: none;
}
 .hero h1 {
     text-shadow: 0 0 15px rgba(0, 0, 0, 1);
}
 .typed-cursor {
     color: var(--accent-color);
     font-size: 4rem;
}
 .hero p {
     font-size: 1.2rem;
     max-width: 600px;
     margin: 0 auto 30px;
}
/* --- Buttons --- */
 .btn {
     display: inline-block;
     background-color: var(--accent-color);
     color: white;
     padding: 12px 25px;
     text-transform: uppercase;
     font-weight: bold;
     border: 2px solid var(--accent-color);
     transition: all 0.3s ease;
     box-shadow: 0 0 15px var(--glow-color);
}
 .btn:hover {
     background-color: transparent;
     color: var(--accent-color);
     transform: scale(1.05);
}
 .btn-apply {
     background: transparent;
     border: 2px solid var(--accent-color);
     color: var(--accent-color);
     padding: 8px 15px;
}
 .btn-apply:hover {
     background: var(--accent-color);
     color: white;
     box-shadow: 0 0 10px var(--glow-color);
}
/* --- Content Sections & Scroll Animations --- */
 .content-section {
     padding: 80px 0;
     text-align: center;
}
 .content-section-dark {
     background-color: var(--secondary-color);
     padding: 80px 0;
}
 .hidden {
     opacity: 0;
     transform: translateY(50px);
     transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
 .show {
     opacity: 1;
     transform: translateY(0);
}
/* --- BALANCED Features Grid --- */
 .features-grid {
     display: grid;
    /* This creates a 2x2 grid */
     grid-template-columns: repeat(2, 1fr);
     gap: 30px;
     margin: 40px auto 0;
     text-align: left;
     max-width: 900px;
    /* Prevents items from getting too wide */
}
 .feature-item {
     background-color: var(--primary-color);
     padding: 30px;
     border: 1px solid #444;
     transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
 .feature-item:hover {
     transform: translateY(-10px);
     border-color: var(--accent-color);
     box-shadow: 0 10px 20px rgba(0,0,0,0.5), 0 0 15px var(--glow-color);
}
 .feature-item h3 {
     color: var(--accent-color);
     font-family: var(--font-heading);
     font-size: 1.5rem;
     margin-bottom: 10px;
}
/* --- Footer --- */
 footer {
     background-color: var(--secondary-color);
     text-align: center;
     padding: 30px 0;
     border-top: 1px solid #444;
}
 
/* ========================================= */
/* --- MOBILE RESPONSIVE STYLES --- */
/* ========================================= */
@media(max-width: 768px) {
    .hamburger { display: block; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px; 
        gap: 0;
        flex-direction: column;
        background-color: var(--primary-color);
        width: 100%;
        height: calc(100vh - 70px);
        text-align: center;
        transition: 0.3s;
    }
    .nav-links.active {
        left: 0;
    }
    .nav-links li {
        padding: 20px 0;
        margin-left: 0;
        width: 100%;
    }
        .server-status {
        justify-content: center;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .nav-links a {
        font-size: 1.2rem;
    }
    .btn-apply {
        border: none;
        padding: 0;
    }
    .btn-apply:hover {
        background: none;
        color: var(--accent-color);
    }
    
    .hero h1 { font-size: 2.8rem; min-height: 120px; }
    .typed-cursor { font-size: 3rem; }
    .hero p { font-size: 1rem; }

    h2 { font-size: 2rem; }

    .features-grid {
        grid-template-columns: 1fr;
    }
}
/* ========================================= */
/* --- LORE PAGE STYLES --- */
/* ========================================= */

/* Style for the active link in the navbar */
.navbar .nav-links a.active {
    color: var(--accent-color);
    text-shadow: 0 0 5px var(--glow-color);
}

/* Header for the Lore Page */
.lore-header {
    position: relative;
    padding: 120px 0 60px 0;
    text-align: center;
    background-color: var(--secondary-color);
    border-bottom: 2px solid var(--accent-color);
}

.lore-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.lore-header p {
    font-size: 1.1rem;
    color: #aaa;
}

.intro-text {
    max-width: 800px;
    margin: 0 auto 50px auto;
    font-style: italic;
    color: #ccc;
}


/* --- Vertical Timeline --- */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 50px auto;
}

/* The central line of the timeline */
.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--accent-color);
    box-shadow: 0 0 10px var(--glow-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
}

/* Container around the content */
.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

/* The circle on the timeline */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--primary-color);
    border: 3px solid var(--accent-color);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
}

/* Place the container to the left */
.timeline-item:nth-child(odd) {
    left: 0;
}

/* Place the container to the right */
.timeline-item:nth-child(even) {
    left: 50%;
}

/* Fix the circle for right-sided items */
.timeline-item:nth-child(even)::after {
    left: -10px;
}

/* The actual content box */
.timeline-content {
    padding: 20px 30px;
    background-color: var(--secondary-color);
    border: 1px solid #444;
    position: relative;
    border-radius: 6px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.timeline-item:hover .timeline-content {
    transform: scale(1.03);
    box-shadow: 0 0 20px rgba(0,0,0,0.7);
}


.timeline-content h3 {
    font-family: var(--font-heading);
    color: var(--accent-color);
    margin-bottom: 10px;
    font-size: 1.6rem;
}

/* --- Lore Details Section --- */
.lore-details h2 {
    margin-bottom: 40px;
}
.lore-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    text-align: left;
}
.lore-item {
    background-color: var(--primary-color);
    padding: 25px;
    border-left: 3px solid var(--accent-color);
}
.lore-item h3 {
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

@media screen and (max-width: 768px) {
    .lore-header h1 {
        font-size: 2.5rem;
    }

    /* Make the timeline vertical */
    .timeline::after {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 15px;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item::after {
        left: 10px;
    }

    /* Stack the lore details grid */
    .lore-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================= */
/* --- RULES PAGE STYLES --- */
/* ========================================= */

/* Header for the Rules Page */
.rules-header {
    position: relative;
    padding: 120px 0 60px 0;
    text-align: center;
    background-color: var(--secondary-color);
    border-bottom: 2px solid var(--accent-color);
}

.rules-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.rules-header p {
    font-size: 1.1rem;
    color: #aaa;
}


.content-section h2 {
    margin-bottom: 40px; 
}

/* Grid container for rule cards */
.rules-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two columns on desktop */
    gap: 25px;
    margin-bottom: 60px;
}


.rules-grid.single-column {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Individual rule cards */
.rule-card {
    background-color: var(--secondary-color);
    padding: 25px 30px;
    border: 1px solid #333;
    border-left: 4px solid var(--accent-color);
}

.rule-card h3 {
    font-family: var(--font-body); 
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.rule-card p {
    color: #ccc;
    font-size: 0.95rem;
    margin-bottom: 0;
}


.zero-tolerance-box {
    margin-top: 40px;
    margin-bottom: 40px;
    background-color: rgba(178, 34, 34, 0.08); 
    border: 2px solid var(--accent-color);
    padding: 30px;
    text-align: left;
}

.zero-tolerance-box h2 {
    text-align: center;
    color: white;
    text-shadow: 0 0 10px var(--glow-color);
}

.zero-tolerance-box p {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 25px;
}

.zero-tolerance-box ul {
    list-style-type: none; 
    max-width: 700px;
    margin: 0 auto;
}

.zero-tolerance-box ul li {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23B22222" class="bi bi-x-circle-fill" viewBox="0 0 16 16"><path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM5.354 4.646a.5.5 0 1 0-.708.708L7.293 8l-2.647 2.646a.5.5 0 0 0 .708.708L8 8.707l2.646 2.647a.5.5 0 0 0 .708-.708L8.707 8l2.647-2.646a.5.5 0 0 0-.708-.708L8 7.293 5.354 4.646z"/></svg>') no-repeat left 5px;
    padding-left: 25px;
    margin-bottom: 15px;
}


.final-agreement {
    text-align: center;
    font-style: italic;
    color: #888;
    margin-top: 50px;
}


/* --- MOBILE RESPONSIVE STYLES FOR RULES PAGE --- */
@media screen and (max-width: 768px) {
    .rules-header h1 {
        font-size: 2.5rem;
    }


    .rules-grid {
        grid-template-columns: 1fr;
    }

    .zero-tolerance-box {
        padding: 20px;
    }
}

/* ========================================= */
/* --- LIVE SERVER STATUS STYLES --- */
/* ========================================= */

/* General container for the status link */
.server-status {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

/* The dot that indicates status */
.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
    background-color: #888; /* Default grey for "Checking..." */
    box-shadow: 0 0 8px #888;
}

/* Styling for the player count */
.player-count {
    margin-left: 5px;
    color: #aaa;
    font-weight: 300;
}

/* --- ONLINE STATE --- */
.server-status.status-online {
    color: #2E8B57; /* SeaGreen */
}
.server-status.status-online .status-dot {
    background-color: #2E8B57;
    box-shadow: 0 0 8px #2E8B57;
    animation: pulse 2s infinite; 
}

/* --- OFFLINE STATE --- */
.server-status.status-offline {
    color: #B22222; 
}
.server-status.status-offline .status-dot {
    background-color: #B22222;
    box-shadow: none; /* No glow when offline */
    animation: none; /* No pulse when offline */
}

/* Drop Down Thingy */
        .accordion-container {
            max-width: 900px;
            margin: 2rem auto;
        }

        .accordion-button {
            background-color: #2c2c2c;
            color: #f1f1f1;
            cursor: pointer;
            padding: 18px 25px;
            width: 100%;
            border: none;
            text-align: left;
            outline: none;
            font-size: 1.3rem;
            font-family: var(--font-heading, 'Special Elite', monospace); 
            transition: background-color 0.4s ease;
            margin-top: 8px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-left: 3px solid var(--accent-color, #c0392b);
        }

        .accordion-button:hover, .accordion-button.active {
            background-color: #3d3d3d;
        }
        

        .accordion-title {
            display: flex;
            flex-direction: column;
        }
        

        .accordion-title .lifestyle {
            font-family: var(--font-body, 'Roboto', sans-serif);
            font-size: 0.9rem;
            color: #aaa;
            font-weight: 300;
            margin-top: 4px;
        }

        .accordion-panel {
            padding: 0 25px;
            background-color: #222;
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease-out;
            border-left: 3px solid #555;
        }
        
        .panel-content {
            padding: 20px 0;
        }
        
        .accordion-panel blockquote {
             font-style: italic; color: #ccc; margin: 0 0 1.5rem 0; padding-left: 1rem; border-left: 2px solid #555;
        }

        .accordion-panel p {
            line-height: 1.7; color: #ddd;
        }

        .icon-toggle {
            font-size: 1.5rem;
            font-weight: bold;
            transition: transform 0.3s ease;
        }

        .accordion-button.active .icon-toggle {
            transform: rotate(45deg);
        }


        .lore-intro { text-align: center; margin-bottom: 3rem; }
        .lore-intro blockquote { font-family: var(--font-heading); font-size: 1.8rem; margin: 1.5rem 0; padding: 1rem; border-left: 3px solid var(--accent-color); color: #f1f1f1; }
        .lore-intro p { max-width: 800px; margin: 0 auto; line-height: 1.6; }
        .important-note { background-color: rgba(255, 235, 59, 0.1); border: 1px solid #f1c40f; padding: 1.5rem; margin: 2rem 0; border-radius: 5px; }
        .important-note h4 { margin-top: 0; color: #f1c40f; font-family: var(--font-heading); }
        .cero-section { background-color: var(--secondary-color); padding: 4rem 0; text-align: center; }
        .cero-section blockquote { font-family: var(--font-heading); color: #aaa; font-size: 1.5rem; }
        .cero-section p { color: #bbb; max-width: 800px; margin: 1rem auto; }
    
/* Hero section */
.hero {
    position: relative;
    width: 100%;
    height: 80vh; /* adjust height as needed */
    display: flex;
    align-items: center; /* vertical center */
    justify-content: center; /* horizontal center */
    text-align: center;
    overflow: hidden;
    color: white;
}

/* Overlay for darkening hero images */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* dark overlay */
    z-index: 0;
}

.noise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

