The Moon and the Sun can appear in the sky at the same time during specific circumstances. Here's an explanation:
The Earth is a sphere, and it rotates on its axis, causing the apparent movement of the Sun across the sky from east to west. The Moon also orbits around the Earth, and as it does so, it goes through phases, from New Moon to Full Moon and back again.
During certain phases of the Moon, particularly the First Quarter and Last Quarter phases, the Moon is visible in the sky during the day. This occurs because the Moon and the Sun are not exactly opposite each other in the sky but are separated by a certain angle.
For example, during the First Quarter phase, the Moon is approximately 90 degrees away from the Sun as observed from Earth. This means that at some locations on Earth, when the Sun is still above the horizon in the daytime, the Moon can also be visible, usually closer to the horizon.
However, it's important to note that the Moon and the Sun being visible at the same time is a local phenomenon. In different parts of the world, due to the Earth's rotation and the varying positions of observers, the Moon and the Sun may not appear together in the sky simultaneously.
It's also worth mentioning that during a solar eclipse, which occurs during the New Moon phase, the Moon aligns directly between the Earth and the Sun, causing the Moon to block the Sun's light and casting a shadow on a specific region of the Earth. In such cases, the Moon and the Sun are clearly visible together, but this is a relatively rare event that happens only during specific alignments of the three bodies.