/* Copyright (c) 2013-2018 FreeFind.com. All Rights Reserved.
FreeFind Overlay, Version 1.0.08
*/
/*
CHANGELOG:
------------------------------------------------------------------------------
1.0.02	2017.05.18	To fix not appearing above all user divs, added: .ffse-ov0-div { position:relative; }
1.0.03	2018.02.06	Added ffse-ov0-close and ffse-ov0-close:hover  to support new close "X"
1.0.04	2018.02.07	Fix for quirks mode, 1.0.02 made results appear at end of page
1.0.05	2018.02.08	Changed styling to support close char from "&#x274c;" to "x" due to WordPress changing former to emoji image!
1.0.06	2018.02.27	Change min-width in ffse-ov0-ifd and added some media types to change width according to window size
1.0.07	2018.03.26	Fix to JS only
1.0.08	2018.04.10	Fix to JS only
------------------------------------------------------------------------------
*/
.ffse-ov0-ifd {
    /* user modifiable styles -- start */
    left: 10%;
    top: 7%;
    width: 80%;
    height: 85%;
    min-width: 300px;
    min-height: 240px;
    border: 0px;
    box-shadow: rgba(0, 0, 0, 0.35) 1px 1px 4px 3px;
    border-radius: 0.2em;
    -webkit-transition: opacity 400ms ease-out;
    -moz-transition: opacity 400ms ease-out;
    -o-transition: opacity 400ms ease-out;
    -ms-transition: opacity 400ms ease-out;
    transition: opacity 400ms ease-out;
    /* user modifiable styles -- end */
    position: fixed;
    -webkit-overflow-scrolling: touch;
    overflow: auto;
    opacity: 0;
    z-index: 16777271;
}

@media (max-width:475px) {
    .ffse-ov0-ifd {
        width: 90% !important;
        left: 5% !important;
    }
}

@media (max-width:370px) {
    .ffse-ov0-ifd {
        width: 96% !important;
        left: 2% !important;
    }
}

.ffse-ov0-cover {
    /* user modifiable styles -- start */
    background: #0000cd;
    -webkit-transition: opacity 400ms ease-out;
    -moz-transition: opacity 400ms ease-out;
    -o-transition: opacity 400ms ease-out;
    -ms-transition: opacity 400ms ease-out;
    transition: opacity 400ms ease-out;
    /* user modifiable styles -- end */
    position: fixed;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
    opacity: 0;
    z-index: 16777270;
}

.ffse-ov0-cover-trans {
    /* user modifiable styles -- start */
    opacity: 0.54;
    filter: alpha(opacity=54);
    /* user modifiable styles -- end */
}

.ffse-ov0-div {
    padding: 0px;
    margin: 0px;
    border: 0px;
}

.ffse-ov0-ifr {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    padding: 0px;
    background: #dddbdb;
    border: 0px;
    border-radius: 0.2em;
}

.ffse-ov0-ifd-trans {
    opacity: 1;
}

.ffse-ov0-close {
    /* user modifiable styles -- start */
    font-size: 18pt;
    color: #ffffff;
    /* user modifiable styles -- end */
    position: absolute;
    right: 0;
    padding: 0.1em 0.67em 0.25em 0.25em;
    font-family: sans-serif;
    font-variant: small-caps;
}

.ffse-ov0-close:hover {
    /* user modifiable styles -- start */
    color: #000000;
    /* user modifiable styles -- end */
    cursor: pointer;
}

/*search box styling*/
.search-container {
    position: relative;
    display: inline-block;
}

#search-icon {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}

/*to underline Search on hoverover*/
.underline-search {
    font-size: large;
    font-weight: bold;
    color: #9b111e;
    text-decoration: none;
    position: relative;
}

.underline-search::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #9b111e;
    visibility: hidden;
    transition: all 0.6s ease-in-out;
}

.underline-search:hover::after {
    visibility: visible;
    width: 100%;
}

#search-bar {
    position: absolute;
    top: 100%;
    left: 0;
    width: 250px;
    display: none;
    /* Initially hidden */
    background-color: #fff;
    border-radius: 5px;
    padding: 15px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    z-index: 9999;
}

#search-bar input[type="text"] {
    width: 100%;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

#search-bar input[type="submit"] {
    margin-top: 5px;
    padding: 5px 10px;
    background-color: #9b111e;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

/*mobile screen*/
@media screen and (min-width: 300px) {

    .underline-search {
        display: none;
    }

}

/*desktop, large laptop & tablets*/
@media screen and (min-width: 860px) {

    .underline-search {
        display: contents;
    }

}