/* General Reset */
body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #1a1a1a;
    color: #ffffff;
    overflow-x: hidden;
}

/* Background Layer for Transitioning Images */
body {
    background: url('images/bg1.jpg') no-repeat center center fixed;
    background-size: cover;
    transition: background 1s ease-in-out;
}

/* Full-Screen Background for Landing */
.full-screen {
    height: 100vh;
    position: relative;
}

#background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* Landing Content */
.landing-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
}

.logo {
    max-width: 50%;
    margin-bottom: 20px;
}

.download-button {
    padding: 15px 30px;
    background-color: #172421;
    color: #fff;
    text-decoration: none;
    font-size: 1.2em;
    border: 3px solid #4B6357;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.download-button:hover {
    background-color: #4B6357;
    border-color: #172421;
}

/* Full-Width H1 Styling */
h1 {
    background-color: #172421;
    color: #ffffff;
    text-align: center;
    margin: 0;
    padding: 20px 0;
    font-size: 2em;
    font-weight: bold;
    text-transform: uppercase;
    width: 100%;
    border: 3px solid #4B6357;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px; /* Add space between headline and next content */
}

h2 {
    font-size: 1.5em;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8); /* Added shadow */
    margin-bottom: 20px;
    text-align: center;
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.8em;
        padding: 15px 0;
    }
    h2 {
        font-size: 1.5em;
    }
}

/* About Section */
.about-canvas {
    background-color: #2a2a2a;
    border: 3px solid #4B6357;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    margin: 20px auto;
    max-width: 800px;
    border-radius: 5px; /* Smooth corners */
    color: #ddd;
}

.about-canvas p {
    font-size: 1.35em; /* Slightly larger font for readability */
    line-height: 1.5; /* Increase line spacing for better flow */
    margin-bottom: 25px; /* Add space between paragraphs */
    color: #dcdcdc; /* Use a soft white for readability */
    text-align: justify; /* Align text for a clean look */
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.6); /* Add subtle depth to text */
}


.about-canvas h2 {
    font-size: 1.5em;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 15px;
}

.feature-list {
    list-style: none; /* Remove default list styling */
    padding: 0;
    margin: 20px 0; /* Add spacing around the feature list */
}

.feature-list li {
    margin-bottom: 15px; /* Increase spacing between list items */
    font-size: 1.2em; /* Slightly larger font for better readability */
    line-height: 1.6; /* Improve text flow and readability */
    display: flex;
    align-items: flex-start; /* Align icon and text at the top */
    padding-left: 30px; /* Add space for the custom bullet icon */
    position: relative;
    text-align: left; /* Align text to the left for better structure */
}

.feature-list li::before {
    content: "►"; /* Change the bullet to a checkmark for better clarity */
    color: #4B6357; /* Use gold for a visually appealing highlight */
    font-size: 1.0em; /* Increase the size of the bullet */
    position: absolute; /* Position the icon relative to the text */
    left: 0; /* Align the bullet to the left of the text */
    top: 0px; /* Slight adjustment to vertically center the bullet */
}

.feature-list li:hover {
    color: #FFD700; /* Highlight text on hover to draw attention */
    transition: color 0.3s ease; /* Smooth transition effect */
}


/* Container */
.container {
    padding: 50px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

/* Territory Grid */
.territory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Adjusts to screen size */
    gap: 20px;
    margin-top: 20px;
}

/* Territory Box */
.territory-box {
    display: flex;
    background-color: #2a2a2a;
    border: 3px solid #4B6357;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.territory-box:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.territory-box img {
    width: 40%; /* Adjust image width */
    object-fit: cover;
    height: auto;
}

/* Territory Details */
.territory-details {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.territory-details h3 {
    color: #ffffff;
    font-size: 1.5em;
    margin-bottom: 10px;
}

.territory-details p {
    color: #ddd;
    line-height: 1.6;
    font-size: 1em;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: #111;
    color: #aaa;
}

/* Map Grid */
.map-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Display multiple maps per row */
    gap: 20px;
    padding: 20px 50px; /* Left and right padding */
    justify-items: center;
}

.map-canvas {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #2a2a2a;
    border: 3px solid #4B6357;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 250px; /* Map size */
}

.map-canvas:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.map-preview {
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 3px solid #4B6357;
    object-fit: cover;
}

.map-name {
    margin-top: 10px;
    font-size: 1.2em;
    color: #ffffff;
    text-align: center;
    text-shadow: 1px 1px 2px #000000;
    border: 2px solid #4B6357;
    padding: 5px;
    width: fit-content;
    background-color: #172421;
}

/* Gamemode Buttons */
.gamemode-buttons-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px; /* Add space between gamemode buttons and maps grid */
    margin-top: 20px; /* Add space between headline and buttons */
    padding: 0 50px; /* Same padding as map grid */
}

.gamemode-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    gap: 10px;
    justify-content: center;
}

