improve css to work in safari