added media query for cross-browser compatibility