/*topnav*/
@media only screen and (min-width: 576px) {
        .topnav {display: none;}
    }

.topnav {
    overflow: hidden;
    width: 100%;
}
  
  /* Style the links inside the navigation bar */
  .topnav a {
    color: black;
    padding: 14px 16px;
    text-decoration: none;
    text-align-last: center;
    font-size: 8px;
    display: block;
    font-family: "Noto Sans", sans-serif;
    font-weight: 500;
    font-style: normal;
    line-height: 100%;
}

    /* Hide the link that should open and close the topnav on small screens */
.topnav .icon {
    display: none;
    font-size: 24px;}
    
    
.fa fa-bars{
    align-items:baseline;
    margin-right: 25%;}  

.icon {
    margin-right: 16%;
    margin-top: -4%;
}


@media only screen and (max-width: 575px) {
/* Container */
.topnav {
    width: 100%;
    position: relative;
    padding: 0.75rem 1rem;
    box-sizing: border-box;
}

/* Logo + hamburger row */
.nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 0px;
    padding-right: 1.75em;
}

/* Logo */
.logo img {
    height: 8em;
    width: auto;
    margin-left: -15%;
}

/* Hamburger button */
.hamburger {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #000;
    padding: 0;
    transition: transform 0.3s ease;
}

.hamburger:hover {
    transform: scale(1.1);
}

/* Nav links (collapsed by default) */
.nav-links {
    display: flex;
    flex-direction: column;
    gap: -10rem;

    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);

    transition:
        max-height 0.4s ease,
        opacity 0.3s ease,
        transform 0.3s ease;
}

/* Open state */
.nav-links.open {
    max-height: 300px; /* enough for links */
    opacity: 1;
    transform: translateY(0);
    margin-bottom: 1rem;
}

/* Link styling */
.nav-links a {
    text-decoration: none;
    color: #000;
    font-size: .85rem;
    transition: opacity 0.2s ease;
}

.nav-links a:hover {
    opacity: 0.6;
}

}

