A320 right engine shut down midflight


I recently started to play with large airliners and started in the default A320 that come with msfs.

I had a flight planned from San Francisco to Portland which was about 2 hours. I planned the flight using the flight sim map and then started from a cold start.

Everything was going well until about 1.5 hours into the flight. My right engine just randomly turned off. I’m not sure what I did wrong or what could have caused it but I decided to check my fuel and I had 0% in the center tank. I decided to add some fuel to the center tank and restart the engine and it came back to life.

I’m positive I had the fuel pumps on and followed the checklists before take off. What could have caused this issue? Is there something I’m missing?