changed css to accommodate resizing