replaced hardcoded mobile device detection with media query