#topmenu {
    margin-left: auto;
    margin-right: auto;
    /*max-width: none !important;*/
    width: 100vw;

    line-height: 1.9vh;
    font-size: 1.9vh;
    color: white;
    height: 1.5vh;
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
}

#topmenu div.middle, #topmenu div.menu, #topmenu div.logo {
    background-color: rgba(47, 47, 47, 1);
}

#topmenu div.logo {
    text-align: left;
}

#topmenu div.menu {
    text-align: right;
    margin-right: -0.01px;
}

#topmenu div.menu img {
    cursor: pointer;
    height: 1.8vh;
    margin-right: 0.5vw;
}

#topmenu div.logo img {
    height: 100%;
    width: auto;
    cursor: pointer;
    float: left;
}

#topmenu div.middle {
    /* width: 60vw; 13.10.2021*/
    width: 75vw;
    text-align: center;
    float: left;
    padding: 1vh 0;
    vertical-align: middle;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#topmenu div.middle, #topmenu div.logo, #topmenu div.menu {
    height: 3.9vh;
}

/*13.10.2021. search */

.search-top-menu{
    width: 20vw;
    /* height: 3.9vh; */
    position: absolute;
    /* display: flex; */
    /* flex-direction: column; */
    /* align-items: center; */
    /* justify-content: flex-end; */
    right: 0;
    display: -webkit-inline-box;
    margin: auto 0;

}

.search-top-menu div {
    width: 20vw;
}

.search-top-menu input#search-input {
    width: 100%;
    height: 2.5vh;
    margin: 0 5px 0 0;
    padding: 0;
    border-radius: 3px;
}

.search-top-menu input#search-input::placeholder {
    text-align: center;
    font-size: .8rem;
}

.search-top-menu .search-icon {
    height: 20px;
    width: 20px;
    margin: auto 0;
    cursor: pointer;
    margin-left: 5px;
    /* display: flex;
    align-items: center;
    cursor: pointer; */
}

.search-doors-list {
    position: absolute;
    width: 100%;
    background: rgba(255, 255, 255, 1);
    top: 2.7vh;
    color: rgb(47, 47, 47);
    font-size: 14px;
    display: none;
    flex-direction: column;
    height: auto;
    max-height: 185px;
    overflow-y: auto;
    right: inherit;
    overflow: overlay;
}

.search-doors-list-item {
    display: flex;
    align-items: center;
    height: 60px;
    color: rgb(47, 47, 47);
    padding: 5px;

}

.search-doors-list a {
    border-bottom: 1px solid rgb(47, 47, 47);
}

.search-doors-list a:last-child {
    border-bottom: none;
}

.search-doors-list img {
    height: 45px;
    width: 20px;
    margin-right: 10px;
}

.selected-item {
    background-color: rgb(182, 180, 180);
}


.search-popup {
    background: rgba(0, 0, 0, 0.45);
    position: absolute;
    top: 0;
    display: none;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    z-index: 5;
}

.search-popup-center {
    width: 40%;
    height: 25%;
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.search-popup-center img {
    align-self: flex-end;
}

.search-popup-text {
    width: 70%;
    color: rgba(47, 47, 47, 1);
    text-align: center;
}

.search-button {
    background-color: red;
    color: white;
    font-size: 16px;
    width: 8vw;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

/* end search*/

#topmenu div.menu {
    /* width: 20vw; 13.10.2021*/
    width: 10vw;
    float: left;
}

#topmenu div.logo {
     /* width: 20vw; 13.10.2021*/
    width: 15vw;
    float: left;
}

#topmenu div.menu {
    padding: 0.9vh 0;
}

div#dropdown-wrapper {
    width: 20%;
    float: right;
    margin-right: 20px;
    text-align: center;
}

div#dropdown-wrapper .topmenu-dropdown {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
}

div#dropdown-wrapper .topmenu-dropdown span.current-lang {
    font-size: 1.4vh;
    line-height: 1.5vh;
    padding-top: 0.4vh;
    cursor: pointer;
}

#topmenu-dropdown-menu-elements {
    position: absolute;
    background: rgba(255, 255, 255, 1);
    margin-top: 1.01vh;
    margin-top: calc(1vh + 1px);
    text-align: left;
    display: none;
    /* right: 1vw; arrow from lang */
    z-index: 100001;
}

#topmenu-dropdown-menu-elements div.single-lang {
    padding: 0.5vh 0.5vw;
    border-top: 1px solid #363636;
    color: #363636;
    cursor: pointer;
    font-size: 1.4vh;
    line-height: 1.5vh
}

#topmenu-dropdown-menu-elements div.single-lang.first {
    border-top: none;
}

#topmenu-dropdown-menu-elements div.single-lang:hover {
    background: rgba(47, 47, 47, 1);
    color: white;
}

#lang-arrow {
    border: solid white;
    border-top-width: medium;
    border-right-width: medium;
    border-bottom-width: medium;
    border-left-width: medium;
    border-width: 0 0.1vw 0.1vw 0;
    display: inline-block;
    padding: 0.15vw;
    position: absolute;
    top: 0.65vh;
    margin-left: 0.15vw;

    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
}

#lang-arrow.active {
    transform: rotate(-135deg) !important;
    -webkit-transform: rotate(-135deg) !important;
}

