period / unprotected sex

Okay so I had my period for 19 days.. it was kinda light and sometimes a brown color it finally stopped thank god but not I'm having stomach pain and unusual gas what could this be ladies?