/* Full width background wrapper */
.topnav-wrapper {
    background-color: #13294B;
    position: fixed;
    z-index: 999;
    width: 100%;
    top: 0;
}

/* Centered navigation content */
.topnav {
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
  }


  .topnav #myLinks {
    display: flex;
    gap: 10px;
  }

.topnav a.icon {
    display: none;
}

  .topnav img {
    margin-bottom:0pt;
    margin-top:10pt;
  }
  
  .topnav > a:first-child {
    flex-shrink: 0;
  }
  
  /* Style the links inside the navigation bar */
  .topnav a.normal {
    color: #f2f2f2;
    text-align: center;
    padding: 10px 9px;
    text-decoration: none;
    font-size: 17px;
    display: inline-block;
  }
  
  /* Change the color of links on hover */
  .topnav a.normal:hover {
    background-color: #ddd;
    color: black;
  }
  
  /* Add a color to the active/current link */
  .topnav a.right {
    margin-right: 0;
  }

  @media print, screen and (max-width: 1000px) { 
    .topnav a.normal {
        padding: 10px 5px;
    }
   }

  
   @media print, screen and (max-width: 480px) { 
    .topnav #myLinks {
        display: none;
      }
   }

   @media print, screen and (max-width: 960px) { 
    .topnav {
      max-width: 100%;
      padding: 10px 20px;
      justify-content: space-between;
    }

    .topnav #myLinks {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #13294B;
        flex-direction: column;
        gap: 0;
      }

      .topnav a.normal {
        color: white;
        padding: 14px 16px;
        text-decoration: none;
        font-size: 17px;
        display: block;
        text-align: center;
        border-bottom: 1px solid #1a365d;
      }

      .topnav a.icon {
        color: white;
        display: block;
        padding: 10px 16px;
        font-size: 17px;
      }

      .topnav a.right {
        color: white;
        padding: 14px 16px;
        text-decoration: none;
        font-size: 17px;
        display: block;
        margin-right: 0;
        text-align: center;
        border-bottom: 1px solid #1a365d;
      }
      
      .topnav > a:first-child {
        text-align: left;
      }
   }

/* Fix for navigation anchors being hidden behind fixed header */
html {
  scroll-padding-top: 80px;
}

/* Alternative method for older browsers */
h1[id], h2[id], h3[id], h4[id] {
  scroll-margin-top: 80px;
}

/* Specific fixes for navigation anchor targets */
#about-me,
#publications,
#awards,
#service,
#contact,
#news {
  scroll-margin-top: 80px;
}

