There is also a difference between race and nationality.
Since "American" is a description of nationality, saying that "Americans are idiots who don't understand sarcasm" would not be racist at all, however it would be a gross generalisation.
Since "American" is a description of nationality, saying that "Americans are idiots who don't understand sarcasm" would not be racist at all, however it would be a gross generalisation.