header {
    background-color: #fff;
    margin-bottom: 20px;
}

.head-top {
    border-bottom: 1px solid #f3f3f3;
    padding: 10px 0;
    position: relative;
}

.header-center {
    width: var(--head-width);
    margin: 0 auto;
    display: flex;
}

.head-top .header-center {
    align-items: center;
}

.logo {
    width: var(--logo);
}

.searchBar {
    width: var(--search-bar);
    margin-left: 35px;
    margin-right: auto;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    display: flex;
}


.searchBar #search {
    flex: 1;
    color: #8e8e8e;
    padding-left: 10px;
}

.searchBar #go {
    border-left: 1px solid #ddd;
    height: var(--button);
    padding: 0 10px;
    text-transform: uppercase;
    font-size: 13px;
    color: #8e8e8e;
}

.random-btn {
    padding: 9px 20px 9px 20px;
    font-weight: 700;
    background-color: #ffb200;
    border-radius: 5px;
    color: #fff;
    text-transform: uppercase;
    text-decoration: none;
}

.home-icon {
    border-left: 1px solid #f3f3f3;
}

.home-icon img {
    width: var(--icon);
    filter: invert(.6);
    transform: scale(.7);
}

.nav-item {
    padding: 16px 20px 9px 20px;
    display: block;
    height: 100%;
    color: #686868;
    border-bottom: 3px solid transparent;
    font-size: 13px;
    text-align: center;
    white-space: nowrap;
}

.nav-item.active {
    border-bottom-color: #ffb200;
}

.nav-item:hover {
    border-bottom-color: #ffb200;
}

nav {
    flex: 1;
}

nav ul {
    display: flex;
    height: 100%;
}

nav ul li {
    border-left: 1px solid #f3f3f3;
    flex: 1;
}

nav ul li:last-child {
    border-right: 1px solid #f3f3f3;
}

.menuBtn,
.searchBtn {
    display: none;
    width: var(--button);
    height: var(--button);
    align-items: center;
    justify-content: center;
    border-left: 1px solid #f3f3f3;
}

.menuBtn img,
.searchBtn img {
    filter: invert(.3);
}

@media screen and (max-width:769px) {
    header {
        position: relative;
        z-index: 999999;
    }

    .home-icon {
        display: none;
    }

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

    .menuBtn,
    .searchBtn {
        display: flex;
    }

    .random-btn {
        display: none;
    }

    .searchBar {
        position: absolute;
        margin: 0;
        top: 0;
        transform: translateY(-100%);
        left: 0;
        width: 100%;
        border-radius: 0;
        border: none;
        z-index: 100;
        background-color: #fff;
        height: 100vh;
        border: 0;
        transition: .3s;
        padding: 20px 8px 0;
    }

    .searchBar #search {
        height: var(--button);
        border: 1px solid #f3f3f3;
    }

    .searchBar #go {
        border: 1px solid #f3f3f3;
        border-left: 0;
    }

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

    nav {
        position: absolute;
        margin: 0;
        top: 0;
        transform: translateY(-100%);
        left: 0;
        width: 100%;
        height: 100vh;
        transition: .3s;
        background-color: #fff;
    }

    nav ul {
        flex-direction: column;
        height: auto;
        background: #fff;
    }

    nav ul li {
        border-left: none;
        border-bottom: 1px solid #f3f3f3;
    }

    nav ul li:last-child {
        border-right: none;
    }

}