Read the following sentence:
"In the quiet of the library, her thoughts danced like leaves in the autumn wind, each idea fluttering briefly before settling into stillness."
Which type of figurative language is primarily employed in this sentence?