updated example to use media queries