handle @media sections in CSS, fixes issue 16 - thanks to Daniel Holbert for identifying this bug and suggesting rewrites
make sure inline style is also considered (resurrecting old fix)