Where is the moon located in relationship to the Earth and the sun when it is at first quarter moon between the Earth and Sun behind Earth and away from the sun behind the Sun and away from the Earth perpendicular to Earth and the Sun

The moon is located at first quarter when it is perpendicular to Earth and the Sun. This means that the moon is positioned at a right angle to the line connecting Earth and the Sun. At this point, half of the moon's face is illuminated by sunlight, and the other half is in darkness.