To center an absolutely positioned element in Tailwind, give the parent relative and use absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 (for both axis) or absolute inset-0 m-auto if it has a fixed width/height.
relative
absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2
absolute inset-0 m-auto