Updated scaling mechanism to use percentage of screen size