em and rem are relative to the font size of the parent element and the root element, respectively.