This article goes into detail about each State’s current policy in national elections regarding “winner takes all”. In short, if you win Florida by 1 vote, you win ALL 25 electoral votes, not 13.
Wouldn’t it be great if we just had the popular vote elect the president? That would mean that a dozen hicks in North Dakota would get less attention than say a million people in Oakland. Cities might get cleaned up! I can dream, can’t I?