added ms prefix to media query / added global variable for device pixel ratio
added ms prefix to media query / added global variable for device pixel ratio