#header {
    width: 100%;
    background: #212121;
    position: fixed;
    z-index: 100;
}

.header_wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 13px 32px 12px;
    border-bottom: 1px solid #2D2D2D;
}

.header_left,
.header_right {
    display: flex;
    flex-direction: row;
    align-items: center;
    position: relative;
    z-index: 2;
}

.header_right {
    gap: 16px;
}

.header_left {
    gap: 24px;
}

.header_logo {
    width: 122px;
    height: 36.5px;
    background: url(../assets/logo.svg) center / contain no-repeat;
    cursor: pointer;
    position: relative;
    z-index: 100;
}

.header_server_menu {
    border-radius: 22px;
    border: 1px solid #00ff9b1f;
    color: var(--wiki-primary);
    cursor: pointer;
    position: relative;
}

#dropdown-server {
    position: relative;
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    letter-spacing: -0.65px;
    padding: 8px 16px;
}

#dropdown-server::after {
    content: '';
    width: 10px;
    height: 10px;
    display: block;
    background: url(../assets/drop_arrow.svg) center / contain no-repeat;
    transition: all 0.3s ease;
    margin-left: auto;
}

.header_button {
    display: flex;
    padding: 8px 24px;
    align-items: center;
    border-radius: 100px;
    border: 1px solid var(--wiki-primary);
    background: #1F3D32;
    backdrop-filter: blur(4px);
    color: var(--wiki-primary);
    cursor: pointer;
    transition: .2s linear;
}

.header_button:hover {
    background-color: #2A5545;
}

.header_language_menu {
    position: relative;
}

#dropdown-language {
    position: relative;
    display: flex;
    padding: 8px 13px;
    align-items: center;
    gap: 10px;
    border-radius: 22px;
    border: 1px solid #3C3C3C;
    letter-spacing: -0.65px;
    transition: .2s linear;
}

#dropdown-language:hover {
    background-color: #292929;
}

#header .dropdown-menu {
    top: 55px;
}

#dropdown-server.open::after {
    transform: rotate(180deg);
}

#dropdown-language.open::after {
    transform: rotate(180deg);
}

#dropdown-language::after {
    content: '';
    width: 10px;
    height: 10px;
    display: block;
    background: url(../assets/drop_arrow.svg) center / contain no-repeat;
    filter: brightness(0) saturate(100%) invert(100%) sepia(5%) saturate(21%) hue-rotate(146deg) brightness(105%) contrast(105%);
    transition: all 0.3s ease;
}

#dropdown-language::before {
    content: '';
    width: 16px;
    height: 16px;
    display: block;
    background: url(../assets/translate.svg) center / contain no-repeat;
}

.header_center {
    position: absolute;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: row;
    gap: 32px;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.search_field_input,
.search_field_button {
    border: none;
    outline: none;
    background: transparent;
    cursor: pointer;
}

.header_center_search {
    display: flex;
    width: 384px;
    min-height: 36px;
    border-radius: 100px;
    background: #303030;
    position: relative;
}

.header_center_link {
    transition: .2s linear;
}

.header_center_link:hover {
    color: var(--wiki-primary);
}

.search_field_button {
    position: absolute;
    border-radius: 100px;
    border: 1px solid #3C3C3C;
    background: #242424;
    height: 28px;
    padding: 5px 8px;
    font-size: 12px;
    right: 4px;
    top: 4px;
}

.search_icon {
    position: absolute;
    width: 20px;
    height: 20px;
    top: 8px;
    left: 14px;
}

.search_field_input {
    display: flex;
    width: 100%;
    color: #AEAEAE;
    font-family: 'Montserrat';
    border-radius: 100px;
    background: #303030;
    padding: 0 45px;
    align-items: center;
    transition: .2s linear;
}

.search_field_input:hover {
    background: #363636;
}

.search_field_input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px #303030 inset;
    -webkit-text-fill-color: #fff;
    transition: background-color 9999s ease-in-out 0s;
}

.search_field_input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px #303030 inset;
    -webkit-text-fill-color: #fff;
}

.search_field_input::-webkit-input-placeholder {
    color: #AEAEAE;
    background: #303030;
}

.search_field_input:-moz-placeholder {
    color: #AEAEAE;
    background: #303030;
}

.search_field_input:-ms-input-placeholder {
    color: #AEAEAE;
    background: #303030;
}

