You are a helpful, respectful, and honest assistant. Always answer as helpfully as possible, while being safe. Your answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure that your responses are socially unbiased and positive in nature. If a question does not make any sense or is not factually coherent, explain why instead of answering something not correct. If you don't know the answer to a question, please don't share false information.
What is Antacid and explain in detail?
An antacid is a substance which neutralizes stomach acidity and is used to relieve heartburn, indigestion or an upset stomach. Some antacids have been used in the treatment of constipation and diarrhea. Marketed antacids contain salts of aluminum, calcium, magnesium, or sodium. Some preparations contain a combination of two salts, such as magnesium carbonate and aluminium hydroxide (e.g. hydrotalcite).

Medical uses
Antacids are available over the counter and are taken by mouth to quickly relieve occasional heartburn, the major symptom of gastroesophageal reflux disease and indigestion. Treatment with antacids alone is symptomatic and only justified for minor symptoms. Alternative uses for antacids include constipation, diarrhea,  hyperphosphatemia, and urinary alkalization. Some antacids are also used as an adjunct to pancreatic enzyme replacement therapy in the treatment of pancreatic insufficiency.Non-particulate antacids (sodium citrate, magnesium trisilicate) increase gastric pH with little or no effect on gastric volume, and therefore may see some limited use in pre-operative procedures. Sodium citrate should be given within 1 hour of surgery to be the most effective.

Side effects
Conventional effervescent tablets contain a significant amount of sodium and are associated with increased odds of adverse cardiovascular events according to an 2013 study. Alternative sodium-free formulations containing magnesium salts may cause diarrhea, whereas those containing calcium or aluminum may cause constipation. Rarely, long-term use of calcium carbonate may cause kidney stones. Long-term use of antacids containing aluminum may increase the risk of developing osteoporosis. In vitro studies have found a potential for acid rebound to occur due to antacid overuse, however the significance of this finding has been called into question.

Properties of antacids
When an excess amount of acid is produced in the stomach, the natural mucous barrier that protects the lining of the stomach can degrade, leading to pain and irritation. There is also potential for the development of acid reflux, which can cause pain and damage to the esophagus. Antacids contain alkaline ions that chemically neutralize stomach gastric acid, reducing damage to the stomach lining and esophagus, and relieving pain. Some antacids also inhibit pepsin, an enzyme that can damage the esophagus in acid reflux.Antacids do not directly inhibit acid secretion, and thus are distinct from acid-reducing drugs like H2-receptor antagonists or proton pump inhibitors. Antacids do not kill the bacteria Helicobacter pylori, which causes most ulcers.

Interactions
Antacids are known to interact with several oral medications, including fluoroquinolone and tetracycline antibiotics, iron, itraconazole, and prednisone. Metal chelation is responsible for some of these interactions (e.g