/* Global reset */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: white;
    min-height: 100vh;
    padding-top: 90px; /* Space for fixed navbar */
}

header {
    z-index: 9999;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
}

/* Navbar styles */
.navbar {
    display: flex;
    justify-content: center;
    position: relative;
    align-items: center;
    box-shadow:0 5px 5px #d5d5d5;
    background-color: #F7F7F7; /* Black navbar background */
    /*  height: 90px; */
    padding: 10px 20px;
    font-family: 'Roboto',sans-serif;
    height:90px;
}
/* logo */
.navbar-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.navbar-logo img {
    height: 3.2rem;
    width: auto;
}


/* Location Dropdown */
.location-dropdown {
    background-color:#29743E;
    border-radius:8px;
    padding-left:10px;
    padding-right:10px;
    height:45px;
    width:210px;
    color: white;
    font-size: 20px;
    position: absolute;
    left:22px;
    display: flex; 
    justify-content:space-between;
    align-items: center;
    cursor: pointer;
}
/* Dropdown Text*/
.location-dropdown .dropdown-toggle {
    display:flex;
    margin:0;
    align-items: center;
    justify-content: center;
}
.location-dropdown.active .location-dropdown-arrow-up{
    stroke:transparent;
}
.location-dropdown.active .location-dropdown-arrow-down{
    stroke:white;
}
.location-dropdown .dropdown-content {
    display: none;
    position: absolute;
    background-color: #f7f7f7; /* Light background for the dropdown */
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1; /* Ensure it appears above other content */
    padding: 8px 12px;
    border-radius: 8px;
    border:1px solid #29743E;
    top: 100%; /* Position it right below the toggle */
    left: 0;
    white-space: nowrap; /* Prevent MGRS string from wrapping */
}

.location-dropdown.active .dropdown-content {
    display: block; /* Show the content when the 'active' class is present */
}

.location-dropdown .dropdown-content p {
    margin: 0;
    color: #333;
}

/* Navbar Menu (Buttons) */
.menu-btn {
    display: none;
}
.navbar-menu {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    height:45px;
    
    position:absolute;
    right:22px;
}
.navbar-menu-list {
    display: flex;
    gap: 0.65rem;

}
.navbar-sub-menu{
    height:45px;
    border: none;
    display:flex;
    align-items:center;
    cursor: pointer
}

.navbar-menu-item {
    background-color: #29743E;
    font-size: 1.7rem;
    font-weight: bold;
    padding: 0 0.63rem 0 0.63rem;
    border: none;
    border-radius:8px;
    color: white;
    cursor:pointer;
    display:flex;
    align-items:center;
    width:100%;
    height:45px;
    text-decoration: none;
}

.active-menu-link {
    background-color: #2E4756;
}

@media screen and (max-width: 1000px) {
    /* make navbar content relative*/
    .navbar{
        justify-content:space-between;
    }
    .location-dropdown {
        position:relative;
        font-size:15px;
        width:160px;
    }
    .navbar-menu{
        position:relative;
        flex-direction: column;
        width: 30vw;
        margin-right: 3vw;
        
    }
    .menu-btn { 
        background: none;
        border: none;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    .bar {
        width: 25px;
        height: 3px;
        background: black;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }
    .menu-btn.open .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .menu-btn.open .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-btn.open .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    .navbar-menu-list {
        flex-direction: column;
        border-radius: 5px;
        background:linear-gradient(0deg,rgba(229, 234, 229, 0.478), rgb(49, 97, 37));
        padding-right: 25px;
        padding-top: 20px;
        padding-bottom: 5px;
        visibility: hidden;
    }
    .show {
        visibility: visible;
    }
    .navbar-menu-item{
        font-size:1.3rem;
    }
}
@media screen and (max-width: 800px) {
    .navbar-logo {
        display: none;
    }
    .navbar-menu-item{
        font-size: 1rem;
    }
}
