Period sex..

So sometimes me and my bf do it when I'm on my period and it's not a mess but like the other night it was .. Well I been on my period for 12 days it went away this morning was all good but I had sex today and well it got messes we used a condom. But why won't my period go away??!!