Dynamic background for attribute

I want to monitor the status of my devices from time to time to make sure everything is in good order. I stole some css on this forum and added a pair of tiles for the same device, one battery another last acivity. (I wish all this would be possible to do in a single tile though, so there wold be only a one place to look at the device, but it does not seem to be possible at the moment )
My question is is it possbible to change the background color of the second tile red if for example the last update time is more than 12 hours.hubitat dashboard