CheeseLord put it quite well.
However, be mindful that jumping into the subject of music theory will not get you writing epic music immediately. So you may be initially disappointed by what the knowledge will inspire - but it is essential information to internalize.
After you have a familiarity with music theory (namely intervals, chord theory, reading / writing music, and the standard nomenclature), start working your way into the subjects of counterpoint and harmony theory. In my opinion, counterpoint should come before harmony, but also studied in parallel.
During this time (yes, right now), you should be creating music in any way you can manage to do so (with a digital audio workstation, on staff paper, with a voice recorder, or just in your head as an idea). Even if you do not think you understand it, just do as best you can and don't let the results discourage you.
You will learn best through study, practice, and experimentation - but only if you are persistent.