In partial eclipses, the three planetary bodies—the Earth, sun, and moon—are not perfectly aligned.
The Moon does not make its own light like a star. The Moon appears bright because it reflects light from the Sun. Like the Earth, half of the Moon faces towards the Sun, and half faces away from it.