Currently, when the Pygame UI window is resized, all UI elements shift to the top-left corner of the screen. Instead, UI elements should dynamically reposition and scale themselves to maintain a consistent and user-friendly layout across different screen sizes.
The develop branch should be used as the base branch for this task.