There's a whole section of the FAQ devoted to this as it comes up a lot - hopefully the answers there will help you! https://www.reddit.com/r/AskHistorians/wiki/us_history under the "changing role of Republicans and Democrats" section. This isn't to discourage further answers at all!