html.dark-mode .lnav {
    background-color: rgb(79, 48, 48);
    color: var(--navbar-text);
  }
  
  /* this is floating in manson container max width approx 620 */
  .lnav { /* the entire block in the nav tag */
    margin: 0;
    align-items: stretch;
    display: block;
    padding: 0.5rem; /* Preserving original padding */
    background-color: var(--navbar-bg);
    color: var(--navbar-text);
    position: relative;
    z-index: 1000;
    isolation: isolate; /* Contains the filter effects */
  }
  
  /* TOP OF CARD TITLE */
  .lbrand { /* site title / dark / light */
    align-items: center;
    text-align: center;
    font-size: 1.8rem;
    color: var(--navbar-text);
    text-decoration: none;
    margin-bottom: 0.5rem;
    font-weight: bold;
    margin: 10;
  }
  
  /* this contains the LOGOS (2/3) and BUTTONS (1/3) approx */
  .lnavbody {
    display: flex;
    flex-direction: row;
    min-width: 350px;
    margin: 0;
    padding: 0;
    align-items: stretch;
  }
  
  .lnavlogos { /* these are the LOGOS image links between 3 to 12 images they can be 3 wide and need to fit downwards */
    display: flex;
    flex-wrap: wrap;
    overflow: auto;
    justify-content: space-around; /* was center */
    width: auto; /* Prevent logos from stretching was 120 */
    margin-bottom: 0.5rem;
    gap: 10px;
  }
  
  /*.mav-item {  THE BUTTNS STACKED VERTICALLY - they must remian vertical
    width: 25%;  The button section takes up 25% of the width
    display: flex;
    flex-direction: column;
    min-width: 120px;  Ensure enough space for text
    flex-shrink: 0;
    align-items: center;
    justify-content: flex-start;
    width: 25%;
    gap: 1rem;
    padding: 15px;
    list-style: none;
    max-height: 100vh;  was 100vh Prevents growing beyond viewport
  }*/
  
  /*.lnavbtns button {
    white-space: nowrap;  Prevent text from wrapping
    width: 100%;  Ensure buttons use the full width of .lnavbtns
    text-align: center;  Keep text centered
    display: block;  Ensure full width
    text-align: center;
    text-decoration: none;
    border-radius: var(--button-radius);
    transition: all 0.3s ease;
  }*/
  
  /*.lnavbar-nav {
    padding-inline-start: 0;
    min-width: 180;
  }*/
  
  /*li .nav-item {
    padding: 4;
  }*/
  
  /* this is the logo image */
  .logo-icon {
    object-fit: contain; /* Ensures the images maintain their aspect ratio */
    width: 100px;
    height: 100px;
    border-radius: 50%;
    padding: 5px;
  }
  
  /* Fix image inversion */
  html.dark-mode .logo-icon {
    filter: none !important;
  }
  
  .dark-mode {
    display: inline-block;
    font-size: 0.8rem;
    padding: 8px 16px; /* Adjust padding for better button shape */
    border-radius: 20px; /* Rounded edges */
    background-color: var(--page-bg);
    color: var(--pg-text);
    border: none;
    border-bottom: #000000;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  
  .dark-mode:hover {
    background-color: var(--link-hover-color);
    color: var(--button-text);
  }
  
  /* all the buttons RHS in a LIST - each line class */
  .nav-item {
    display: block;
    padding: 0.6rem;
    background-color: var(--button-bg);
    color: var(--button-text);
    text-align: center;
    text-decoration: none;
    border-radius: var(--button-radius);
    transition: all 0.3s ease;
    border: 5;
  }
  
  /*.btn-link:hover {
    background-color: var(--link-hover-color);
  }*/
  
  .btn-link {
    background-color: var(--button-bg);
    color: var(--button-text);
  }
  
  /* NAV Title BOTTOM FULL WIDTH TITLE AND TEXT MESSAGE BOX*/
  .nav-title {
    width: 100%;
    text-align: center;
    margin-top: 1.5rem;
    font-size: 1.2rem;
  }
  
  .nav-title-word {
    transition: all 0.8s ease;
    opacity: 0.7;
    display: inline-block;
    margin: 0 0.15em;
  }
  
  .nav-title-word.active {
    opacity: 1;
    transform: scale(1.1);
    color: var(--page-bg);
    text-shadow: 0 0 8px rgba(255, 235, 59, 0.4);
    font-weight: bold;
  }
  
  .lnavmessage { /* paragraph text */
    width: 100%;
    text-align: left;
    margin-top: 1.5rem;
    font-size: 1rem;
  }
  
  /*
  html.dark-mode .nav-link {
    filter: invert(100%);
  }
  */
  