header {
    background: #fff url(../images/bg_navbar.png) no-repeat;
    height: 59px;
    margin-bottom: 5px;
    position: relative;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgb(39, 39, 39);
    padding: 0 5px;
    position: absolute;
    left: 0px;
    top: 0px;
    width: 178px;
    height: 59px;
    border-radius: 8px;
    border-top: 3px solid rgb(171, 171, 171);
    border-bottom: 3px solid rgb(10, 10, 10);
    border-right: 3px solid rgb(10, 10, 10);
    border-left: 3px solid rgb(30, 30, 30);
}

.searchBar {
    position: absolute;
    left: 200px;
    top: 27px;
    width: 150px;
    display: flex;
}

.searchBar input {
    width: 109px;
    height: 17px;
    margin-right: 2px;
    border-radius: 2px;
    border: 1px solid #333;
}

.searchBar button {
    width: 30px;
    font-size: 10px;
    background-color: #f0f0f0;
    border-radius: 2px;
    border: 1px solid #333;
}

header nav {
    position: absolute;
    top: 6px;
    left: 374px;
    font-size: 13px;
    font-weight: bold;
    min-width: 568px;
    border-radius: 4px 4px 0 0;
    overflow: hidden;
}

header nav ul {
    width: 100%;
    display: flex;
}

header nav ul li {
    height: 30px;
    flex: 1;
    vertical-align: middle;
    text-align: center;
    border-right: 1px solid #b9e4e8;
}

header nav ul li:last-child {
    border: 0;
}

header nav ul li a {
    display: block;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #51b4c6;
}

.navActive,
.category {
    background: url(../images/bg_active_tab_left.png) top left no-repeat;
    color: #fff !important;
}

.webText {
    color: #51b4c6;
    font-size: 11px;
    position: absolute;
    top: 45px;
    left: 368px;
    width: 580px;
    display: flex;
    justify-content: center;
    gap: 9px;
}

.webText a {
    color: #51b4c6;
}

.webText a:hover {
    color: #3de2f1;
}

.legalBox {
    display: flex;
    gap: 5px;
}

@media screen and (max-width:769px) {
    header {
        background: url(../images/header-bg.png);
        position: relative;
        display: flex;
        flex-direction: column;
        height: fit-content;
        padding: 5px 0;
        gap: 10px;
        z-index: 89;
    }

    .peBox {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-around;
    }

    .logo {
        position: relative;
        background: none;
        border: 0;
        padding: 0;
        height: fit-content;
    }

    .webText {
        position: relative;
        left: 0;
        top: 0;
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 0;
        font-size: 12px;
        color: #fff;
    }

    .webText a {
        color: #fff;
        font-size: 13px;
    }


    .searchBar,
    header nav {
        left: 0;
        top: 0;
        width: 100%;
        height: 100vh;
        transform: translateY(-100%);
        transition: .3s;
        padding: 30px 4px 0;
        z-index: 1;
    }

    .searchBar {
        background: url(../images/menu-header-red.png);
    }

    header nav {
        background: url(../images/menu-header-blue.png);
        min-width: auto;
    }

    header nav ul {
        flex-direction: column;
        gap: 10px;
    }

    header nav ul li a {
        font-size: 17px;
        width: 100%;
        color: #0064ff;
    }

    .searchBar.active,
    header nav.active {
        top: 100%;
        transform: translateY(0);

    }

    .searchBar input {
        flex: 1;
        height: var(--button);
    }

    .searchBar button {
        width: var(--button);
        height: var(--button);
    }

    .navActive,
    .category {
        background: none;
    }
}