added condition for small screen sizes to have a lesser margin top