/*  Sets styles for search screen */ 
/*  overlay (link from header)    */
/* -----------------------------  */

.o_search--hidden {
    display: none;
}

.o_search--active {
    display: block;
}

.o_search {
    padding: 8% 0;
    position: fixed;
    width: 100%;
    height: 100vh;
    background: url('../../img/pics/search-overlay.jpg')left no-repeat;
    background-size: cover;
    z-index: 1;
    overflow: hidden;
}

.o_search_wrap {
    width: 800px;
    display: block;
    position: relative;
    /* padding-top: 10%;  */
}

.o_search::before {
    position: absolute;
    content:'';
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--eco-black);
    opacity: 0.2;
    z-index: -1;
}

.o_search_quit {
    display: block;
    width: 30px;
    background-size: contain;
    cursor: pointer;
}

.o_search_h1 {
    display: block;
    width: 200px;
    position: relative;
    text-align: center;
    padding-top: 20px; 
}

.o_search_h1:before {
    content: '';
    display: block;
    position: absolute;
    top: 30%;
    left: -30%;
    background: url('../../img/svg/search-icon_white.svg') center no-repeat;
    background-size: cover;
    width: 45px;
    height: 45px;
}

@media only screen and (max-width: 450px) {
    .o_search {
        padding-top: 10%;
    }

    .o_search_wrap {
        width: 80%;
        padding-top: 0; 
    }

    .o_search_h1 {
        margin-top: 0px;
        width: 100px;
    }

    .o_search_h1:before {
        display: none;
    }
}

@media only screen and (min-width: 450px) and (max-width: 700px) {
    .o_search {
        padding-top: 5%;
    }

    .o_search_wrap {
        width: 80%;
        padding-top: 0; 
    }

    .o_search_h1 {
        margin-top: 0px;
        width: 100px;
    }

    .o_search_h1:before {
        display: none;
    }
}

@media only screen and (min-width: 700px) and (max-width: 900px) {
    
    .o_search_wrap {
        width: 80%;
        padding-top: 0; 
    }

    .o_search_h1:before {
        display: none;
    }

}
@media only screen and (min-width: 900px) and (max-width: 1000px) {
    
    .o_search {
        padding-top: 35%;
    }

    .o_search_wrap {
        width: 80%;
        padding-top: 0; 
    }

    .o_search_h1:before {
        display: none;
    }

}

@media only screen and (min-width: 1000px) and (max-width: 1200px) {
    
    .o_search {
        padding-top: 10%;
    }

    .o_search_wrap {
        width: 80%;
        padding-top: 0; 
    }

    .o_search_h1:before {
        display: none;
    }

}