Lava is hot liquid rock. When lava flows over solid ground, the solid ground beneath it increases in temperature. What happens to the molecules in the solid ground when the temperature is increasing? The energy of the molecules in the ground decreases.
Extensive properties, such as mass and volume, depend on the amount of matter being measured. Intensive properties, such as density and color, do not depend on the amount of the substance present.