Why do our eyes adjust to a dark room?

You flip off the lights and everything goes black. Can't see your bed, can't find your socks, can't tell if that dark blob is your backpack or a small bear. But wait two minutes in the darkness, and suddenly you can see again — shapes emerge, edges sharpen, the room comes back. What just happened?
Your eyes have a clever trick built in, and it all happens in the back of your eyeball. Light comes through your pupil — that black circle in the center — and hits a wall of special cells called the retina. The retina is like a movie screen made of tiny sensors. When light touches those sensors, they send "I see something!" messages to your brain.
