Who wrote the Bible (or any chapters in it)?

As a curious Christian, I feel I should have some sort of understanding that a complete lunatic didn't just write each chapter of the Bible one night. Sorry if my question comes across as ignorant- I'm just a tad confused. :/ Thanks!
8 answers 8