Updated CSS with transitions