#autoComplete_wrapper {
    position: relative;
    display: inline-block;
}

#autoComplete {
    position: relative;
    padding: 0 2rem 0 3.5rem;
    height: 2.1rem;
    width: 6rem;
    font-size: 1.2rem;
    outline: none;
    border-radius: 50rem;
    border: 0.05rem solid rgb(255, 122, 122);
    caret-color: rgb(255, 122, 122);
    color: rgba(255, 255, 255, 0);
    background-image: url(./images/magnifier.svg);
    background-repeat: no-repeat;
    background-size: 1.2rem;
    background-origin: border-box;
    background-position: center;
    transition: all 0.4s ease;
    -webkit-transition: all -webkit-transform 0.4s ease;
    text-overflow: ellipsis;
}

#autoComplete::placeholder {
    color: rgba(255, 122, 122, 0);
    transition: all 0.3s ease;
}

#autoComplete:hover::placeholder {
    color: rgba(255, 122, 122, 0.3);
    transition: all 0.3s ease;
    -webkit-transition: all -webkit-transform 0.3s ease;
}

#autoComplete:focus::placeholder {
    padding: 0.1rem 0.6rem;
    font-size: 1rem;
    color: rgba(255, 122, 122, 0.3);
    transition: all 0.3s ease;
    -webkit-transition: all -webkit-transform 0.3s ease;
}

#autoComplete::selection {
    color: transparent;
}

#autoComplete:focus::selection {
    color: #fff;
    background-color: rgba(255, 122, 122, 1);
}

#autoComplete:hover {
    padding: 0 2rem 0 3.5rem;
    color: rgba(255, 122, 122, 1);
    height: 3rem;
    width: 16.5rem;
    background-image: url(./images/magnifier.svg);
    background-size: 1.7rem;
    background-position: left 1.05rem top 0.7rem;
    transition: all 0.3s ease;
    -webkit-transition: all -webkit-transform 0.3s ease;
}

#autoComplete:focus {
    padding: 0 2rem 0 3.5rem;
    color: rgba(255, 122, 122, 1);
    height: 3rem;
    width: 16.5rem;
    border: 0.05rem solid rgb(255, 122, 122);
    background-image: url(./images/magnifier.svg);
    background-size: 1.5rem;
    background-position: left 1.05rem top 0.8rem;
    box-shadow: rgba(255, 122, 122, 0.1) 0px 0px 20px 5px;
}

#autoComplete_results_list {
    position: absolute;
    height: auto;
    overflow: auto;
    z-index: 1000;
    padding: 0;
    left: 0;
    right: 0;
    margin-top: 0;
    width: 100%;
    overflow: hidden;
    transition: all .1s ease-in-out;
    -webkit-transition: all -webkit-transform .1s ease;
}

.autoComplete_result {
    margin: 0;
    padding: .6rem;
    border: 1px solid #c4c4c4;
    list-style: none;
    text-align: left;
    font-size: 1.1rem;
    color: #7b7b7b;
    transition: all .1s ease-in-out;
    background-color: #fff;
    width: 100%;
    box-sizing: border-box;
}

.autoComplete_result::selection {
    color: rgba(#ffffff, 0);
    background-color: rgba(#ffffff, 0);
}

.autoComplete_result:last-child {
    border-radius: 0 0 3px 3px;
}

.autoComplete_result:hover {
    cursor: pointer;
    background-color: rgba(255, 248, 248, 0.9);
    border-left: 1px solid #3d211a;
    border-right: 1px solid #3d211a;
    border-top: 1px solid transparent;
    border-bottom: 1px solid transparent;
}

.autoComplete_result:focus {
    outline: none;
    background-color: rgba(255, 248, 248, 0.9);
    border-left: 1px solid #3d211a;
    border-right: 1px solid #3d211a;
    border-top: 1px solid transparent;
    border-bottom: 1px solid transparent;
}
.autoComplete_result.no-result {
    pointer-events: none;
}
.autoComplete_highlighted {
    opacity: 1;
    color: #cfd776;
    font-weight: bold;
}

.autoComplete_highlighted::selection {
    color: rgba(#ffffff, 0);
    background-color: rgba(#ffffff, 0);
}

@media only screen and (max-width: 600px) {
    #autoComplete {
        width: 5rem;
    }

    #autoComplete:focus {
        width: 11rem;
        background-size: 1.6rem;
        background-position: left 1.1rem top 0.75rem;
    }

    .autoComplete_result:first-child {
        border-radius: 1rem 1rem 0 0;
    }

    .autoComplete_result:last-child {
        border-radius: 0 0 1rem 1rem;
    }

    .autoComplete_result:only-child {
        border-radius: 1rem;
    }
}

@media screen and (-webkit-min-device-pixel-ratio: 0) {
    #autoComplete {
        border-width: 1px;
    }

    #autoComplete:hover {
        border-width: 1px;
    }

    #autoComplete:focus {
        border-width: 1px;
    }
}

@-moz-document url-prefix() {
    #autoComplete {
        border-width: 1px;
        background-size: 1.2rem;
        background-origin: border-box;
        background-position: center;
    }

    #autoComplete:hover {
        border-width: 1px;
    }

    #autoComplete:focus {
        border-width: 1px;
        background-position: left 1.1rem top 0.8rem;
    }
}
