Switching to CSS transform for centering the overlay