header {
    display: flex;
    justify-content: space-between;
    padding: 10px 19px;
    height: 65px;
}

.head-left {
    display: flex;
    gap: 15px;
}

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

.logo {
    width: var(--logo);
    display: flex;
    justify-content: center;
    align-items: center;
}

.searchBtn {
    display: none;
}

.searchBar {
    width: var(--searchBar);
    border: 1px solid #c6c6c6;
    box-shadow: inset 0 1px 2px #eee;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    height: calc(var(--button) * 0.85);
}

.searchBar #search {
    flex: 1;
    text-indent: 1em;
    font-size: 15px;
}

.searchBar #go {
    width: calc(var(--button) * 0.6);
    filter: invert(.7);
    margin-right: .4em;
}

.random {
    display: flex;
    align-items: center;
    color: #fff;
    background-color: #056DFF;
    padding: 2px 10px;
    border-radius: 10px;
}

.random:hover {
    opacity: .8;
}

nav {
    width: 68px;
    height: calc(100% - 125px);
    overflow: hidden;
    transition: .2s ease-out;
    position: fixed;
    left: 0;
    padding-left: 14px;
    top: 65px;
    z-index: 99999;
    background-color: #fff;
}

nav.cookieNav {
    height: calc(100% - 174px);
}

nav:hover {
    width: 180px;
    border-right: 1px solid #ddd;
}

nav.active {
    width: 180px;
    border-right: 1px solid #ddd;
}

nav ul {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0 5px;
}

nav a {
    display: flex;
    color: #000;
    align-items: center;
    gap: 15px;
    padding: 8px 6px;
    border-radius: 8px;
}

nav a span {
    white-space: nowrap;
}

nav a img {
    transform: scale(.9);
}

nav a:hover {
    background-color: #eee;
}

nav a.active {
    background-color: #eee;
}

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

    .head-left {
        width: 100%;
        justify-content: space-between;
        align-items: center;
    }

    nav {
        width: 100% !important;
        height: 100vh !important;
        transform: translateX(-100%);
    }

    nav.active,
    .searchBar.active {
        transform: translateX(0);
    }

    .searchBtn {
        display: block;
    }

    .random {
        display: none;
    }

    .searchBar {
        position: absolute;
        top: 100%;
        width: 100%;
        height: 100vh;
        left: 0;
        padding: 40px 5px 0;
        background-color: #fff;
        border: 0;
        box-shadow: none;
        border-radius: 0;
        transition: .2s;
        transform: translateX(-100%);
    }

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

    .searchBar #go {
        width: var(--button);
        filter: none;
    }

    .searchBar #go img {
        transform: scale(.8);
        opacity: .5;
    }
}