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

body {
    margin: 0;
    padding: 0;
    background-color: #E0E0E0;
    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: space-between;
    align-items: center;
    background-color: black; /* Black navbar background */
    /*  height: 90px; */
    padding: 10px 20px;
    font-family: Arial, sans-serif;
}

.navbar-location {
    font-size: 20px;
    /*font-weight: bold;*/
    color: #FFA500 !important; /* Enforce orange color */
    display: flex;
    gap: 10px;
    align-items: center;
}

.navbar-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    
    gap: 10px;
}

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

.navbar-logo-text {
    font-size: 2rem;
    font-weight: bold;
    color: #FFFFFF;
}

/* Navbar-ITV-styles */
.location-title-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.location-title {
    margin: 0;
}

.pulse-wrapper {
    position: relative;
    width: 16px;
    height: 16px;
    margin-right: 10px;
    display: inline-block;
}

.pulse-dot {
    width: 16px;
    height: 16px;
    background-color: #00FF00;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    opacity: 1;
    animation: dot-fade 10s ease-out infinite;
}


.pulse-ring {
    width: 16px;
    height: 16px;
    border: 2px solid #00FF00;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0;
    /*transform: scale(1);*/
    animation: pulse-ring-animation 10s ease-out infinite;
}

@keyframes pulse-ring-animation {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    40% {
        transform: scale(2.5);
        opacity: 0;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

@keyframes dot-fade {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    35% {
        opacity: 1;
        transform: scale(1.3);
    }
    40% {
        opacity: 0;
        transform: scale(1.5);
    }
    100% {
        opacity: 0;
        transform: scale(1.5); /* stay invisible */
    }
}

/* Location Dropdown */
.location-dropdown {
    position: relative;
    display: inline-block; /* Or block, depending on desired layout */
}

.location-dropdown .dropdown-toggle {
    /* The <p> tag now holds the text, but isn't directly clickable. */
    /* Its styles for font-size, color, etc., are fine here. */
    /* Ensure no 'cursor: pointer' is directly on this element anymore */
}

.location-dropdown .dropdown-arrow {
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.location-dropdown .dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9; /* 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: 4px;
    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 */
}

/* Optional: Styling for the dropdown content text */
.location-dropdown .dropdown-content p {
    margin: 0;
    color: #333;
}



/* Navbar Menu (Buttons) */
.navbar-menu {
    display: flex;
    gap: 0.65rem;
}

.navbar-menu-item {
    background-color: #FFA500;
    color: black;
    font-size: 1.7rem;
    font-weight: bold;
    padding: 0.5rem 0.625rem;
    border-radius: 5px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.navbar-menu-item:hover {
    background-color: #FFE082;
    color: black;
}

.active-menu-link {
    background-color: #F2C84B;
    color: black;
    border-radius: 5px;
    text-align: center; 
}


@media (max-width: 620px) {
  .navbar-location {
    display: none; /* Hide location on small screens */
  }

  .navbar-logo-text {
    display: none;
  }

  .navbar-menu-item{
    font-size: 1rem;
  }
}