A candle and beaker of pink phenolphthalein solution are placed inside a jar. The candle is lit and the jar is capped. The flame expectedly goes out as the oxygen is depleted. After the flame is extinguished, the pink solution slowly fades to colourless. What has happened inside the jar?