/* Styling for the top menu */
.topmenu {
    background-color: #333;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
    padding: 10px 0;
}

.topmenu nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
}

/* Menu Links */
#menu {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
}

#menu li {
    margin: 0 15px;
}

#menu li a {
    color: white;
    font-size: 16px;
    padding: 10px 15px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s, color 0.3s;
    border-radius: 4px;
}

#menu li a:hover {
    background-color: #575757;
    color: #fff;
}

/* Menu Toggle (Hamburger) */
.menu-toggle {
    display: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
    user-select: none;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 8px;
    width: 50%;
    text-align: left;
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 20px;
}

#addAddressForm{
    display: flex;
        flex-direction: column;
        gap: 20px;
}

/* Responsive design for the menu */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    /* Hide menu by default on mobile */
    #menu {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        background-color: #333;
        padding: 10px 0;
    }

    #menu.show {
        display: flex; /* Show menu when toggled */
    }

    #menu li {
        margin: 10px 0;
    }

    #menu li a {
        font-size: 18px;
        padding: 8px 12px;
    }
}
