fixed css for small and medium modes