For accepting answer
As stated in comments: you are missing meta
tag with viewport that is required for media-queries to take effect.
For accepting answer
As stated in comments: you are missing meta
tag with viewport that is required for media-queries to take effect.