Updated design.js to more accurately determine screen size and adjust content accordingly.