:root CSS pseudo-class - CSS | MDN - MDN Web Docs
The :root CSS pseudo-class matches the root element of a tree representing the document. In HTML, :root represents the element and is identical to the selector html, except that its specificity (0-1-0) is higher than html's (0-0-1).
Source: developer.mozilla.org