If a point charge $q$ is placed inside a cube (at the center), the electric flux comes out to be $q/\varepsilon_0$, which is same as that if the charge $q$ was placed at the center of a spherical shell.
The area vector for each infinitesimallyinfinitesimal area of the shell is parallel to the electric field vector, arising from the point charge, which makes the $cosine$cosine of the dot product unity, which is understandable. But for the cube, the electric field vector, is parallel to the area vector (of one face) at one point only, i.e., as we move away from centre of the face, the angle between area vector and electric field vector changes, i.e., they are no more parallel, still the flux remains the same?
To be precise, I guess, I am having some doubt about the angles between the electric field vector and the area vector for the cube.