Push an 80 kg bookcase with 50 N. It does not move, so the floor must be pushing back with 50 N. Push with 150 N and it still does not move; now friction is 150 N. Static friction is not a fixed number. It rises to match your push, up to a ceiling of μsN. With μs=0.50 that ceiling is 0.50×784=392 N, so a 400 N push sets the bookcase sliding.
Its direction is decided the same way: static friction points whichever way prevents slipping. A box resting on a 20° ramp tends to slide down, so friction points up the slope with size mgsin20∘, no more. On a level floor with nothing pushing sideways, static friction is zero. When you walk, your foot pushes backward on the floor, so the floor's static friction on your foot points forward, and that is the force that moves you.
Contrast static with kinetic friction. Kinetic friction acts only once surfaces slip, and it has one value, μkN, usually below the static ceiling. A tire rolling without skidding uses static friction even though the car is moving, because the patch of rubber touching the road is momentarily at rest on it. The question is whether the surfaces slide against each other, not whether the object is moving.
Think of it like this. Static friction acts like a doorman who pushes back exactly as hard as you push, so a gentle push gets a gentle response and the door stays shut. The doorman has a maximum strength, μsN. Push harder than that and you burst through: the object starts to slide, and a weaker resistance, kinetic friction, takes over.
Core idea. Static friction matches whatever force would make the surfaces slip, from zero up to a limit of μsN; it is an inequality, and it equals μsN only at the instant slipping is about to begin.