body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #d2dae9; /*background: #e6edf7; /* Lightened version of the navbar color */
    display: flex;
    justify-content: center; /* Center horizontally */
    /*align-items: center; /* Center vertically */
    min-height: 100vh; /* Full viewport height */
}

.wrapper {
    max-width: 1600px;
    width: 100%;
    background: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}
nav {
    background: #214a84;
    color: white;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    min-height: 60px;
}
.nav-logo img {
    height: 50px;
}
.nav-links {
    display: flex;
    align-items: center;
}
.nav-links a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    display: inline-block;
    font-size: 110%;
}
.menu-icon {
    display: none;
    font-size: 2rem;
    cursor: pointer;
}
.main-content {
    display: flex;
    flex: 1;
}
.image-container {
    flex: 0 0 auto; /* Do not grow or shrink */
    width: 55px; /* Adjust as needed */
}
.image-container img {
    width: 100%;
    height: auto;
}
.content {
    flex: 1; /* Take remaining space */
    display: flex;
    flex-direction: column;
    overflow-x: hidden; /* Prevent horizontal overflow from affecting the entire page */
}
.hero {
    text-align: center;
    padding: 40px 20px;
}
.hero h1, .hero p {
    color: #000000;
}
.screenshot-gallery {
    display: flex;
    justify-content: flex-start; /* Align thumbnails to the left */
    overflow-x: auto; /* Enable horizontal scrolling */
    white-space: nowrap; /* Prevent wrapping of thumbnails */
    padding: 10px;
    background: #f4f4f4;
    max-width: 100%; /* Ensure gallery doesn't exceed screen width */
    box-sizing: border-box; /* Include padding in width calculation */
    margin: 0 auto; /* Center the gallery horizontally */
}

.screenshot-gallery a {
    display: inline-block;
    margin: 0 10px;
    flex: 0 0 auto; /* Prevent flex items from shrinking */
    cursor: pointer; /* Add pointer cursor to indicate clickable */
}

.screenshot-gallery img {
    height: 175px;
    width: auto;
    border: 1px solid #ccc;
    max-width: 100%; /* Ensure images don't exceed their container */
}
.container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}
.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Center items */
    gap: 20px; /* Add space between items */
    text-align: center;
    padding: 20px 0;
}
.feature {
    width: calc(33.333% - 40px); /* Adjust width to fit 3 in a row */
    max-width: 300px; /* Prevent items from getting too wide */
    padding: 20px;
}
.feature-icon {
    font-size: 3rem;
    color: #007bff;
}
.download {
    text-align: center;
    padding: 40px 0;
}
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #9bd702;
    color: white;
    text-decoration: none;
    font-size: large;
    font-weight: bold;
    border-radius: 5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, .5);
    box-shadow: 1px 1px 2px rgba(0, 0, 0, .5);    
}
.btn:hover {
    background: #85b902; /* Slightly darker green on hover */
}
footer {
    background: #214a84;
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: auto; /* Push footer to the bottom */
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); /* Dim the background */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0; /* Start with 0 opacity */
    transition: opacity 0.7s ease-in-out; /* Smooth fade transition */
}
.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border: 5px solid white;
    border-radius: 5px;
    opacity: 0; /* Start with 0 opacity */
    transition: opacity 0.7s ease-in-out; /* Smooth fade transition */
}
.lightbox.active {
    display: flex;
    opacity: 1; /* Fade in the lightbox */
}
.lightbox.active img {
    opacity: 1; /* Fade in the image */
}
a {
    color: #444; /* Inherits the text color from its parent */
    text-decoration: none; /* Removes the underline */
    font-size: 80%;
}

@media (max-width: 600px) {
    .nav-logo img {
        height: auto; /* Maintain aspect ratio */
        width: 100%; /* Set width to 80% of the container */
        max-width: 500px; /* Prevent the logo from becoming too large */
        margin: 0 auto; /* Center the logo horizontally */
    }
}

@media (max-width: 990px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        background: #214a84;
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }
    .nav-links a {
        display: block;
        padding: 10px 0;
    }
    .menu-icon {
        display: block;
    }
    .nav-active {
        display: flex;
    }
    .feature {
     flex: 1 1 100%; /* Each feature takes full width on smaller screens */   
     width: 100%;
    }
    .image-container {
        display: none; /* Hide the left image on smaller screens */
    }
}
