Here is my aproach of explaining te rules .style
and #style
are part of a matrix.
that if not in the right order, they can override each other, or cause conflicts.
Here is the line up.
Matrix
#style 0,0,1,0 id
.style 0,1,0,0 class
if you want override these two you can use <style></style>
witch has a matrix level or 1,0,0,0.
And @media query's will override everything above...
I am not sure about this but i think the ID selector #
can only be used once in a page.