input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    display: block;
    margin-right: 5px;
    border-radius: 50%;
    width: 15px;
    height: 15px;
    background-color: #303030;
    cursor: pointer;
}

#burger {
    visibility: hidden;
    display: none;
}

.header_wrapper label {
    display: none;
}

.header_wrapper nav {
    display: none;
}

.search_lupa {
    display: none;
}

@media (max-width: 1660px) {
    .header_center_search {
        width: 175px;
    }

    .search_field_button {
        display: none;
    }
}

@media (max-width: 1280px) {
    .search_lupa {
        display: block;
        cursor: pointer;
        position: absolute;
        top: 23px;
        right: 100px;
    }

    .header_left .header_server_menu {
        display: none;
    }

    .header_wrapper label {
        display: block;
    }

    input:checked+label span:first-child {
        opacity: 1;
        top: 9px;
        transform: rotate(405deg);
    }

    input:checked+label span {
        opacity: 0;
        top: 50%;
    }

    input:checked+label span:last-child {
        opacity: 1;
        top: 9px;
        transform: rotate(-405deg);
    }

    .header_wrapper nav {
        display: block;
    }

    input:checked~nav {
        height: calc(100vh - 66px);
        transition-delay: 0s;
        border-bottom: 1px solid #2D2D2D;
    }

    input~nav {
        position: absolute;
        top: 62px;
        left: 0;
        width: 100%;
        height: 0px;
        z-index: 2;
        transition: 0.3s;
        transition-delay: 0.3s;
        overflow-y: auto;
        background: #212121;
    }

    input+label {
        position: absolute;
        top: 24px;
        right: 32px;
        height: 18px;
        width: 24px;
        z-index: 5;
        cursor: pointer;
    }

    input+label span {
        position: absolute;
        width: 100%;
        height: 2px;
        top: 50%;
        /* margin-top: -1px; */
        left: 0;
        display: block;
        background: #FFFFFF;
        transition: 0.5s;
    }

    input+label span:first-child {
        top: 2px;
    }

    input+label span:last-child {
        top: 16px;
    }

    .header_center,
    .header_right {
        display: none;
    }

    #header .dropdown-menu {
        top: auto;
    }

    #burger {
        display: block;
        order: 3;
    }

    .burger_menu {
        padding: 24px 16px;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .burger_first_part {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .burger_second_part {
        display: flex;
        flex-direction: column;
        gap: 48px;
    }

    .header_button {
        padding: 16px 24px;
        border-radius: 160px;
        font-size: 20px;
        line-height: normal;
        text-align: center;
        display: inline;
    }

    .burger_trio {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        grid-column-gap: 16px;
        grid-row-gap: 16px;
    }

    .header_language_menu {
        grid-area: 1 / 1 / 2 / 3;
    }

    .header_center_search {
        grid-area: 2 / 1 / 3 / 2;
        width: auto;
    }

    .header_server_menu {
        grid-area: 2 / 2 / 3 / 3;
    }

    #dropdown-language {
        height: 44px;
        padding: 8px 16px;
        align-items: center;
    }

    #dropdown-language::after {
        position: absolute;
        top: 16px;
        right: 14px;
    }

    #dropdown-server {
        gap: 27px;
        padding: 12px 16px;
    }

    .search_field_input {
        color: #fff;
        background: #212121;
        padding: 0 0 0 45px;
        border: 1px solid #2f2f2f;
    }

    .search_field_input:-webkit-autofill {
        -webkit-box-shadow: 0 0 0px 1000px #212121 inset;
        -webkit-text-fill-color: #fff;
    }

    .search_field_input:-webkit-autofill:focus {
        -webkit-box-shadow: 0 0 0px 1000px #212121 inset;
        -webkit-text-fill-color: #fff;
    }

    .search_field_input::-webkit-input-placeholder {
        color: #FFF;
        background: #212121;
    }

    .search_field_input:-moz-placeholder {
        color: #FFF;
        background: #212121;
    }

    .search_field_input:-ms-input-placeholder {
        color: #FFF;
        background: #212121;
    }

    input[type="search"]::-webkit-search-cancel-button {
        background-color: #212121;
    }

    .search_icon {
        top: 12px;
    }
}

@media (max-width: 640px) {
    .header_wrapper {
        padding: 14px 16px 13.6px;
    }

    input+label {
        right: 16px;
    }
}