The definition of headroom is the space between your head and something over your head such as a doorway or the top of a vehicle, or the space between a vehicle and bridges or other structures that may be over that vehicle.(noun)
The space you have been your head and the car's roof is an example of headroom.
See headroom in Webster's New World College Dictionary
See headroom in American Heritage Dictionary 4
Learn more about headroom