Remove @media queries way better than before

Had to change the way @media queries were removed, since it made conflict when using other types of queries (such as @keyframe). Since the script was looking for two `` } } `` to delete everything between it and the @media query, it was making an error, deleting a whole batch of CSS code when the `` } } `` were in fact closing something else than a @media, like @keyframe