media queries for the hiding transitions