logic works but css does not