What does "dementia" mean?

Dementia: Insanity; madness; esp. that form which consists in weakness or total loss of thought and reason; mental imbecility; idiocy.

Sources