refactored @media of styles