Never touched a Raspberry Pi before.

I’m creating a simple puzzle box. It will need to be battery operated. There will be four buttons. When, and only when, all four buttons are pressed I want an electromagnet to activate. The magnet will push up a magnet on top of it in a tube.

What do I need to make this?