/* General Styles for Navigation */
.nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

    .nav ul {
        list-style: none;
        display: flex;
        margin: 0;
        padding: 0;
    }

        .nav ul li {
            margin-left: 20px;
        }

            .nav ul li a {
                text-decoration: none;
                color: white;
                font-size: 16px;
            }

.menu-icon {
    display: none; /* Hide the menu icon by default */
    cursor: pointer;
    font-size: 30px;
    color: white;
}

/* Header Section Styles */
.header {
    position: relative;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-top: 0;
    padding-top: 0;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 10000; /* higher than the overlay's 9999 */
}

    .header h1 {
        color: white;
        font-size: 32px;
        margin: 0;
    }

/* Show the hamburger icon on smaller screens */
@media (max-width: 768px) {
    .menu-icon {
        display: block; /* Display hamburger icon */
    }

    .nav {
        position: absolute;
        top: 60px;
        right: 0;
        background-color: rgba(0, 0, 0, 0.8);
        width: 100%;
        padding: 20px;
        display: none; /* Initially hidden */
        flex-direction: column;
        align-items: center;
    }

        .nav.active {
            display: flex; /* Show the menu when 'active' class is added */
        }

        .nav ul {
            display: block; /* Stack the items vertically */
        }

            .nav ul li {
                margin: 10px 0; /* Add space between the items */
            }
}

/* Media Query for Large Screens */
@media (min-width: 769px) {
    .nav ul {
        display: flex;
    }

        .nav ul li {
            margin-left: 30px;
        }
}
