Fixed stylesheet linking.
Improved page dimension detection for mobile devices.