added second media query to make smoother transitions