Fix @media rules and footer