updated media queries for box elements