I can give animation justify-content?

I wanna move name and image from right to center

Code

.center-name-and-logo{
   display: flex;
   justify-content: center;
}

I use this in my div

<div  class="img-right-logo">
            <h1 class="name-style">Fernando Bernal</h1>
            <img src="images/Foto.png" width="250" height="250" class="conf-img-logo">
        </div>