fixing the problem with media queries