changed css to use max for now