What happens to air pressure and the amount of oxygen as the altitude increases in the earths atmosphere?

As altitude increases in the Earth's atmosphere, air pressure decreases and the amount of oxygen also decreases. This is because there is less air above pushing down on the air at higher altitudes, resulting in lower pressure. As a result, the molecules in the air are more spread out, including oxygen molecules, making the air thinner and containing less oxygen at higher altitudes. This can lead to difficulties in breathing and lower oxygen levels for those at high altitudes.