The main idea is what the book is mostly about. The theme is the message, lesson, or moral of a book. By asking crucial questions at before you read, while you read, and after you read a book, you can determine the main idea and theme of any book you are reading.
Example of central idea-It is insufficient to say that the central idea of a story is about “loyalty” or “motherhood.” For example, a poorly written central idea for the story of Cinderella would say: "Cinderella is the story of a poor, servant girl who overcomes the cruelty of her family and lives happily every after with Prince Charming."
Example of Theme-Think love for example: love may be the topic, but learning to love yourself may be the theme. Themes are used to communicate important ideas and messages about issues that face the characters and the setting of a narrative.
I Hope ,It is helpful for you.