Resize the text when window size changes