Edited code to reflect media queries and test in Chrome Developer Tools