Changed the main div class and added media query style for better layout on smaller devices.

On smaller devices, the layout will shift the sidebar to the top of the
page, with the main content area following immediately below. No more
scrolling to the side when reading on iPhone.