body{
    margin: 0;
    display: flex;
    justify-content: center;
    height: 100vh;
    align-items: center;
    background-color: lightblue;
    overflow: hidden;
}

.search-bar-div{
    display: flex;
    align-items: center;
    background-color: lightblue;
    padding: 5px;
    width: 300px;
    height: 50px;
    border-radius: 50px;
    box-shadow: 6px 6px 10px rgba(0, 0, 0, .2), -3px -3px 5px rgba(255, 255, 255, .3);
    margin: 10px;
    position: relative;
    transition: width 1.5s;
}

.magnifier{
    width: 25px;
    position: absolute;
    left: 18px;
    cursor: pointer;
}

.mic{
    width: 30px;
    position: absolute;
    right: 10px;
    transition: width 1.5s;
}

.input{
    background-color: transparent;
    border: none;
    margin: 10px 50px;
    outline: none;
    color: rgb(100, 100, 100);
    width: 100%;
    transition: width 1s;
    transition-delay: .3s;
}

.small.search-bar-div{
    width: 50px;
}

.small .input{
    width: 0;
}

.small .mic{
    width: 0;
}