I added the following to the p element, and it seems to do the job. The p element is absolute, while its parent is relative.
text-wrap: nowrap; left: 50%; transform: translate(-50%,0);