diarrhea and anal sex

Okay, I've had anal sex before, but last night, it was much more pleasureable and relaxing.. I also started my period that night too. I woke up, got home and I've had diarrhea all day! Is this from having anal? Thoughts will be very useful as I'm worried and confused, thanks :)