Due to some reason, the display flex property is stacking the elements on top of each other. Also, when I specify space-between, it spreads out unevenly.