The phase of the moon that is visible from Earth depends on