data logic for mobile sorted in css, some desktop styling done