replace border with box-shadow

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