/*** SEARCH ***/
.search + button{
    font-size: 22px;
    margin-left: -40px;
    font-weight: 100;
    color: #666666;
    top: 4px;
    position: relative;
    cursor: pointer;
    outline: none;
    background: none;
    border: none;
}

.ui-autocomplete.ui-widget-content {
    background: #ececec none;
    text-align: left;
    overflow: hidden;
    z-index: 99999;
    color: #000000;
    font: bold 14px Arial;
    padding: 0 15px;
    border-top: 2px solid white;
}
.ui-autocomplete>li.ui-menu-item {
    position: relative;
    display: flex;
    display: -webkit-box;      /* OLD - iOS 6-, Safari 3.1-6 */
    display: -ms-flexbox;      /* TWEENER - IE 10 */
    display: -webkit-flex;
    background: none;
    border: none;
    border-bottom: 2px solid #dedede;
    padding: 4px 0;
    justify-content: space-between;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    align-items: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    margin: 0;
}
.ui-autocomplete>.ui-menu-item:last-child{
    border-bottom: none;
}
.ui-autocomplete>.ui-menu-item>a:nth-child(1) {
    color: black;
    padding: 20px 0;
}
.ui-autocomplete>.ui-menu-item>a:nth-child(1):not(:only-child)  {
    max-width: 50%;
}
.ui-autocomplete>.ui-menu-item>a:nth-child(2) {
    color: black;
    padding: 0 5px 0 5px;
}
.ui-autocomplete>.ui-menu-item>a:hover {
    background: none;
    text-overflow: ellipsis;
}
ul.ui-autocomplete>li.ui-state-focus {
    font-weight: bold;
    color: black;
    margin: 0;
    text-decoration: underline;
    background: inherit;
    border: none;
    border-bottom: 2px solid #dedede;
}
.card-link>img{
    vertical-align: middle;
}

/*.search.ui-autocomplete-loading{
    background-image: url('./i/preloader1.gif');
    background-position: center center;
    background-repeat: no-repeat;
}*/
.preloader {
    background-image: url('./i/preloader2.gif');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;

    position: absolute;
    width: 30%;
    height: 80%;
    right: 0;
}

@media screen and (max-width: 35.5em){
    ul.ui-autocomplete>li.ui-menu-item>a:nth-child(1) {
        padding: 5px 0;
    }

    ul.ui-autocomplete>li.ui-menu-item{
        padding: 10px 0;
    }

    .card-link>img{
        width: 150px;
        height: 43px;
    }

}
/**IPHONE 5*/
@media only screen
and (min-device-width : 320px)
and (max-device-width : 568px)
and (orientation : portrait) {
    .search + button{
        padding: 0;
    }
    .ui-autocomplete>.ui-menu-item>a:nth-child(1):not(:only-child)  {
        max-width: 40%;
    }
}

/**IPAD*/
@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px)
and (-webkit-min-device-pixel-ratio: 2){
    .search + button{
        margin-right: -50px;
    }

}

@media only screen
and (min-device-width : 768px)
and (max-device-width : 1024px)
and (-webkit-min-device-pixel-ratio: 1){
    .search + button{
        top: 8px;
        margin-right: -50px;
        left: -5px;
    }
}

/** IPHONE 6 */
@media only screen
and (min-device-width : 375px)
and (max-device-width : 667px) {
    .search + button{
        top: 8px;
        margin-right: -50px;
        left: -10px;
    }
    .ui-autocomplete.ui-widget-content{
        padding-left: 1em;
        padding-right: 1em;
    }
}
/** IPHONE 6+ */
@media only screen
and (min-device-width : 414px)
and (max-device-width : 736px) {
    .search + button{
        left: -10px;
    }
}


/*** LAYOUT STYLES */
.pure-g{
    display: flex;
    display: -webkit-flex;
    flex-flow: row wrap;
    -webkit-flex-flow: row wrap;
}
.header-border-bottom{
    border: 1px solid #DFDFDF;
    margin-bottom: 20px;
    margin-top: 20px;
}

#holder-form .search{
    float: left;
    padding: 0.5em 2.5em 0.5em 1em;
    border-radius: 3px;
    font: normal 15px Arial;
    color: #333333;
    border: 1px solid #129FEA;
    box-sizing: border-box;
}
#holder-form .search:focus{
    outline: 0;
    background-color: #ececec;
    padding: 0.5em 2.5em 0.75em 1em;
    border: none;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}


.search-title-wrapper {
    display: flex;
    display: -webkit-flex;
    display: -ms-flexbox;
    -ms-flex-align: center;
    align-items: center;
    -webkit-align-items: center;
    justify-content: flex-end;
    -webkit-justify-content: flex-end;
    -ms-flex-pack: end;
}

.search-title{
    text-align: right;
    color: #666666;
    font-size: 19px;
}

/*@media screen and (max-width: 35.5em){
    .header-search-wrapper{
        margin-left: 10px;
        margin-right: 5px;
    }
}*/
@media screen
and (max-width: 48em) {
    .search-title-wrapper {
        display: none;
    }
}

@media screen
and (min-width: 35.5em)
and (max-width: 48em) {
    .header-search-wrapper{
        width: 66.6667%;
    }

}

@media screen
and (max-width: 35.5em){
    #holder-standalone{
        margin-top: 10px;
    }
}
