Explicitly defining a top
CSS property to one element within a block of elements and neglecting the same property for the rest in the block will surely behave in a irresponsive manner.
Add the top
property to the rest of the switch_lines
elements or remove it completely