The above is quoted from your pen. The @media is nested inside the header selector. Move it out so it is not nested and it will be seen by the test bucket.

As for the first issue. I think is best that you fork your pen, make the changes you think make the nav bar sticky, and then ask for help with the new pen linked in so people can see what you mean without have to touch your code too much.