.gamemode-button {
    padding: 10px 20px;
    background-color: #172421;
    color: #ffffff;
    border: 2px solid #4B6357;
    font-size: 1em;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.gamemode-button:hover {
    background-color: #4B6357;
    color: #172421;
}

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

.popup.hidden {
    display: none;
}

.popup-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.popup-image {
    width: 100%;
    height: auto;
    border: 3px solid #4B6357;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 2rem;
    color: #ffffff;
    cursor: pointer;
    background: #172421;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    transition: background 0.3s ease;
}

.popup-close:hover {
    background: #4B6357;
}

/* Roadmap Section */
.roadmap-container {
    position: relative;
    overflow: hidden; /* Hide horizontal scrollbar */
    padding: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.roadmap-scroller {
    display: inline-flex;
    gap: 20px;
    scroll-behavior: smooth;
    overflow-x: auto;
    padding: 10px 50px;
    width: 100%;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.roadmap-scroller::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome and Safari */
}

.roadmap-entry {
    flex: 0 0 auto;
    width: 260px; /* Slightly wider for better readability */
    min-height: 350px; /* Increase height to accommodate content */
    background-color: #1d1d1d; /* Slightly darker background for better contrast */
    border: 3px solid #4B6357;
    border-radius: 10px;
    text-align: left; /* Align text to the left for better readability */
    padding: 20px 15px; /* Adjust padding for better spacing */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    scroll-snap-align: center; /* Snap entries to center */
}

.roadmap-entry h3 {
    font-size: 1.4em; /* Make the title slightly larger */
    color: #FFD700; /* Highlight title with gold color */
    margin-bottom: 10px; /* Add space between the title and the date */
    border-bottom: 2px solid #4B6357; /* Separate the title with a subtle underline */
    padding-bottom: 5px; /* Add padding under the title for spacing */
}

.roadmap-entry p {
    font-size: 0.9em; /* Slightly smaller text for the date */
    color: #cccccc; /* Light gray for less emphasis */
    margin-bottom: 15px; /* Add spacing before the list */
}

.roadmap-entry ul {
    list-style: none; /* Remove default bullet points */
    padding-left: 0; /* Remove extra padding */
    margin: 0; /* Reset margin */
    font-size: 0.95em; /* Slightly smaller font for lists */
    line-height: 1.6; /* Improve line spacing for readability */
    color: #ffffff; /* White text for better contrast */
}

.roadmap-entry ul li {
    position: relative;
    margin-bottom: 10px; /* Add space between items */
    padding-left: 25px; /* Add space for the custom bullet icon */
}

.roadmap-entry ul li::before {
    content: "➤"; /* Use a custom bullet icon */
    position: absolute;
    left: 0; /* Align bullet to the left of the text */
    top: 0;
    color: #FFD700; /* Highlight bullet icon */
    font-size: 1.2em; /* Slightly larger icon */
}


.roadmap-entry.current {
    border: 3px solid #FFD700;
    transform: scale(1.2);
}

.roadmap-entry.major {
    background-color: #172421;
    border: 3px solid #FF5733;
}

/* Roadmap Arrow Controls */
.roadmap-container .arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
}

.roadmap-container .arrow.left {
    left: 10px;
    background: url('images/arrow-left.svg') no-repeat center center / contain;
}

.roadmap-container .arrow.right {
    right: 10px;
    background: url('images/arrow-right.svg') no-repeat center center / contain;
}

/* Adjust roadmap entry for small screens */
@media (max-width: 768px) {
    .roadmap-entry {
        width: 200px;
        height: 250px;
    }
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #172421;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.navbar-logo {
    font-size: 1.5em;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
}

.navbar-links {
    display: flex;
    gap: 20px;
    transition: all 0.3s ease-in-out;
    padding-right: 20px; /* Add padding to prevent clipping */
    margin-right: 10px; /* Ensure spacing from the scrollbar */
}


.navbar-links a {
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    padding: 8px 15px;
    border: 2px solid transparent;
    transition: color 0.3s, border-color 0.3s;
}

.navbar-links a:hover {
    color: #4B6357;
    border-color: #4B6357;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    z-index: 1100; /* Higher than navbar-links */
    margin-right: 15px; /* Ensure it does not clip on the right */
    position: relative;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .navbar-links {
        display: none;
        flex-direction: column;
        background-color: #172421;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        padding: 15px 0;
    }

    .navbar-links.active {
        display: flex;
    }

    .navbar-links a {
        margin: 10px 15px; /* Add space around links for easier tapping */
        padding: 10px 15px;
    }

    .hamburger {
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

    .hamburger.active div:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active div:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active div:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Prevent clipping on smaller screens */
    .hamburger {
        margin-right: 10px;
    }

    .hamburger div {
        width: 30px; /* Slightly larger for better visibility */
    }
}

/* Gallery Section */
.gallery-container {
    padding: 50px 0;
    text-align: center;
    background-color: #1a1a1a;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsive grid */
    gap: 20px;
    padding: 0 50px; /* Same padding as other sections */
    justify-items: center;
}

.gallery-item {
    position: relative;
    width: 100%;
    max-width: 250px; /* Consistent size with maps */
    overflow: hidden;
    border: 3px solid #4B6357;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.05); /* Slight zoom effect */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.gallery-item:hover img {
    transform: scale(1.1); /* Slight zoom on image */
}

/* Popup for Enlarged Images */
#gallery-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

#gallery-popup.hidden {
    display: none;
}

#gallery-popup .popup-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

#gallery-popup img {
    width: 100%;
    height: auto;
    border: 3px solid #4B6357;
}

#gallery-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 2rem;
    color: #ffffff;
    cursor: pointer;
    background: #172421;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    transition: background 0.3s ease;
}

#gallery-popup-close:hover {
    background: #4B6357;
}
