media queries redone to handle phone and tablet in both orientations