Original: Generally, "first shift" refers to the day shift, with "second shift" running from late afternoon to midnight or so, and "third shift" being the night shift.
Simplified: The "first shift" is in the morning, the "second shift" is in the afternoon and evening and the "third shift" is overnight.