Orgasm in gym class???????

Welp I am in high school and just shaved my “down stairs area”. I am a virgin and all that still (and happy to be one) and do masturbate from time to time but never actually knew if I’ve had an orgasm before. So I was running in gym and had kind of small underwear on that are tight to my area and when I was running the moved and felt kind of good but I ignored it not thinking much of it. Well eventually while I was still running it started to get super warm down there and almost felt like I was having my period because a lot came out. I ignored it but found it hard to run. Then after gym class I checked in the bathroom and it looked almost like a ton of discharge. Like there was white stuff everywhere! I’m sorry this is pretty gross but I’m just confused on what that actually was. And tbh pretty disgusted with myself.