
/*the container must be positioned relative:*/
.autocomplete {
    position: relative;
    display: inline-block;
}

.autocomplete input {
    border: 1px solid transparent;
    background-color: #f1f1f1;
    /*padding: 10px;*/
    font-size: 16px;
}

.autocomplete input[type=text] {
    background-color: #f1f1f1;
    width: 100%;
}

.autocomplete input[type=submit] {
    background-color: DodgerBlue;
    color: #fff;
    cursor: pointer;
}

.autocomplete-items {
    display: flex;
    flex-direction: column;
    position: absolute;
    border: 1px solid #d4d4d4;
    border-bottom: none;
    border-top: none;
    z-index: 5;
    /*position the autocomplete items to be the same width as the container:*/
    top: 100%;
    left: 0;
    right: 0;
    max-height: 20vh;
    overflow: auto;

}

/*#autocomplete-list a strong {*/
/*    color: #e47390*/
/*}*/

.autocomplete-items a,.autocomplete-items span {
    padding: 8px 10px 8px 10px;
    cursor: pointer;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    background-color: #fff;
    min-height: 40px;
    border-bottom: 1px solid #d4d4d4;
}

/*when hovering an item:*/
#autocomplete-list.autocomplete-items a:hover {
    background: #e47390;
    border: 1px solid #e47390;
    color: white;
}

/*when navigating through the items using the arrow keys:*/
#autocomplete-list a.autocomplete-active {
    background-color: #e47390;
    color: white;
}
