Things are going unprecedentedly well. But I'm excessively busy. Who cares? I dont. So heres the real problem.
If you stand on a ladder, you have potential energy. If you fall from the ladder, that energy is turned into kinetic energy and then you hit the ground, a lower energy state. So when your on the ladder whats stopping you from falling right then; i.e. what allows you to "stand" on the ladder? Well, since you are stationary, the total force on you must be zero since force is the product of mass and acceleration (which is zero here). Well we know that gravity is pulling down on you, so there must be a force of equal strength but opposite in direction. This is the ladder pushing up on you, and its called the normal force for some reason.
So now we move to an atom. Electron can be on different steps on a ladder where the higher ones have more energy, like a literal ladder. if an electrons falls down from a step, it loses energy in the form of a photon being emmited and it lands on a different lower energy step. So if an electron is occupying one step, or orbital as they are called, i would think the net force on it would be zero*. So instead of gravity pulling down, here we have the electric force interaction, the negative electron is attracted to the positive nucleus. So then what is the opposite but equal force that cancels out the electric pull? I don't know, thats my question. By the pauli exclusion principle, no two electrons can occupy the same quantum state, where orbitals are essentialy the quantum states (technically you can put two electrons into a given orbital since electrons can have "spin up" or "spin down", but whatever). So the idea is that if you have say 6 electrons, they begin by filling the lowest energy orbitals and stack up from there, since they can't occupy the same 'quantum states' they are forced into higher and higher orbitals the more there are. Thats all good and fine, but what is the goddamn force opposing the attraction between the protons and electrons?
*well since they are always changing direction they do have an acceleration and therefore the net force isnt zero, but I dont think that aspect is the reason why they all dont collapse into the nucleus