Style changes. Mathjax only on latex pages. Use flexbox for mobile support