#triangle {
    text-align: right;
}

#topmenu_middle-content {
    color: white;
    background-color: rgba(47, 47, 47, 1);
}

.topmenu_padding {
    padding: 0.9vh 0;
}

#topmenu_logo {
    opacity: 1 !important;
    text-align: center;
    padding: 0 !important;
    background-color: #EE1622 !important;
    height: 100%;
}

#topmenu_menu {
    height: 100%;
    background-color: rgba(47, 47, 47, 0.6) !important;
}

#topmenu div.logo #back-button {
    height: 3.9vh;
    float: left;
    /*margin-top: -0.5vh;
    position: absolute;*/
}

#topmenu div.logo #back-button img {
    height: 100%;
    float: left;
    cursor: pointer;
}



@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Retina-specific stuff here */
    /*.topmenu_padding {
        padding: 0.8vh 0 1.1vh 0 !important;
    }*/
    #topmenu_logo_image {
        margin-bottom: 0.4vh;
    }
}
/*
.search-top-menu input#search-input {
    width: 13vw;
} */

/*.triangle_top:after {
    content:'';
    position: absolute;
    top: 80%;
    right: 2%;
    width: 0;
    height: 0;
    border-bottom: solid 20px #e4e4e4;
    border-left: solid 20px transparent;
    border-right: solid 20px transparent;
}*/
.align_with_text_from_menu {
    padding-right: 1vh;
}

@media screen and (orientation: portrait) {

    #topmenu div.logo #back-button {
        height: 1.9vh;
    }

    #topmenu div.middle, #topmenu div.logo, #topmenu div.menu {
        height: 1.9vh;
    }

    #topmenu {
        height: 1.1vh;
        line-height: 0.9vh;
        font-size: 0.9vh;
    }



    #topmenu div.menu {
        padding: 0.4vh 0;
        width:15vw;
    }

    #topmenu div.middle {
        padding: 0.5vh 0;
        width: 70vw;
    }

    #topmenu div.logo {
        width: 15vw;
    }

    #topmenu div.logo img {
        width: auto;
        height: 100%;
    }

    .search-top-menu{
        width: 20vw;
        /* height: 2vh; */
    }

    .search-top-menu input#search-input {
        /* width: 15vw; */
        height: 1.6vh;
    }

    .search-top-menu input#search-input::placeholder {
        text-align: center;
        font-size: .6rem;
    }

    .search-top-menu .search-icon {
        height: 15px;
        width: 15px;
    }


    div#dropdown-wrapper .topmenu-dropdown span.current-lang {
        font-size: 0.9vh;
        line-height: 0.9vh;
        padding-top: 0.4vh;
    }

    #topmenu div.menu img {
        height: 1.1vh;
    }

    #lang-arrow {
        top: 0.3vh;
    }

    #topmenu-dropdown-menu-elements div.single-lang {
        font-size: 0.9vh;
        line-height: 0.9vh;
    }

    #topmenu-dropdown-menu-elements {
        margin-top: 0.65vh;
    }

    .search-doors-list {
        top: 24px;
        width: 15vw;
    }

    .search-doors-list-item {
        text-overflow: ellipsis;
    }
    .search-popup-center{
        width: 70%;
        height: 20%;
    }

    .search-popup-text {
        width: 90%;
    }
}

/* tablets - portrait */
@media (min-width: 641px) and (max-width: 1020px) and (orientation: portrait) {
    #topmenu div.middle, #topmenu div.logo, #topmenu div.menu {
        height: 3vh;
    }

    #topmenu div.logo #back-button {
        height: 3vh;
    }

    #topmenu {
        line-height: 1.4vh;
        font-size: 1.2vh;
    }

    #topmenu div.menu {

        padding: 0.5vh 0;
    }

    #topmenu div.menu > div {
        margin-right: 1vw;
    }

    div#dropdown-wrapper {

    }

    #topmenu div.middle {
        padding: 0.5vh 0;
    }

    /*#topmenu div.logo img {
        height: 100%;
        width: 100%;
    }*/

    div#dropdown-wrapper .topmenu-dropdown span.current-lang {
        font-size: 1vh;
        line-height: 2vh;
        padding-top: 0.3vh;
    }

    #topmenu div.menu img {
        height: 2vh;
    }

    #lang-arrow {
        top: 0.65vh;
        border-width: 0 0.2vw 0.2vw 0;
        padding: 0.2vw;
        left: 2.7vw;
    }

    #topmenu-dropdown-menu-elements div.single-lang {
        font-size: 1vh;
        line-height: 2vh;
    }

    #topmenu-dropdown-menu-elements {
        margin-top: 0.55vh;
    }

    #topmenu div.menu img {
        height: 1.5vh;
    }
    .search-doors-list {
        top: 18px;
        width: 15vw;
        overflow-x: hidden;
    }

    .search-doors-list-item {
        height: 50px;
    }


}

@media only screen  and (max-width: 1400px) and (orientation: landscape){
    .search-popup-center{
        width: 50%;

    }

    .search-popup-text {
        width: 75%;
    }

}


@media only screen  and (max-width: 1100px) and (orientation: landscape){
    .search-top-menu .search-icon {
        height: 15px;
        width: 15px;
    }


    .search-popup-center{
        height: 28%;
    }
}
