matching up css with pause