/*-----------------------------------------------*/
/*  Searchbar General                            */
/*-----------------------------------------------*/

.search-bar {
    position: absolute;
    transform: translateY(-200%);
    transition: transform 0.5s ease-in-out;
    transition-delay: 0s;
    color: white;
    width: 100%;
    height: 100%;
    z-index: 111;
}

.search-after {
    width: 100%;
    position: fixed;
    height: 100%;
    visibility: hidden;
    background: transparent;
    transition: background 0.5s linear;
}

.search-bar.is-mobile {
    position: relative;
    color: white;
    transform: translateY(0);
    height: auto;
    display: none;
}


body.search-is-active {
    overflow: hidden;
    height: 100%;
    width: 100%;
    margin: 0;
}

body.search-is-active .search-after {
    visibility: visible;
    background: rgba(0,0,0,.6);
    cursor: pointer;
}

.search-bar .search-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #000;
    padding: 15px;
}

@media only screen and (min-width: 1024px) {
    .search-bar .search-container {
        background: #000;
    }
}

.search-bar .search-input, .search-bar .search-input-mobile {
    color: #ffffff;
    color: currentColor;
    font-family: Roboto;
    font-size: 18px !important;
    font-weight: 600;
    border-color: rgba(255, 255, 255, 1);
    border-color: currentColor;
    border-width: 2px;
}

.search-bar .search-input:focus, .search-bar .search-input-mobile:focus {
    color: #ffffff;
    color: currentColor;
    border-color: rgba(255, 255, 255, 1);
    border-color: currentColor;
}

.search-bar .search-input::placeholder, .search-bar .search-input-mobile::placeholder {
    color: #ffffff;
    color: currentColor;
}

.search-bar .search-submit-button {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    width: auto;
    margin: 0;
    font-family: "Roboto", sans-serif;
    font-style: normal;
    font-weight: 500;
    text-transform: none;
    font-size: 16px;
    line-height: 2em;
    letter-spacing: normal;
    outline: 0;
    box-sizing: border-box;
    transition: color .2s ease-in-out,background-color .2s ease-in-out,border-color .2s ease-in-out;
    padding: 8px 71px;;
    cursor: pointer;
    color: #fff;
    background-color: #000;
    border: 2px solid white;
    border-left: none;
}
.search-bar .search-submit-button:hover {
    color: #000 !important;
    background-color: #fff !important;
    border-color: white !important;
}

.search-bar.is-mobile .search-icon-submit {
    color: currentColor;
    border: 2px solid;
    padding: 12px;
    border-left: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0 !important;
}

.search-bar.is-mobile .search-icon-submit:hover {
    color: currentColor !important;
}

.search-bar .search-close {
    position: absolute;
    right: 5%;
    top: 5px;
    width: 25px;
    color: white;
    cursor: pointer;
    transition: color 0.5s;
}

.search-bar .search-close:hover {
    color: var(--ha-color--lavender-indigo);
}
.search-bar .search-close svg {
    fill: currentColor;
}

/*-----------------------------------------------*/
/*  Searchbar Header Right                       */
/*-----------------------------------------------*/

.edgtf-top-bar {
    z-index: 112;
    color: black;
}

.edgtf-top-bar .edgtf-vertical-align-containers {
    transition: background-color 0.2s ease-in-out;
    transition-delay: 0.2s;
}

body.search-is-active .search-bar.from-header-top-bar-right  {
    transform: translateY(50px);
    transition: transform 0.5s ease-in-out;
}

body.search-is-active .search-bar.from-header-top-bar-right + .edgtf-top-bar .edgtf-vertical-align-containers {
    background: #000;
    color: white;
    transition-delay: 0s;
}

.edgtf-top-bar .edgtf-vertical-align-containers .edgtf-position-right-inner {
    transition-delay: 0.2s;
}

.edgtf-position-right-inner .search-icon {
    padding: 10px;
    margin: 0 !important;
}

.edgtf-position-right-inner .search-icon svg {
    height: 15px;
    width: 15px;
    padding: 0;
    padding-top: 5px;
}

body.search-is-active .search-bar.from-header-top-bar-right + .edgtf-top-bar .edgtf-vertical-align-containers .edgtf-position-right-inner {
    transition-delay: 0s;
}

body.search-is-active .search-bar.from-header-top-bar-right + .edgtf-top-bar .edgtf-position-right a,
body.search-is-active .search-bar.from-header-top-bar-right + .edgtf-top-bar .edgtf-position-right span {
    color: currentColor !important;
}

body.search-is-active .search-bar.from-header-top-bar-right + .edgtf-top-bar .edgtf-separator {
    border-color: white !important;
}

body.search-is-active .search-bar.from-header-top-bar-right + .edgtf-top-bar .edgtf-position-right-inner a:hover {
    color: var(--ha-color--lavender-indigo) !important;
}



/*-----------------------------------------------*/
/*  Searchbar Sticky Header                      */
/*-----------------------------------------------*/
.edgtf-sticky-header .search-icon {
    color: white;
}

body.search-is-active .search-bar.from-fixed-menu {
    position: fixed;
    transition: transform 0.5s ease-in-out;
    transition-delay: 0s;
    color: white;
    width: 100%;
    z-index: 110;
    transform: translateY(96px);
}



/*-----------------------------------------------*/
/*  Searchpage                                   */
/*-----------------------------------------------*/

.edgtf-search-page-holder article .edgtf-post-content {
    display: flex;
    flex-direction: column;
}

@media only screen and (min-width: 680px) {
    .edgtf-search-page-holder article .edgtf-post-content {
        flex-direction: row;
    }
}

.edgtf-search-page-holder .edgtf-post-content .edgtf-post-image {
    width: 100%;
}

@media only screen and (min-width: 680px) {
    .edgtf-search-page-holder .edgtf-post-content .edgtf-post-image {
        width: 25%;
    }
}


.edgtf-search-page-holder article .edgtf-post-title-area {
    padding: 0 !important;
    margin: 15px 0;
    width: 100%;
}

@media only screen and (min-width: 680px) {
    .edgtf-search-page-holder article .edgtf-post-title-area {
        padding: 0 !important;
        margin: 0;
        margin-bottom: 15px;
        margin-left: 15px;
        width: 75%;
    }

    .edgtf-search-page-holder article .edgtf-post-title-area.edgtf-no-thumbnail {
        margin-left: 0;
    }
}