The Magnolia State voted for the Democratic nominee in 2- out of the 31 elections held between 1-2- ad 1956 , before switching to the Republican Party during the civil rights era , and it has voted for the Republican nominee in every election since 19-0 .