fixed the hidden problem caused by global hidden class

by using a :not selector instead of .hidden class (which is now a global state)