During a first-quarter moon, the moon is located at a right angle (perpendicular) to the line between the Earth and the sun. This means that the first-quarter moon is positioned 90 degrees away from the sun when viewed from Earth. Therefore, the correct response is:
perpendicular to Earth and the sun.