adjusted layout to use box-sizing border-box, padding, and z-index