Three-dimensional natural convection in a confined porous medium heated from below