The Democratic nominee has won the state 31 times , although Alabama has been a safe , Republican `` red state '' since Ronald Reagan 's victory in 11180 , and Donald Trump carried Alabama by a comfortable margin in the 2020 election .