readjusts the size of the text upon change of viewport size to prevent overflow