You can add this to your css and use
.center{
text-align: center;
margin: auto;
justify-content: center;
display: flex;
}
or if you want to keep
and be prepared in case its ever removed, add this to your css
center{
text-align: center;
margin: auto;
justify-content: center;
display: flex;
}