However, both democracy and republic have more than a single meaning, and one of the definitions we provide for democracy closely resembles the definition of republic given above: a government in which the supreme power is vested in the people and exercised by them directly or indirectly through a system of representation usually involving periodically held free elections.
So if someone asks you if the United States is a democracy or a republic, you may safely answer the question with either both or it depends.
https://www.merriam-webster.com/dictionary/republic
A republic and a democracy are identical in every aspect except one. In a republic the sovereignty is in each individual person. In a democracy the sovereignty is in the group.
Republic. That form of government in which the powers of sovereignty are vested in the people and are exercised by the people, either directly, or through representatives chosen by the people, to whome those powers are specially delegated. [NOTE: The word “people” may be either plural or singular. In a republic the group only has advisory powers; the sovereign individual is free to reject the majority group-think. USA/exception: if 100% of a jury convicts, then the individual loses sovereignty and is subject to group-think as in a democracy.]
Democracy. That form of government in which the sovereign power resides in and is exercised by the whole body of free citizens directly or indirectly through a system of representation, as distinguished from a monarchy, aristocracy, or oligarchy. [NOTE: In a pure democracy, 51% beats 49%. In other words, the minority has no rights. The minority only has those privileges granted by the dictatorship of the majority.]
https://www.1215.org/lawnotes/lawnotes/repvsdem.htm
Stay Safe ..... hope yer well.