Added css transitions to divs for smooth transitions when user switches between portrait and landscape orientations when using mobile devices