Simply put, states elect their leader. Citizens of each state select the leader they prefer.  States elect the President of the UNITED STATES!  

Elected you could say by the states popular vote count.

Is it perfect?  No! Is it fair? Depends on which candidate you supported.