/*html {
    color-scheme: light dark;
}*/

main {
    max-width: min(70ch, 100% - 4rem);
    margin-inline: auto;
}

img,
svg,
video {
    max-width: 100%;
    display: block;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    font-family: System UI;
    font-size: 1.25rem;
    line-height: 1.5;
}

.header {
    /*background-color: #f8f9fa;*/
    padding: 2rem;
    text-align: center;
    /*border-bottom: 1px solid #eee;*/
}

.nav {
    background-color: #333;
    padding: 1rem;
    display: flex;
    justify-content: center; /* Center the nav links on desktop */
    align-items: center;
    position: relative; /* For positioning the hamburger menu */
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0; /* Remove default margin */
    padding: 0; /* Remove default padding */
}

.nav ul li {
    padding: 0.5rem 0;
}

.nav a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1.2rem;
}

.nav a:hover {
    color: #4CAF50;
}

.nav-toggle {
    display: none; /* Hide on desktop */
    cursor: pointer;
    /*color: white;*/
    font-size: 1.5rem;
    position: absolute; /* Position the hamburger menu */
    right: 1rem; /* Place it on the right */
}

/* Active link indicator */
.nav a.active {
    border-bottom: 2px solid #4CAF50;
}

.hero {
    padding: 4rem 2rem;
    text-align: center;
    background-color: #4CAF50;
    color: white;
}

/*.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}*/

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

.card {
    padding: 2rem;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

footer {
    background-color: #222;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

@media (max-width: 768px) {
    .nav {
        justify-content: flex-start; /* Align items to the left on mobile */
    }

    .nav ul {
        display: none; /* Hide the menu by default on mobile */
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        text-align: center;
        position: absolute;
        top: 100%; /* Position below the nav bar */
        left: 0;
        background-color: #333; /* Match nav background */
        padding: 1rem 0; /* Add some padding */
    }

    .nav-toggle {
        display: block; /* Show the hamburger menu on mobile */
    }

    /* Class to show the menu when toggled */
    .nav-menu.active {
        display: flex;
    }

    html {
        font-size: 90%;
    }
}