/* CSS Code for Header  */

header {
    background-color: #3498db;
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;  /* Add this to make absolute positioning work correctly */
    z-index: 2000;      /* Higher z-index to ensure header stays on top */
}
.logo {
    font-size: 1.5rem;
    font-weight: bold;
}
nav ul {
    list-style-type: none;
    display: flex;
    gap: 1rem;
}
nav ul {
    padding: 0;
    margin: 0;
}
nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}
nav a:hover {
    background-color: rgba(255,255,255,0.2);
}
/* CSS code for Footer Section */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1rem;
}

/* CSS code for the body */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Responsive design for smaller screens */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    #nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: #3498db;
        padding: 1rem;
        z-index: 2000;     /* High z-index to stay above map */
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);  /* Optional: adds shadow for better visibility */
    }

    #nav-menu.show {
        display: flex !important;
    }

    #nav-menu li {
        width: 100%;
    }

    #nav-menu li a {
        display: block;
        padding: 1rem;
        text-align: center;
    }
}