position: relative

See what happens if you remove the position: relative; from the container div in the css: the page number will no longer be in relation to this div but will place itself relative to the viewport, at the bottom of the page, 25em from left.

Page 5