Why does the order of media queries matter in CSS?
That’s by design of CSS — Cascading Style Sheet. It means that, if you apply two rules that collide to the same elements, it will choose the last one that was declared, unless the first one has the !important marker or is more specific (e.g. html > body vs just body, the latter is less … Read more