bends downwards
goes horizontally without any deflection
bends upwards
becomes narrower
Every point on the horizontal ray of light behaves as a source of light. Thus the secondary rays which are directed towards denser medium would bend towards the normal. This phenomena causes the bending of the rays upwards.