Here's a breakdown:
* The moon's position: The moon orbits the Earth, and its position relative to the sun and Earth changes constantly. Even when the sun is up, the moon can be in a position where some of its surface is illuminated by sunlight and visible from Earth.
* Moon phases: The moon's phases (new moon, waxing crescent, first quarter, waxing gibbous, full moon, waning gibbous, last quarter, waning crescent) are determined by the amount of sunlight reflecting off its surface. Even during phases where the moon appears to be only a sliver, a portion of the surface can still be illuminated by the sun.
* Atmospheric conditions: The clarity of the sky can also affect how easily you can spot the moon. On a clear, sunny day, the moon can be quite visible. However, on a hazy or cloudy day, it might be harder to see.
So, while we associate the moon with nighttime, it's perfectly normal to see it in the daytime, especially during certain phases of its cycle.