A piece of magnesium metal is placed in a jar filled with hydrochloric acid.  A lid is tightly fitted onto the jar so no gas can escape.  The magnesium dissolves in the acid and bubbles rise to the surface of the acid.  What has happened to the mass of the jar?