Which phrase is the best definition of mood used in literature?

A.) the location of a story

B.) the atmosphere of a story

C.) the attitude of the writer

D.) the traits of the characters