replace border with outline

instead of border that changes size of box I suggest outline, it's better. and box-shadow for appearance.