restructing the css media queries