Geometry of the Gauss map and lattice points in convex domains