The whole idea behind gauss's law is to quantify the amount of the electric field flowing across a boundary. Picture the a charge as a water fountain the sprays water up, down, left, right, upright, upleft, etc. Now you put bubble around that water fountain, and you want to know how much water is leaving that bubble, will it matter whether that bubble is a sphere, a cube, a pyramid, some incredibly odd surface? No, because the amount of water leaving will always be the same. I could put the bubble a couple inches away, or put it a few feet away (barring gravity), and the same amount of water will always be leaving it. Physics calls this concept flux, how much stuff flows out of a surface area. Does that help?