/**
 * Created by rmahdizadeh on 2/8/20.
 */

* { box-sizing: border-box; }
.autocomplete {
    /*the container must be positioned relative:*/
    position: relative;
    display: inline-block;
}
.autocomplete::after{
    position: absolute;
    content: " \2304";
    top: -5px;
    left: -8px;
    height: 20px;
    width: 35px;
    font-size: 27px;
    color: dimgrey;
}
.autocomplete input {
    border: 1px solid transparent;
    background-color: #f1f1f1;
    padding: 7px;
    font-size: 14px;
    text-align: right;
}
.autocomplete input[type=text] {
    background-color: #f1f1f1;
    width: 100%;
}
/*input[type=submit] {
    background-color: DodgerBlue;
    color: #fff;
}*/
.autocomplete-items {
    position: absolute;
    border: 1px solid #d4d4d4;
    border-bottom: none;
    border-top: none;
    z-index: 99;
    text-align: right;
    /*position the autocomplete items to be the same width as the container:*/
    top: 100%;
    left: 0;
    right: 0;
}
.autocomplete-items div {
    padding: 10px;
    cursor: pointer;
    background-color: #fff;
    border-bottom: 1px solid #d4d4d4;
}
.autocomplete-items div:hover {
    /*when hovering an item:*/
    background-color: #e9e9e9;
}
.autocomplete-active {
    /*when navigating through the items using the arrow keys:*/
    background-color: DodgerBlue !important;
    color: #ffffff;
}