When I was growing up, Americans (especially Replublicans) hated Russians and commies. How and when did this change?

As a kid, Russians were seen as pretty much dirt and as the enemy. Commies seemed like the most hated people.

Now I see the White House with not so thinly veiled support for Russia, and Republicans wearing “I’d rather be a Russian than a Democrat” shirts.

When and why did things shift?