Updated the css to properly handle the changes for ios8 safari for portrait and landscape mode