I think one of the best ways to get ideas for games is to play games. I played games many years before I started coding. Pokémon on GameBoy, SimCity, strategy games, World of Warcraft, Minecraft and lots of others, which had different elements that inspired me to make some game projects. I think if you enjoy playing some games, you will probably find some elements from them that you enjoy (maybe a levelling system, abilities, crafting, exploration) or maybe some story or environment from the games could inspire you.