The main idea is the message the author is trying to say. The main idea should provide the story's importance, and the lesson or moral that can be learned from reading the story.
A stated main idea is when the author says the main idea right in the story where an implied main idea is where the author gives you clues to the main idea and you have to infer it.