html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
}

.header, .footer {
  width: 100%;
}

.header {
  width: 100%;
  background-color: #931507;
  border-bottom: 0px solid #000000;
  margin-bottom: 0;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0px;
  text-align: center;
  margin-bottom: 0;
  margin-top: 0;
}

.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px;
  color: #555;
  font-size: 14px;
}

.footer {
  background-color: #f2f2f2;
  color: #555;
  text-align: center;
  padding: 15px;
  border-top: 1px solid #ccc;
  font-size: 13px;
  margin-top: 0;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px;
  text-align: center;
  font-size: 13px;
  color: #555;
}

.ChemDoodleCanvas {
    /* === Positioning and Layout Resets === */
    position: relative !important;
    display: block !important;
    margin: 10px auto !important; /* Centers the sketcher */
    overflow: visible !important;
    text-align: left !important; /* Resets alignment for internal elements */

    /* === Box Model Reset === */
    box-sizing: content-box !important;
    
    /* === Your Styling === */
    border: 1px solid var(--border-color);
    border-radius: 5px;
}

/* This resets all elements *inside* the sketcher */
.ChemDoodleCanvas * {
    box-sizing: content-box !important;
}