﻿.header {
    padding: 0 0 1em;
    width: 100%;
    background-color: var(--themeHeaderColor);
}

.mainHeader {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.mainHeader > div {
    width: 100%;
    min-width: 1200px;
}

.mainHeaderUserMenu {
    display: flex;
    min-width: 870px;
    width: 870px;
    align-items: center;
    justify-content: center;
}

.mainHeaderUserMenu > a {
    display: flex;
    padding: 5px;
}
.mainHeaderLanguageMenu > a{
    padding: 0 10px;
}

.topMenu {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    padding: 1em 0;
    margin: 0;
    background-color: white;
    border-bottom: 1px solid #C4C4C4;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
}

.languageMenu {
    display: flex;
}

.topTitle {
    font-weight: 500;
    font-size: 24px;
    line-height: 30px;
}

.userInfo {
    display: flex;
}

.userInfo > .login {
}

.userInfo > .dot {
    color: #3A8544;
    margin-right: 10px;
    margin-left: 10px;
}

.userInfo > .register {
}

.userInfo > .user {
}

.userInfo > .exitUser {
    color: #3A8544
}

.userInfo > a {
    display: flex;
    padding: 5px;
}

.menuButton {
    width: 1.5em;
    height: 1.5em;
}

.menuButton, .closeMenuButton, .menuWrap, .menuBackground, .headerContent {
    display: none;
}


.mainMenu {
    display: flex;
    margin-top: 1em;
    margin-bottom: 1em;
    gap: 20px;
    min-width: 870px;
    width: 870px;
    align-items: center;
    justify-content: center;
}

.searchQuery {
    display: flex;
    justify-content: center;
    max-width: 860px;
    width: 90%;
}

.homeButton {
    display: flex;
    width: 60px;
    height: 44px;
    background: var(--themeBGColor);
    border-radius: 3px 0 0 3px;
}

.mainHeaderSearch {
    display: flex;
}

.searchTextBox {
    display: flex;
    max-width: 740px;
    width: 100%;
    background: #FFFFFF;
    border: 1px solid #CCCCCC;
    border-radius: 0;
}

.searchFilterButton {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin: 10px 24px 10px -48px;
    background-repeat: no-repeat;
}

.searchButton {
    display: flex;
    width: 60px;
    height: 44px;
    padding: 0;
    border: 0;
    background: var(--themeBGColor);
    border-radius: 0 3px 3px 0;
}

.acceptCookiesPanel {
    align-items: baseline;
    background: rgb(33, 33, 33);
    color: white;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    left: 0px;
    position: fixed;
    width: 100%;
    z-index: 999;
    bottom: 0px;
}

.acceptCookiesPanelInner {
    flex: 1 0 300px;
    margin: 15px;
}

.acceptCookiesContentText {
    font-size: 14px;
}

.acceptCookiesAnchor {
    color: white !important;
    text-decoration: underline;
}

.acceptCookiesButton {
    border: 0px;
    border-radius: 0px;
    box-shadow: none;
    color: white;
    cursor: pointer;
    flex: 0 0 auto;
    padding: 5px 10px;
    margin: 15px;
    font-weight: bolder;
}


@media (max-device-width: 769px) {
    /* For mobile phones and tablets: */
    .languageMenu, .auth, .mainMenu {
        display: none;
    }

    .header {
        width: 100%;
        padding: 0;
    }

    .topMenu {
        justify-content: center;
    }

    .center {
        width: inherit;
    }

    .topTitle {
        position: relative;
        font-size: 2rem;
    }

    /* mobile menu */
    .mainMenu.open {
        display: flex;
        visibility: visible;
        opacity: 1;
        transform: translate(0);
        transition: all .4s;
        z-index: 250;
        height: 100%;
        padding-top: 20px;
        justify-content: flex-start;
    }
    @media (max-device-width: 769px) {
        .mainMenu {
            display: flex;
            z-index: 1;
            position: fixed;
            top: 83px;
            left: 0;
            bottom: 0;
            visibility: hidden;
            width: 90%;
            flex-direction: column;
            overflow: auto;
            background-color: white;
            opacity: 0;
            transform: translate(-100%);
            transition: all .4s;
        }
    }

    .menuBackground.open {
        display: flex;
        visibility: visible;
        opacity: 1;
        transform: translate(0);
        transition: all .4s;
    }

    .menuBackground {
        display: flex;
        z-index: 1;
        position: fixed;
        top: 83px;
        right: 0;
        bottom: 0;
        visibility: hidden;
        width: 10%;
        overflow: auto;
        background: rgba(35, 43, 43, 0.7);
        transform: translate(100%);
        transition: all .4s;
    }

    .md-hidden {
        display: flex;
        max-width: 140px;
        flex-direction: column;
        gap: 20px;
        margin-top: 2em;
        margin-left: 2em;
    }

    .menuItems.selected {
        border-bottom: 1px solid var(--themeBGColor);
    }

    .rectangleContainer {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 2.375em;
    }

    .menuRectangle1 {
        height: 1px;
        width: 85%;
        margin-top: 2.5em;
        margin-bottom: 2.125em;
        background-image: url("../img/Rectangle 123.svg");
    }

    .menuRectangle2 {
        height: 1px;
        width: 85%;
        margin-top: 2.125em;
        margin-bottom: 1.875em;
        background-image: url("../img/Rectangle 123.svg");
    }

    .auth.mobile {
        display: flex;
    }

    .user, .exitUser {
        font-size: 16px;
        line-height: 24px;
        font-weight: 500;
    }

    .dot {
        margin-left: 2.5em;
        margin-right: 2.5em;
    }

    .languageMenu.mobile {
        display: flex;
    }

    .latvian, .russian, .english {
        font-size: 16px;
        line-height: 24px;
    }

    .menuButton {
        display: flex;
        position: absolute;
        right: 1em;
        width: 24px;
        height: 24px;
        border: 0;
        padding: 0;
        background-color: white;
        background-image: url("../img/Menu.svg");
        background-repeat: no-repeat;
    }

    .menuButton.hidden {
        display: none;
    }

    .closeMenuButton {
        position: absolute;
        right: 1em;
        width: 24px;
        height: 24px;
        border: 0;
        padding: 0;
        background-color: white;
        background-image: url("../img/X_Close.svg");
        background-repeat: no-repeat;
    }

    .closeMenuButton.visible {
        display: flex;
    }

    /* end of mobile menu */
    /* mobile filters */
    .contentText {
        font-size: 16px;
        font-weight: 500;
        margin-left: 0.625em;
        margin-right: 0.625em;
    }

    .filtersWrap.open {
        display: flex;
        visibility: visible;
        opacity: 1;
        transform: translate(0);
        transition: all .4s;
    }

    .filtersWrap {
        display: flex;
        z-index: 1;
        position: fixed;
        top: 31px;
        left: 0;
        bottom: 0;
        visibility: hidden;
        width: 90%;
        flex-direction: column;
        overflow: auto;
        background-color: white;
        opacity: 0;
        transform: translate(-100%);
        transition: all .4s;
    }

    .filtersBackground.open {
        display: flex;
        visibility: visible;
        opacity: 1;
        transform: translate(0);
        transition: all .4s;
    }

    .filtersBackground {
        display: flex;
        z-index: 1;
        position: fixed;
        top: 31px;
        right: 0;
        bottom: 0;
        visibility: hidden;
        width: 10%;
        overflow: auto;
        background: rgba(35, 43, 43, 0.7);
        transform: translate(100%);
        transition: all .4s;
    }

    .filtersContainer {
        margin: 0.875em 1.25em 1.875em;
    }

    .filtersButton {
        display: flex;
        justify-content: flex-end;
        height: 24px;
        width: 69px;
        border: 0;
        padding: 0;
        margin-left: 0.8em;
        background-color: white;
        background-image: url("../img/Search_Filter.svg");
        background-repeat: no-repeat;
    }

    .filtersImage {
        margin-right: 10px;
        margin: 0 5px;
    }

    .filtersText {
        font-size: 16px;
        font-weight: 500;
        color: var(--themeBGColor);
        margin: 0;
    }

    .closeFiltersButton {
        position: absolute;
        right: 20px;
        top: 19px;
        width: 24px;
        height: 24px;
        border: 0;
        padding: 0;
        background-color: white;
        background-repeat: no-repeat;
    }

    /* end of mobile filters */
    .searchQuery {
        width: 95%;
        margin: 1em 0 1em 0;
    }

    .headerContent {
        display: block;
        width: 100%;
        background-color: white;
    }

    input::-webkit-input-placeholder {
        color: transparent;
    }
}