:root {
    --right-menu-right: -140vw
}

#header-main {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    background-color: white;
    width: 85%;
    padding: 20px 0;
    margin: 20px auto 0;
    border-radius: 20px;
    /*box-shadow: 0 0 10px hsla(0, 0%, 14%, 20%);*/
    box-shadow: 0 3px 0 hsl(0, 0%, 80%), 0 -5px 15px hsla(0, 0%, 14%, 10%);
    position: relative;
}

#header-search-section {
    background-color: hsl(0, 0%, 95%);
    width: 40%;
    margin: 0 auto;
    padding: 10px;
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 0 hsl(0, 0%, 80%);
}

#search {
    display: flex;
    justify-content: center;
    align-items: center;
}

.search-input {
    border: none;
    border-radius: 0 5px 5px 0;
    width: 70%;
    height: 40px;
    box-sizing: border-box;
    padding: 0 20px;
    font-size: 1.1rem;
    box-shadow: 0 2px 3px hsla(0, 0%, 0%, .2);

}

.search-button {
    padding: 8px 20px;
    height: 40px;
    border-radius: 5px 0 0 5px;
    left: 5px;
}

.search-button:hover {
    border-color: #30C580;
}

.lnk-menu {
    margin-left: 20px;
    text-decoration: none;
    color: black;
    cursor: pointer;
    position: relative;
}

.lnk-menu:before {
    display: inline-block;
    content: '';
    width: 0;
}

.lnk-menu:hover:before {
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    position: absolute;
    right: 0;
    bottom: -5px;
    transition: width ease 200ms;
}

#logo{
    background: url("/static/images/logotype-en.png");
    background-size: contain;
    width: 200px;
    height: 66px;
}

#header-logo-box a img {
    height: 60px
}


#header-links-box {
    /*background-color: #05a31f;*/
    text-align: center;
}

#header-account-box {
    /*position: absolute;*/
    /*right: 80%;*/
    /*top: 17px;*/
}

#header-search-box {
    display: inline;
}


.account-btn {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    width: fit-content;
    padding: 10px 15px 5px !important;
}

.account-btn:hover {
    box-shadow: none;
    cursor: pointer;
}

#account-control-button {
    background-color: #0048ff;
    width: 50px;
    height: 50px;
    border-radius: 100px;
    box-shadow: 2px 5px 30px rgb(205, 201, 204);
    opacity: 60%;
    position: fixed;
    left: 10px;
    bottom: 10px;
    display: none;
}

#account-login-dialog {
    border: #006fff 3px solid;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 2px 5px 30px rgb(180, 180, 180);
}

#header-links-box #tm-close-btn {
    display: none;
}

#header-toggle-menu-btn {
    display: none;
    cursor: pointer;
}

#header-toggle-menu-btn .bar {
    display: block;
    width: 22px;
    height: 4px;
    background-color: black;
    margin: 3px;
}

@media (max-width: 960px) {
    /*.account-btn {*/
    /*    width: 70px;*/
    /*}*/
    #header-account-box {
        right: 84%;
    }

    .lnk-menu {
        margin-left: 10px;
    }
}

@media (max-width: 755px) {
    /*.account-btn {*/
    /*    display: none;*/
    /*}*/
    /*#account-control-button {*/
    /*    display: block;*/
    /*}*/
    #header-links-box {

    }

    #header-toggle-menu-btn {
        display: block;
    }

    #header-search-section {
        width: 65%;
        position: unset;
    }



    #header-links-box {
        background-color: white;
        position: fixed;
        right: var(--right-menu-right);
        width: 100%;
        max-width: 260px;
        box-shadow: 10px -10px 20px rgba(0, 0, 0, 0.54);
        height: 100vh;
        text-align: right;
        list-style-type: disc;
        padding: 60px 20px 20px;
        z-index: 1000;
        transition: all 0.3s ease;
        /*box-shadow: 0 0 10px rgba(0,0,0,20%);*/
        border: 1px solid white;
    }

    #header-links-box nav .lnk-menu {
        display: block;
        z-index: 10000;
        margin: 10px;
        font-size: 1.1rem;
    }

    #header-links-box.tm-active {
        right: 0;
        top: 0;

    }
    #header-links-box #tm-close-btn {
        display: block;
        position: absolute;
        left: 10px;
        top: 10px;
        font-size: 24px;
        border-radius: 10px;
        padding: 2px 8px;
        cursor: pointer;
    }
}

@media (max-width: 500px) {

    #header-main {
        padding: 0;
    }

    #header-account-box .account-btn span {
        display: none;
    }

    #header-account-box .account-btn div i {
        margin: 0 !important;
    }

    #logo {
        background: url("/static/images/logo.png");
        background-size: contain;
        width: 100px;
        height: 100px;
    }
}