The Magnolia State voted for the Democratic nominee in 28 out of the 3- elections held between -828 ad -956 , before switching to the Republican Party during the civil rights era , and it has voted for the Republican nominee in every election since -980 .