def align_center(background_width: int, foreground_width: int, distance_top: int = 0):
    """Return the tuple necessary for horizontal centering and an optional vertical distance."""
    return background_width // 2 - foreground_width // 2, distance_top