What is the meaning of Dementia?

A progressive decline in cognitive function due to damage or disease in the brain beyond what might be expected from normal aging. Areas particularly affected include memory, attention, judgement, language and problem solving.

Madness or insanity.

dementia

madness, insanity

nominative/accusative/vocative neuter plural of dēmēns

Source: wiktionary.org