


input {
    outline: none;
}
input[type=search] {
    -webkit-appearance: textfield;
    -webkit-box-sizing: content-box;
    font-family: inherit;
    font-size: 100%;
}
input::-webkit-search-decoration,
input::-webkit-search-cancel-button {
    display: none; 
}


input[type=search] {
    background: #ededed00 url(https://png.icons8.com/ios/20/000000/search-filled.png) no-repeat 9px center;
    border: solid 1px #ccc0;
    padding: 9px 10px 9px 32px;
    width: 55px;
    
    -webkit-border-radius: 0.5em;
    -moz-border-radius: .5em;
    border-radius: .5em;
    
    -webkit-transition: all .5s;
    -moz-transition: all .5s;
    transition: all .5s;
}
input[type=search]:focus {
    width: 130px;
    background-color: #fff;
    border-color: #00BED8;
    
    -webkit-box-shadow: 0 0 5px rgba(109,207,246,.5);
    -moz-box-shadow: 0 0 5px rgba(109,207,246,.5);
    box-shadow: 0 0 5px rgba(109,207,246,.5);
}


input:-moz-placeholder {
    color: #999;
}
input::-webkit-input-placeholder {
    color: #999;
}

/* Demo 2 */
#demo-2 input[type=search] {
    width: 15px;
    padding-left: 10px;
    color: transparent;
    cursor: pointer;
}
#demo-2 input[type=search]:hover {
    background-color: #ffffff29;
}
#demo-2 input[type=search]:focus {
    width: 200px;
    padding-left: 32px;
    color: #000;
    background-color: #fff;
    cursor: auto;
}
#demo-2 input:-moz-placeholder {
    color: transparent;
}
#demo-2 input::-webkit-input-placeholder {
    color: transparent;
}

@media (max-width:1420px) {
    #demo-2 input[type=search]:focus {
        width: 320px;
        padding-left: 32px;
        color: #000;
        background-color: #fff;
        cursor: auto;
    }
}

@media (max-width:1370px) {
    #demo-2 input[type=search]:focus {
        width: 320px;
        padding-left: 32px;
        color: #000;
        background-color: #fff;
        cursor: auto;
    }
}

@media (max-width:1280px) {
    #demo-2 input[type=search]:focus {
        width: 300px;
        padding-left: 32px;
        color: #000;
        background-color: #fff;
        cursor: auto;
    }
}

@media (max-width:1209px) {
    #demo-2 input[type=search]:focus {
        width: 110px;
        padding-left: 32px;
        color: #000;
        background-color: #fff;
        cursor: auto;
    }
}

@media (max-width:1180px) {
    #demo-2 input[type=search]:focus {
        width: 120px;
        padding-left: 32px;
        color: #000;
        background-color: #fff;
        cursor: auto;
    }
}

@media (max-width:1080px) {
    #demo-2 input[type=search]:focus {
        width: 120px;
        padding-left: 32px;
        color: #000;
        background-color: #fff;
        cursor: auto;
    }
}

@media (max-width:990px) {
    #demo-2 input[type=search]:focus {
        width: 55px;
        padding-left: 32px;
        color: #000;
        background-color: #fff;
        cursor: auto;
    }
}

@media (max-width:720px) {
    #demo-2 input[type=search]:focus {
        width: 90%;
        padding-left: 32px;
        color: #000;
        background-color: #fff;
        cursor: auto;
    }
}

@media (max-width:640px) {
    #demo-2 input[type=search]:focus {
        width: 90%;
        padding-left: 32px;
        color: #000;
        background-color: #fff;
        cursor: auto;
    }
}

@media (max-width:560px) {
    #demo-2 input[type=search]:focus {
        width: 90%;
        padding-left: 32px;
        color: #000;
        background-color: #fff;
        cursor: auto;
    }
}

@media (max-width:420px) {
    #demo-2 input[type=search]:focus {
        width: 90%;
        padding-left: 32px;
        color: #000;
        background-color: #fff;
        cursor: auto;
    }
}

@media (max-width:360px) {
    #demo-2 input[type=search]:focus {
        width: 80%;
        padding-left: 32px;
        color: #000;
        background-color: #fff;
        cursor: auto;
    }
}