add function & CSS style that turns text green if remaining amount of text is > 50