Wrote rules for media queries for max-width 980px and 560px.