/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #fff;
    background-color: #000;
    font-size: 1vw; /* Adjust this value to scale the base font size */
}

/* Navbar Styles */
.navbar {
    background-color: #222;
    padding: 10px 0;
    border-bottom: 2px solid #444;
}

.container {
    width: 80%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left ul,
nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

nav a,
.nav-left a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    position: relative;
    transition: color 0.3s ease;
}

.nav-left a:hover,
nav a:hover {
    color: #00a0ff; /* Cyan-blue */
}

.nav-left a::after,
nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: #00a0ff;
    transition: width 0.3s ease;
}

.nav-left a:hover::after,
nav a:hover::after {
    width: 100%;
}

/* Icon styles for navbar */
.icon {
    width: 20px;
    height: 20px;
    margin-right: 5px;
}



/* Hero Section Styles */
.hero {
    position: relative;
    text-align: center;
    min-height: 250px; /* Ensures that the hero section does not collapse */
}

.key-art {
    width: 100%;
    height: auto;
}

.hero-title-overlay {
    position: absolute;
    top: 3%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    text-shadow: 2px 2px 8px #000;
}

.hero-title-overlay h1 {
    font-size: 64px;
    font-weight: bold;
    margin: 0;
    text-shadow: 2px 2px 8px #000;
    -webkit-text-stroke: 2px black;
}

.hero-title-overlay img {
    width: 100%; /* Adjust this percentage as needed */
    width: 30vw; /* Adjust the vw value as needed */
    height: auto;
    box-shadow: 0 0 20px 10px rgba(0, 0, 0, 0.8); /* Black glow */
}

/* Add the font-family for the hero <p> text */
.hero-title-overlay p {
    font-family: 'Segoe', sans-serif;
    font-weight: bold;
    margin: -5px 0; /* Adjusted margin */
    color: #fff;
    text-shadow: 2px 2px 8px #000;
    -webkit-text-stroke: 1px black;
    
    font-size: 24px;
    font-size: 1.6vw; /* Adjust this value to scale the base font size */
}

.hero-overlay {
    position: absolute;
    bottom: 0%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    font-size: 24px;
}

