header {
    width: 100%;
    height: var(--header-heigth);
    margin: 0 auto;
    transition: 0.5s;
    background-color: #000000;
    position: fixed;
    top: 0;
    z-index: 9999999;
}

.open-menu {
    transition: .3s;
    opacity: 0;
    pointer-events: none;
}

.nav-scr {
    height: calc(var(--header-heigth) * 0.4);
}

.nav-scr .nav-top {
    height: 100%;
}

.nav-scr .nav-bot {
    height: 0%;
}

.nav-top {
    height: 65%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgb(255, 255, 255);
    padding: 0 20px;
}

.nav-bot {
    height: 35%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.menu-btn,
.search-btn {
    width: var(--button);
    height: var(--button);
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.menu-btn::before,
.search-btn::before {
    content: '';
    position: relative;
    display: block;
    padding-top: 100%;
}

.open-menu-btn,
.open-search-btn {
    transition: .3s;
}

.menu-btn .off-menu-btn,
.search-btn .off-search-btn {
    top: var(--button);
    transition: .3s;
}

.search-box {
    width: 100%;
    height: 0;
    overflow: hidden;
    position: absolute;
    top: 100%;
    left: 0;
    transition: .3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.search-box-change {
    height: auto;
    padding: 10px 0;
    background-color: rgb(255, 255, 255);
    border-top: 1px solid #000000;
    border-bottom: 1px solid #000000;
}

.search {
    display: flex;
    position: relative;
    border-bottom: 3px solid #000;
}

.bor-top {
    min-width: 5px;
    max-width: calc(var(--search-box) - var(--button));
    position: absolute;
    border-top: 3px solid red;
    left: 0;
    top: 100%;
    font-size: 18px;
    color: transparent;
}

#search {
    width: var(--search-box);
    height: var(--button);
    font-size: 18px;
    padding-right: 40px;
}

#go {
    width: var(--button);
    position: relative;
    cursor: pointer;
    pointer-events: none;
    opacity: 0;
    font-size: 17px;
    font-weight: 700;
    transition: .3s;
}

#go:hover {
    animation: go 2s infinite linear;
}

@keyframes go {
    0% {
        transform: scale(.9);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(.9);
    }
}

#clear {
    width: var(--button);
    height: var(--button);
    position: absolute;
    right: var(--button);
    top: 0;
    cursor: pointer;
    transform: rotate(45deg);
    display: none;
}

#clear::before {
    content: '';
    position: absolute;
    width: 15px;
    height: 2px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: #666;
}

#clear::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 15px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: #666;
}

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

.menu {
    display: flex;
    margin: 0 auto;
}

.menu li {
    margin: 0 15px;
}

.menu li a {
    color: #fff;
    font-size: 18px;
}

.menu-box {
    width: 100%;
    height: 100vh;
    position: absolute;
    top: 100%;
    width: 100%;
    left: 0;
    display: none;
    flex-direction: column;
}

.menu-open {
    padding: 2% 10%;
    z-index: 9;
    background-color: #fff;
}

.menu-open li {
    margin: 20px 0;
    font-size: 24px;
    font-weight: 700;
    z-index: 9;
    background-color: #fff;
}

.menu-open li a {
    transition: .3s;
}

.menu-open li:hover a {
    color: red;
    text-decoration: underline;
}

.float {
    flex: 1;
    top: 0;
    background-color: #000000a4;
    left: 0;
    /* display: none; */
}

@media screen and (max-width:769px) {
    .search-box {
        width: 100%;
        height: 100vh;
        align-items: start;
        padding-top: 50px;
        position: absolute;
        z-index: 999;
        background-color: #fff;
        top: 0;
        transform: translateY(-100%);
    }

    /* .menu-box {
        background-color: #fff;
    } */

    .float {
        background-color: #fff;
    }

    .search-box-change {
        top: 100%;
        transform: translateY(0);
    }
}