
.topnav {
    background-color: rgb(231, 231, 231);
    overflow: hidden;
    box-shadow: 0 8px 8px 0 rgba(0, 0, 0, 0.2);
    border: 0.5px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    height: 55px;
}

.topnav a {   
    color: black;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 16px;
    background-color: transparent;
    display: inline-block;
    line-height: 50px;
    height: 100%;
    box-sizing: border-box;
    flex: 1;
}

.topnav a:hover,
.topnav a.active {
    background-color: rgb(11, 185, 205);
    color: white;
    height: 100%;
}

.tabs {
    float: right;
    padding-right: 18px;
    background-color: transparent;
    display: flex;
    flex: 1;
    padding-left: 45px;
}

.socialMedia {
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: auto;
    display: flex;
    justify-content: flex-end;
}

.fa:hover {
    opacity: 0.7;
}

.signature {
    order: -1;
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: auto;
    filter: brightness(25%);
    margin-right: auto;
    padding-left: 30px;
}

.signature img {
    display: block;
    max-width: 140px; 
    height: auto;
    max-height: 160px;
    width: 140px;
}

.socialMedia * {
    overflow: hidden;
}

/* Media query for smaller screens */
@media (max-width: 768px) {
    .topnav {
        align-items: center;
        padding: 0;
        height: auto;
        width: auto;
    }

    .topnav a {
        padding: 5px 6px;
        text-align: center;
        line-height: 45px;
        height: auto;
    }
    .tabs{
        text-align: center;
        padding: 0;
        height: 100%;
        width: 1px;
        justify-content: flex-start;
        padding-left: 20px;
        padding-right: 10px;
    }

    .signature img {
        margin-bottom: 0.25rem;
        width: 80px;
        padding: 0;
        padding-right: 10px;
    }
} 

/* Media query for even smaller screens */
@media (max-width: 480px) {
    .topnav {
        align-items: center;
        padding: 0;
        height: auto;
        width: auto;
    }

    .topnav a {
        padding: 5px 6px;
        text-align: center;
        line-height: 15px;
        height: auto;
        flex: 1 1 50%;
        overflow: hidden;
    }
    .tabs{
        display: flex; 
        flex-wrap: wrap;
        text-align: center;
        padding: 0;
        height: 100%;
        width: 1px;
        justify-content: flex-start;
        padding-left: 5px;
        padding-right: 5px;
    }

    .signature img {
        margin-bottom: 0.25rem;
        width: 80px;
        padding: 0;
        padding-right: 15px;
    }
    .socialMedia {
        margin-right: -0.1rem;
    }
}
