Your opponent dropped his queen for your bishop on move 9.
After that you blundered back a piece (10.. Nxe5) and then you won a rook ( after 18 Bxc7) and then you blundered it back after (20..Qc2).
But finally, your queen was able to win against his rook and bishop.