Changed the font and color inversion logic

Before: If time is within a certain period (night period), text is white on black. Otherwise, black on white.

Now: If time is AM, then text is black on white. Otherwise, text is white on black.