What makes Nationalism acceptable?

Racism is the feeling that you are superior to others because of their color or there looks.

Nationalism is the belief that your nation, usually of birth, is better than any other. How is this different from racism?