improved graphic and media queries