updates to the responsive nature of the css and markup and writes function to re-size chart on page re-size