[SOLVED] How to center the image replacing the default loading spinner?

The default loading screen was always bothering me on each test of the game, so i decided to switch it to something simple, using the info from this thread and applying it to my game.css file.

1672666718019.png


Despite the other user saying, that this helped him a lot, I found a little problem with this solution, because the gif ended up being a little bit to the down and to the right, as if the game thought that the gif's origin point is at the top left corner. I do have a fullscreen script, but for those few moments before going fullscreen the loading screen is shown and it is still misaligned.

pB2N0aBOwW.png


I tried to change the position setting to "center" and it seemed to draw the picture at the same horisontal position, but at the top of the window instead.

RPGMZ_teLMq2e01G.png


Here's a list of plugins that I use right now:
Spoiler: Plugins
RPGMZ_vCvo6lKIXj.png

I tried to check if VisuCore might cause the problem, but checking the 1.3.0+ ver, checkbox (I have 1.6.0+) did not help at all. Other plugins (except for already covered fullscreen one) don't affect the resolution and the picture positioning within the game works totally fine.

Edit: I think, this problem has nothing to do with plugins, because turning them off didn't show any result in regards of the loading screen
Try also setting the #loadingSpinner height and width to your image size? I.e.
CSS:
#loadingSpinner {
    margin: auto;
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    width: 296px;  /* originally 120px */
    height: 326px; /* originally 120px */
    z-index: 10;
}
#loadingSpinnerImage {
    width: 296px;
    height: 326px;
    background-image: url('../img/system/loading.gif');
}
Seconding what caethyril said. The most likely reason for this happening is that you've defined an image with dimensions bigger than the element designed to hold it.
Try also setting the #loadingSpinner height and width to your image size? I.e.
It worked, thanks!

Original thread: https://forums.rpgmakerweb.com/threads/solved-how-to-center-the-image-replacing-the-default-loading-spinner.153692/