Air or master cylinder

air will not normally do that, air in lines normally gives you a mushy or no pedal and then as you pump it, you will get a firmer pedal... then take your foot off for a minute, and no pedal again. This sounds like master cylinder or a leak somewhere.