split base and query styles into separate files

now it works both in iOS and in resizing the browser window