Tip: set padding and margin to zero in the root (*, or root: ) in CSS.
All elements come with a default value for both and your numbers are added on top, what can lead to unwanted behavior.
You can watch your text having more room instantly when you set both values to zero in the root CSS.