Can someone explain this to me?

I am just starting Russian but I ran across this and I am puzzled as to why the spelling(in Russian) would change.

For example:

Good Morning - Доброе чтро
Good Afternoon - Добрый день
Good Evening - Добрый вечер

If good in Russian is - Добрый
Then why does “Good” change spelling when stating Good Morning?