 /* Fixed top navigation bar */
.topnav {
    background-color: #ffffff;
    overflow: hidden;
    position: fixed;
    z-index: 999;
    width: 100%;
    top: 0; /* Aligns the navigation bar to the very top */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    box-sizing: border-box;
}

/* Container for links, aligned to the left */
.topnav #myLinks {
    display: flex;
    gap: 10px;
    margin-left: 10px;
}

/* Links inside the navigation bar */
.topnav a.normal {
    color: #808080;
    padding: 10px 9px;
    text-decoration: none;
    font-size: 17px;
    display: inline-block;
}

/* Hover effect for links */
.topnav a.normal:hover {
    background-color: #ddd;
    color: black;
}

/* Hamburger icon for mobile */
.topnav a.icon {
    display: none; /* Hidden by default on desktop */
    color: #808080;
    font-size: 24px;
    padding: 10px;
    cursor: pointer;
}

/* Image logo styling */
.topnav img {
    margin: 0;
    padding: 10px;
    vertical-align: middle;
    max-height: 50px;
}


/* Responsive design adjustments for mobile */
@media print, screen and (max-width: 960px) {


     .topnav {
        flex-direction: column; /* Stacks items vertically */
        align-items: flex-start; /* Aligns items to the left */
        padding: 0; /* Removes all padding */
        margin: 0; /* Removes all margins */
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Adds shadow */
        transform: translateX(-23px); /* Moves the bar 10px to the left on mobile */
        width: 100%; /* Ensures full width */
    }

    .topnav #myLinks {
        display: none; /* Hidden by default on mobile */
        flex-direction: column; /* Stack items vertically */
    }

    .topnav a.icon {
        float: none;
        display: block; /* Shows the hamburger icon on mobile */
        font-size: 14px;
        background-color: #ffffff;
        color: #808080;
        padding: 5px; /* Adjusted padding */
        margin: 0; /* Removes all margins */
        margin-left: 15px;
        cursor: pointer;
        border-radius: 0;
        align-self: flex-start; /* Aligns the icon to the left */
    }

    .topnav a.normal {
        display: block;
        width: 100%;
        text-align: left;
        padding: 6px 8px; /* Thinner padding */
        background-color: #ffffff;
        color: #808080;
    }

    .topnav a.normal:hover {
        background-color: #ddd;
        color: #000000;
    }
}
