.header {
    overflow: hidden;
    background-color: #f1f1f1;
    padding-top: 10px;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

    .header nav {
        margin-inline: 7%;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 5%;
    }

    .header a {
        float: left;
        color: black;
        text-align: center;
        padding: 12px;
        text-decoration: none;
        font-weight: bold;
        line-height: 25px;
        border-radius: 4px;
    }

        .header a.logo {
            display: inline-block;
            padding-top: 0.3125rem;
            padding-bottom: 0.3125rem;
            margin-right: 1rem;
            font-size: 1.25rem;
            line-height: inherit;
            white-space: nowrap;
        }

            .header a.logo img {
                width: 45px;
            }

        .header a:hover {
            background-color: #ddd;
            color: black;
        }

        .header a.active {
            background-color: dodgerblue;
            color: white;
        }

.header-searchbar {
    border-color: #808080;
    background-color: #333333;
    width: 100%;
    height: 100%;
    padding-inline: 2%;
    
}

    .header-searchbar form {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 100%;
        margin: 0;
    }

    .header-searchbar input {
        flex: 1;
        font-size: 1.2rem;
        border-right: 2px solid;
        margin-left: 2px;
        border-radius: 5px;
        outline: none;
    }

    .header-searchbar button {
        border: none;
        cursor: pointer;
        opacity: 4;
        background: transparent; 
    }

    .header-searchbar button:hover {
        opacity: 8;
        background: #999999; 
    }

    .header-searchbar img {
        width: 24px;
        height: 24px;
    }

@media screen and (max-width: 750px) {
    .header {
        position: static;
    }

        .header a {
            float: none;
            display: block;
            text-align: left;
        }

            .header a.logo {
                display: block;
                border-bottom: solid
            }

    .header-right {
        float: none;
    }
}
