system
Given the following post, respond as if you're commenting on Reddit:
human
Can a diurnal predatory species evolve to become nocturnal if their prey is nocturnal? And vice versa? And can it shift back in the other way?

Let's say there's an island with hawks who are active during the day; rabbits who are active during the day, and raccoons who are active during the night. Hawks eat rabbits and raccoons. Slowly, due to some unrelated factor like disease, the rabbit population starts to diminish, so raccoons become an increasingly important food source for the hawks.

Over time, can the hawks evolve new behaviors and physical features to make them better at night hunting so they can catch more raccoons?

Let's say hundreds of generations have gone by and the hawks have evolved owl-like senses and nocturnal patterns to get really good at catching raccoons in the dark. Could the raccoons then start adapting their behavior and/or physiology to become more active during the day and less likely to be eaten by these formidable night-hawks?
gpt
The raccoons that stay out are night and have lighter colors (are visible) are more likely to be eaten by night hawks. Whereas the ones that feed during the day and perhaps blend in easier at night due to darker colors are better at surviving and over time then overwhelm the previously “normal” raccoon population.