Improve text centering and positioning in message boxes.