.trailer-video video {
    width: 100%;
    height: auto;
    border: none;
    border-radius: 10px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.cta-button {
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 1.6vw; /* Adjust this value to scale the base font size */
}

.cta-button.left {
    background-color: #308be0; /* Blue for Steam */
    transition: box-shadow 0.3s ease, transform 0.3s ease; /* Smooth transition for the glow effect and size change */
}

.cta-button.left:hover {
    box-shadow: 0 0 15px 5px rgba(255, 255, 0, 0.8), /* Yellow glow */
                0 0 25px 10px rgba(255, 255, 255, 0.5); /* White glow */
    transform: scale(1.05); /* Increase size by 5% */
}

.cta-button.right {
    background-color: #df5f30; /* Orange for Patreon */
}

/* Features Section Styles */
.features .container {
    display: flex;
    justify-content: space-between;
    align-items: stretch; /* Ensure all features are of equal height */
    gap: 20px;
}

.feature {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex: 1;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature p {
    margin-top: 0; /* Ensure text below image starts at the same point across features */
}


.feature:hover {
    cursor: pointer;
}

.feature-image {
    width: 100%;
    height: auto;
    margin-bottom: 20px; /* Ensure consistent spacing below the image */
    transition: transform 0.3s ease; /* Add transition for scaling effect */
}

.feature:hover .feature-image {
    transform: scale(1.05);
    cursor: pointer;
    box-shadow: 0 0 10px rgb(0, 200, 255); /* Light blue glow */
}


.feature h2 {
    margin-top: 0;
    position: relative;
    transition: color 0.3s ease;
    text-align: center; /* Center the h2 element horizontally */
    margin-bottom: 20px; /* Ensure consistent spacing below h2 */
}


.feature:hover h2 {
    color: #00a0ff; /* Cyan-blue */
}

.feature h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: #00a0ff;
    transition: width 0.3s ease, left 0.3s ease;
}

.feature:hover h2::after {
    width: 100%;
    left: 0;
}

/* Overlay container to position overlays correctly */
.overlay-container {
    position: relative;
}

/* Common overlay styles */
.overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    width: 4vw; /* Adjust based on the desired scaling */
    height: 4vw; /* Maintain aspect ratio to match width */
    
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Specific overlays */
.play-button-overlay::before {
    content: '\25B6'; /* Unicode character for play button */
    font-size: 30px;
    font-size: 3vw; /* Adjust based on the desired scaling */
    color: #000;
    
}

.steam-logo-overlay {
    background: url('images/icons/steam.png') no-repeat center center;
    background-size: contain;
    opacity: 1.0; /* Semi-transparent */
    width: 50px;
    height: 50px;
    
    width: 4vw; /* Adjust based on the desired scaling */
    height: 4vw; /* Maintain aspect ratio to match width */
    
}

.patreon-logo-overlay {
    background: url('images/icons/patreon.png') no-repeat center center;
    background-size: contain;
    opacity: 1.0; /* Semi-transparent */
    width: 50px;
    height: 50px;
    border-radius: 0; /* Remove border-radius */
    
    width: 4vw; /* Adjust based on the desired scaling */
    height: 4vw; /* Maintain aspect ratio to match width */
    
}

.discord-logo-overlay {
    background: url('images/icons/discord2.png') no-repeat center center;
    background-size: contain;
    opacity: 1.0; /* Semi-transparent */
    width: 50px;
    height: 50px;
    width: 4vw; /* Adjust based on the desired scaling */
    height: 4vw; /* Maintain aspect ratio to match width */
    border-radius: 0; /* Remove border-radius */
}

/* Overlay for dimming the background when trailer is displayed */
.overlay-dim {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.trailer {
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70%;
    
    border: 2px solid #222; /* Add a white border */

}

.trailer video {
    width: 100%;
    height: auto;
    
}

/* Footer Styles */
footer {
    background-color: #222;
    padding: 20px 0;
    border-top: 2px solid #444;
    text-align: center;
}

footer nav ul {
    justify-content: center;
    display: flex;
    gap: 20px;
}

footer nav a {
    color: #fff;
}


/* about section */
.about-metalmercs {
    background-size: cover;
    background-position: center;
    padding: 50px 0;
    color: #fff;
}

.about-metalmercs .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap; /* Allow cards to wrap on smaller screens */
}

.about-card {
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent black background */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    flex: 0 0 60%; /* Each card takes about half of the container width */
    margin-bottom: 20px; /* Space between rows if wrapping */
}

.about-image img {
    width: 350px; /* Adjust the size as needed */
    height: auto;
    border-radius: 10px;
    margin-right: 20px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin: 0 0 10px; /* Space out paragraphs */
}

.wiki-link {
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.wiki-link:hover {
    color: #ffd700; /* Gold color on hover */
}

.wiki-icon {
    width: 18px;
    height: 25px;
    margin-right: 5px;
    margin-top: -5px;
}

/* This class will be applied directly to the <p> tag to ensure it centers the content correctly */
.centered-link {
    text-align: center; /* Center text horizontally */
    display: block; /* Ensure the element is treated as a block-level element */
    width: 100%; /* Take full width to ensure center alignment works */
    margin: 0 auto; /* Auto margins to help with centering */
}


/* Email Sign-Up Overlay Styles */
.email-form {
    background-color: #222;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    color: #fff; /* White text */
}

.email-form h2 {
    margin-top: 0;
    color: #fff;
}

.email-form label {
    display: block;
    margin-bottom: 10px;
    color: #fff; /* White text */
}

.email-form input[type="email"] {
    width: 80%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #333; /* Dark background */
    color: #fff; /* White text */
}

.email-form input[type="email"]::placeholder {
    color: #ccc; /* Lighter placeholder text */
}

.email-form button {
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.email-form button:hover {
    background-color: #0056b3;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3); /* Light grey */
    border-top: 4px solid #fff; /* White */
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile Styles */
@media only screen and (max-width: 768px) {
    body {
        font-size: 4vw; /* Adjust this value to scale the base font size */
    }

    .hero-title-overlay p {
        font-size: 5vw; /* Adjust this value to scale the base font size */
    }
    

    .container {
        width: 100%;
        padding: 0 10px;
        flex-direction: column;
    }

    .navbar,
    .nav-left ul,
    nav ul {
        display: none;
    }

    .hero-title-overlay {
        top: 10%;
        width: 90%; /* Max width 90% of the screen */
    }

    .hero-title-overlay img {
        width: 90%; /* Max width 90% of the screen */
        height: auto; /* Maintain aspect ratio */
        margin-top: 5%
    }

    .hero {
        height: 60vh; /* Increase height to trim sides */
        overflow: hidden; /* Trim sides if necessary */
        position: relative;
        margin-bottom: 30px; /* Add gap below hero section */
    }

    .key-art {
        width: auto; /* Allow width to go beyond the screen */
        height: 100%; /* Full height of the hero section */
        object-fit: cover; /* Cover the hero section */
        position: absolute;
        left: 50%; /* Shift slightly to the left */
        transform: translateX(-50%);
    }

    .features {
        background-image: url('images/space_station_02.png');
        background-size: cover;
    }
    
    .cta-buttons {
        display: flex; /* Changed from none to flex to make it visible */
        
    }

    .cta-button {
        font-size: 24px; /* Increase feature card titles */
    }

    .features .container {
        flex-direction: column;
        gap: 15px; /* Reduce vertical gap between features */
    }

    .feature {
        background-color: #222; /* Set background color for feature */
        background-color: rgba(34, 34, 34, 0.8); /* #222 with 80% opacity */
        margin: 10px 0; /* Add vertical spacing above and below features */
        padding: 10px; /* Add padding to the features */
    }

    .feature:first-child {
        margin-top: 0; /* Remove top margin for the first feature */
    }

    .feature:last-child {
        margin-bottom: 30px; /* Add more gap after the last feature */
    }

    .feature h2 {
        font-size: 24px; /* Increase feature card titles */
    }

    .about-metalmercs .container {
        flex-direction: column;
    }

    .about-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .about-image img {
        width: 100%;
        margin-bottom: 20px;
        margin-right: 0;
    }

    .email-form {
        width: 90%;
    }

    .overlay {
        width: 50px;
        height: 50px;
    }

    .play-button-overlay::before {
        font-size: 30px;
        
    }
    
    .steam-logo-overlay,
    .patreon-logo-overlay,
    .discord-logo-overlay {
        width: 50px;
        height: 50px;
        
    }
}



/* Add hover effect for the about card */
.about-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
    cursor: pointer;
    box-shadow: 0 0 20px rgb(0, 200, 255); /* Blue glow */
}

.about-card h1 {
    margin-top: 0;
    position: relative;
    transition: color 0.3s ease;
    text-align: center; /* Center the h1 element horizontally */
    margin-bottom: 20px; /* Ensure consistent spacing below h1 */
}

.about-card:hover h1 {
    color: #00a0ff; /* Cyan-blue */
}

.about-card h1::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: #00a0ff;
    transition: width 0.3s ease, left 0.3s ease;
}

.about-card:hover h1::after {
    width: 100%;
    left: 0;
}