An easy test to see if it is the master cylinder...where the front and rear lines join at the tee, crack one loose just enough to get fluid to drip, then retighten. If pedal travel returns to normal, then the issue is with the master cylinder. The cylinder return hole is blocked and not allowing the pressure built, when applying the brakes, to release.