Fixes #12 and makes modals also adjust to smaller screens