it's quite clear.
You use good morning in the morning
Good afternoon in the afternoon
Good evening in the evening, which comes just after the afternoon
and Good night is for final goodbyes in an evening, or before you go
to sleep .