Hello, Elliot. You did the right thing in reaching out.
I do not make a habit of recycling answers, but as it so happens, another poster was having a crisis of faith, and I believe the comment I gave to them applies to you as well.
First and foremost, I am a Humanist; I believe in the nobility of the human spirit, and I believe in the glory of mankind's drive to prevail.
The thing about religion that never sat well with me was the constant push to attribute everything to one outside source or another, it always seemed like a blame game; everything good came from God, and everything bad came from whatever name people chose to give to the bad guy, be it Satan, Lucifer, the Devil, what-have-you.
Even at a very young age, the question occurred to me; what if I do something right? Why is because God did something "through" me? It was my idea to do the right thing, I didn't feel "divinely inspired", so why does someone else get credit for my actions? This also applies to my negative actions; why is it that if I decide to be a jerk, or mistreat someone or something that it is someone else's fault? Why is it some great "Enemy" acting "through" me? Where is the part where I am responsible for my actions? What am I? A puppet for one spirit or another? Am I just chopped liver on a divine chess board or am I a human being? It was when that question occurred to me at twelve years old that I decided I would no longer believe in God.
That is all the religion-bashing I will do in this post.
I know very well the struggle going on in your mind and with your emotions. The thousands of deeply disturbing questions about the nature of things and the reasons things happen when there is supposed to be an all-powerful, all-loving Father God watching over you. Your questions are very valid.
Instead of focusing on pleasing God, you focus on what things in your life need to be fixed and look at yourself. It is your hands that do or do not make things better in your own life. It is your own feet that do or do not carry you to solutions to your problems, and it is your mind that does or does not focus on the solution and help you fix your life. Do not worry about some afterlife, because you have a life happening right now before your eyes, and it is your happiness or your misery in this life that affect the kind of person you are. Be the human that you are and re-teach yourself to love yourself for your own merits, or to discipline yourself for your own failures.
Have faith in that person in the mirror, because you live with that person every minute of every day, and that person in the mirror is questioning why they even try. You need to help yourself understand; that understanding begins with yourself, and it is never easy, but it is worth the struggle. You are worth the effort.
"You, yourself, more than anyone else in the universe, deserve your love and affection." - Buddhist Aphorism.
You have one life, do not be afraid to live it, and do not let anyone try to make you afraid to live it, and because it will one day end, it is therefore precious and needs to be protected. You are the first and last line of defense in your own life.
If there is an afterlife, we will handle it when we get there. Until you come to what is before you, focus on what is upon you.
There is one bit of comfort in all of this, and that is that your life belongs to you, it is your very own, and noone has claim to it. If you succeed, then it is because you did something right, and you can be proud of yourself. If you did something wrong, then that failure also belongs to you, and you are your own judge, to discipline yourself and improve at your discretion. Your life is at the hands of your will, and the only way anyone else can come to control it is if you allow them to take it, because the human spirit can conquer any fear, overcome any obstacle, and can choose to fight until the very last breath of life for whatever it wants. Choose to control your own life, and do not relinquish that control for anything.
You have the strength to take hold of your life, because you are still alive. The only thing that stops a human being from pursuing their happiness is their own choice to give up, or death.
I hope something I've said gives you some measure of perspective, and if you feel that you need someone to talk to; if you feel like you might hurt yourself or someone else, please contact the National Suicide Prevention Lifeline at 1-800-273-8255. Their lines are open 24 hours a day.
Never forget that you matter, and you are not alone.