Restructured CSS and added media query.