What caused relations to deteriorate between the United States and the Soviet Union in 1979?

What caused relations to deteriorate between the United States and the Soviet Union in 1979? The United States invaded Afghanistan to prevent the spread of Communism. The Soviet Union invaded Afghanistan to help its Communist government. The Shah of Iran entered the United States, which angered Communists.