    
    @import url('https://fonts.googleapis.com/css2?family=Latin+Modern+Roman&display=swap');



  .math-display, .katex-display, .MathJax_Display {
  font-size: 1.5em;
}  
   

    /* header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px 2cm;
      border-bottom: 2px solid #000;
    }

    header img {
      height: 100px;
    } */

    header h1 {
      text-align: center;
      font-size: 2.5em;
      margin: 0 auto;
      font-weight: bold;
      flex: 1;
    }

    /* main {
      column-count: 2;
      column-gap: 2rem;
      padding: 1.5cm 1cm 2cm 1cm;
    } */

   .section-title {
  background-color: green;
  color: white;
  text-align: center;
  padding: 5px;
  font-weight: bold;
  margin-top: 1em;
  break-inside: avoid;
  page-break-inside: avoid;
  break-before: avoid;
   break-after: avoid-column;
   break-before: avoid-column;
}
    .tip-box {
      border: 2px solid blue;
      border-radius: 5px;
      overflow: hidden;
      margin: 10px 0;
    }

    .tip-box-title {
      background-color: blue;
      color: white;
      font-weight: bold;
      padding: 5px 10px;
      text-align: center;
    }

    .tip-box-content {
      background-color: white;
      color: black;
      padding: 10px;
      font-weight: bold;
    }

    .center {
      text-align: center;
    }

    h3 {
      break-inside: avoid;
    }

    p, ul, ol {
      break-inside: avoid;
    }

    .red { color: red; }
    .blue { color: blue; }
    .green { color: green; }
    .orange { color: orange; }

.formula-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;  /* centers the content horizontally */
  gap: 1rem;
  margin: 1rem 0;
  text-align: center;
}
.monomial-box {
  text-align: center;
  margin: 2rem 0;
  position: relative;
  display: inline-block;
}

.monomial {
  font-size: 2.5rem;
  margin: 0.5rem 0;
}

.red {
  color: red;
}

.blue {
  color: blue;
}

.arrow-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.arrow-label.top {
  position: absolute;
  top: -3rem;
  left: 65%;
  transform: translateX(-50%);
}

.arrow-label.bottom {
  position: absolute;
  bottom: -3rem;
  left: 35%;
  transform: translateX(-50%);
}

.arrow {
  width: 2px;
  height: 1.5rem;
  background-color: black;
}

.label {
  font-size: 0.9rem;
  margin-top: 0.2rem;
}

.column-centered {
  width: 100%;
  display: flex;
  justify-content: center;
}

.function-diagram {
  display: flex;
  justify-content: center;
  margin: 1em 0;
}

.graph-container {
  text-align: center;
  margin: 1em 0;
}

.math-block {
  text-align: center;
  font-size: 1.2em;
  margin: 1em 0;
}

.graph-container img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  width: 40%; /* or a fixed size like 400px */
}

.area-table {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: flex-start;
  justify-content: space-around;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.area-diagram {
  flex: 1;
  text-align: center;
}

.area-formula {
  flex: 1;
  font-size: 1.2rem;
  text-align: left;
}

.center-svg {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1rem 0;
}

.two-column-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-start;
  margin-top: 1.5rem;
}

.two-column-grid .column {
  flex: 1 1 45%;
}

.two-column-grid .diagram svg {
  display: block;
  margin: 0 auto;
  max-width: 100%;
}

.two-column-grid .math p {
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: left !important;
  margin: 0;
}

/* Force left alignment on MathJax containers */
.two-column-grid .math,
.two-column-grid .math p,
.two-column-grid .math mjx-container {
  text-align: left !important;
}

section,
h3 {
  scroll-margin-top: 20px; /* Adjust to match or exceed your header height */
}