change color of text depending on container