I think that only a small minority of those who voted for Trump are racist idiots. Most have legitimate grievances that their government has not worked well for them. Many do not like the direction things have gone in this country in terms of social issues. Many are looking for solutions to complex world problems that will ease their fear of terrorism. Many feel that that rolling the dice with an unknown as President, someone who promises "change", is a better bet for them than continuing with the status quo (i.e., Hillary).
For me, Clinton's character issues are very troubling but Trump's are disqualifying. But now that he has been elected, my hope is that most of the crazy stuff he spouted represented a strategy for winning the election that he will abandon now that it has served his purpose. Historically, his political stances seem to have been quite moderate and I'm hopeful that he will govern that way. Time will tell.