When the document loads, the text is invisible because both the text and the background are the same color (white). When the user clicks the input button, the main area loses focus (called "blur") and this condition and changes the background color to make the text visible.
By reversing the colors, the same method could be used to make unwanted text invisible.