﻿/* Add basic styles for the dropdown menu */
body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

nav {
    background-color: #014279;
    overflow: hidden;
    z-index: 10000; /* Ensure the dropdown is on top of other elements */
}

nav a {
    float: left;
    display: block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    margin-right: 20px; /* Increase space between menu items */
    font-weight: bold; 
}

nav a:hover {
    background-color: #ddd;
    color: black;
}

.dropdown {
    float: left;
    overflow: hidden;
}

.dropdown .dropbtn {
    font-size: 16px;
    border: none;
    outline: none;
    color: white;
    padding: 14px 16px;
    background-color: inherit;
    font-family: inherit;
    margin: 0;
    margin-right: 20px; /* Increase space between dropdown button and next menu item */
    font-weight: bold; 
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 10000; /* Ensure the dropdown content is on top of other elements */
}

.dropdown-content a {
    float: none;
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    margin-right: 0; /* Ensure no extra space in dropdown items */
}

.dropdown-content a:hover {
    background-color: #ddd;
}


/* Responsive design for mobile devices */
@media screen and (max-width: 600px) {
    nav a, .dropdown .dropbtn {
        float: none;
        display: block;
        text-align: left;
        margin-right: 0; /* Reset margin for mobile view */
    }

    .dropdown-content {
        position: relative;
    }
}

@media screen and (max-width: 600px) {

    .dropdown-content {
        display: none;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .dropbtn {
        width: 100%;
        text-align: left;
    }
}
