The Phases of Quantum Chromodynamics: From Confinement to Extreme Environments