Question Computer turns off but fan is still running

Jun 19, 2019
2
0
10
I dont know much about computers.
I turn it on and if im idling. Nothing happens but when I open up a game. After a while (20 to 30 minutes) it turns off but the fan is still running. I don't think its because of the game because I can run it nicely at 230 fps but I don't know if it could be anything else.
Help is appreciated :)