You have to replace the rule that came before it. So delete .container > div and target the search item with a class name. Also it might be worth considering that you won't see much of a difference on smaller screen sizes or with narrower flex containers.
I put together a visual explanation on Codepen to try and help to explain things and give working demos for you to see the effect in action.
.container > div
Hope this helps!
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.