.navbar {
    background-color: transparent !important;
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 9999; /* Ensure the navbar is on top of other content */
}

.page-content {
    margin-top: 5rem; /* Leave room for the sticky header on each page + a margin */
    margin-bottom: 1rem;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.navbar-container {
    display: flex;
    flex-wrap: inherit;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    background-color: var(--main-lt-gray-color);
    border-radius: 1.4rem;
    padding: 0.25rem;
    margin: 0 0.5rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.2);
}

.navbar-image {
    height: 2rem;
    width: auto;
    margin-right: 0.75rem;
    margin-left: 1rem;
}

.navbar-item {
    background-color: var(--main-bg-color);
    border-radius: 1.15rem;
    padding: 0.25rem 0.5rem;
    margin-left: 0.25rem;
    align-items: center;

    border: 0.15rem solid var(--main-bg-color);

    transition: border-color .15s ease-in-out;
}

.navbar-item:hover, .navbar-item:focus {
    border: 0.15rem solid;
    border-color: var(--main-accent-color);
}

.navbar-link {
    display: block;
    color: var(--main-text-color);
    text-decoration: none;
    border: 0;
    transition: color .15s ease-in-out;
    align-items: center;
    font-family: futura-pt, sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 1rem;
}

.navbar-link:focus {
    outline: none;
}

/* Override some information from Bootstrap for the dropdowns */
.dropdown-menu {
    border-radius: 1.4rem;
    padding: 0 0.25rem !important;
    margin-top: 0.4rem !important; /* 0.25rem plus the 0.15rem border on the navbar-item */
    box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.2);

    --bs-dropdown-min-width: 5rem !important;
}

.dropdown-menu-end {
    right: auto !important;
    left: -0.15rem !important;  /* Because of the 0.15rem border on the navbar-item */
}

.dropdown-item {
    border-radius: 1rem;
    margin: 0.25rem 0 !important;

    font-family: futura-pt, sans-serif;
    font-weight: 300;
    font-style: normal;

    transition: color .15s ease-in-out;
    transition: background-color .15s ease-in-out;
}

.dropdown-item:hover, .dropdown-item:focus {
    background-color: var(--main-lt-gray-color);
    color: var(--main-dk-gray-color) !important;
}

.dropdown-item:active {
    background-color: var(--main-accent-color) !important;
    color: var(--main-bg-color) !important;
}

/* Override the default dropdown icon so we can add our own */
.dropdown-toggle::after {
  display: none !important;
}

.dropdown-caret {
    font-size: 0.75rem !important;
    color: var(--main-text-color) !important;
    margin-right: 0.25rem !important;
}

.navbar-profile-photo {
    height: 1.5rem;
    width: 1.5rem;
    border-radius: 50%;
    margin-left: 0.25rem;
    object-fit: cover;
    border: 0.1rem solid var(--main-lt-gray-color);
}

.navbar-toggler {
    font-size: 1.5rem;
    color: var(--main-text-color);
    background: none;
    border: none;
}

footer {
    text-align: center;
}

/* Specific styling for mobile (Note that the Central Backend is intentionally optimized for desktop and laptop displays) */
@media (max-width: 480px) {
    .navbar-item {
        margin: 0.5rem 0.25rem 0 0.25rem;
    }

    .navbar-collapse {
        margin-top: 0.5rem;
    }

    .dropdown-menu {
        margin-bottom: 0.4rem !important;
        padding: none;
        border: none;
        box-shadow: none;
    }

    .page-content {
        width: 95%;
    }
}
