changed the html and css to better suit varying device widths