In short: You really don’t want to be using HTML or CSS for the game. You want to learn a game engine.
I learned how to do this here : How to make a simple HTML5 Canvas game
. It is a good place to start.
Play with the framework (make it work!), read the tutorial and take it slow. Remember even if you get 1% better a day it is a great success!