Can someone please help me understand according to the electoral map during 1860-1868 (ref: https://www.270towin.com/historical-presidential-elections/timeline/) it was the democrat party that held the majority of the electoral votes where the confederate states were. I understand that due to secession, southern states of Alabama, Arkansas, Florida, Georgia, Louisiana, Mississippi, North Carolina, South Carolina, Tennessee, Texas and Virginia didn't participate. Overall I'm just wondering with this information, generally speaking, how and why has "Confederate values and culture" for the lack of a better term now become more Republican-based? Any and all information is appreciated.
The FAQ has a section on this topic under the heading "Changing role of Republicans and Democrats":