Converted everything to border and shadow widths to floats to preserve precision