.head {
    position: sticky;
    top: 0;
    left: 0;
    z-index: 99;
}

header {
    background-color: #FFCF00;
    padding: 15px 0;
}

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

.head-cen>div:first-child {
    display: flex;
}

.search-btn {
    width: var(--button);
    display: none;
}

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

.menu {
    display: flex;
    column-gap: 20px;
    align-items: center;
    margin: 0 auto;
    white-space: nowrap;
}

.menu a {
    color: #293744;
}

.searchBar {
    width: var(--searchBar);
    display: flex;
    margin-left: auto;
    position: relative;
}

.searchBar::before {
    content: '';
    width: 100%;
    position: absolute;
    background-color: rgb(223, 226, 228);
    height: 10px;
    bottom: -3px;
    z-index: 1;
    border-radius: 0 0 10px 10px;
}

#search {
    flex: 1;
    height: var(--button);
    border-radius: 0 10px 10px 0;
    font-size: 16px;
    position: relative;
    z-index: 2;
}

#go {
    width: var(--button);
    height: var(--button);
    background-color: #fff;
    border-radius: 10px 0 0 10px;
    position: relative;
    z-index: 2;
}

#go img {
    transform: scale(.7);
}

.off-search {
    width: var(--button);
    height: var(--button);
    display: none;
}

nav {
    background-color: rgb(226, 166, 0);
    padding: 10px 0;
    height: 36px;
    transition: .4s;
    overflow: hidden;
}

nav ul {
    width: var(--all-width);
    display: flex;
    margin: 0 auto;
}

nav ul li {
    flex: 1;
    text-align: center;
}

nav a {
    color: #ffffff;
}

@media (max-width:799px) {
    .head {
        position: relative;
    }

    nav {
        overflow-x: auto;
        padding: 10px;
    }

    nav ul {
        column-gap: 20px;
    }

    .search-btn,
    .off-search {
        display: block;
    }

    .off-search {
        position: absolute;
        right: 5px;
        top: 5px;
    }

    .searchBar {
        position: absolute;
        height: 100vh;
        background-color: #FFCF00;
        z-index: 99;
        top: 0;
        left: 0;
        padding: 0 5px;
        padding-top: 50px;
        transition: .4s;
        transform: translateX(-100%);
    }

    .head-cen {
        flex-direction: column;
    }

    .head-cen>div:first-child {
        justify-content: space-around;
        margin-bottom: 10px;
    }

    .all {
        display: none;
    }
}