
* {
  box-sizing: border-box;
  margin: 0;
}
.centeredImg {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

  body {
    font-family: "Segoe UI", Tahoma, sans-serif;
    line-height: 1.6;
    background-color: #fdfdfd;
    margin: 20px;
    color: #222;
  }

  h4 {
    margin-bottom: 1rem;
    color: #444;
  }

  ul, ol {
    list-style: none;
    padding-left: 1rem;
    margin: 0;
  }

  li {
    margin: 0.3em 0;
  }

  a {
    text-decoration: none;
    color: #0056b3;
    font-weight: 500;
  }

  a:hover {
    color: #003d80;
    text-decoration: underline;
  }

  details summary {
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    background-color: #e7f1ff;
    padding: 0.4em 0.6em;
    border-radius: 6px;
    margin-bottom: 0.4em;
    box-shadow: 1px 1px 4px rgba(0,0,0,0.05);
  }

  details[open] summary {
    background-color: #d0e6ff;
  }

  details summary a {
    color: #222;
  }

  details summary a:hover {
    color: #0056b3;
  }

  ol li ul {
    margin-left: 1rem;
    padding-left: 0.8rem;
    border-left: 2px solid #ccc;
  }

  ol li ul li {
    margin: 0.2em 0;
  }


/* old body
body {
  font-family: Arial, sans-serif;
  line-height: 1.8;
  font-size: small;
  margin: 20px;
}
  */

iframe {
  width:100%;
  height:150px;
  border-style:groove;
  background:lightcyan;
}

/*  Table adjustments
td TABLE DATA
tr TABLE ROW
th TABLE HEADER

table {
  font-family: arial, sans-serif;
  border-collapse: collapse;
  width: 80%; Adjust overall table width relative to container
  width: 600px;Fixed width
  height: 400px; Fixed height
  table-layout: fixed; Ensures uniform column widths
}

COLUMNS
td, th {
  border: 1px solid #dddddd;
  text-align: left;
  padding: 10px; Space inside cells
  width: 150px; Set column width 
}

ROW HEIGHTS
tr {
  height: 50px; Set row height 
}

ONLY THE SECOND ROW'S HEIGHT IS SET
tr:nth-child(2) {
  height: 60px; Example: Specific row height
}

td:nth-child(1), th:nth-child(1) {
  width: 200px;  Example: Specific column width 
}
td, th {
  padding: 10px; Space inside cells
}
table {
  border-spacing: 5px; Space between cells 
  }
UNIFORM COLUMN WIDTHS
table {
  table-layout: fixed;
  width: 100%;
}
DIVIDE EQUALLY FOR 3 COLUMNS
th, td {
  width: 33%; /* Divide equally for 3 columns
}

*/
table {
  font-family: arial, sans-serif;
  font-size: 12px;
  border-collapse: collapse;
}
td, th {
  border: 1px solid #dddddd;
  text-align: center;
  padding: 1px; 
  height: 13px;
}
tr {
  height: 20px; 
}

.figureContainer {
  display: flex;
  align-items: center; 
  padding-left: 10px;
}
.figure{
    float: left;
  padding: 5px;
}



.TOC{
  background:lightcyan;
  border-style:groove;
}
.no-underline {
  text-decoration: none;
  color: #0066cc;
}

.no-underline:hover {
  text-decoration: underline;
}


article {
  margin-bottom: 30px; /* Add space between articles */
}

/* old articel h4
article h4 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.2em;
  color: #333;
}
*/
article p {
  margin: 5px 0;
  font-style: italic;
}

article ul {
  padding-left: 20px;
}

article ul li {
  margin-bottom: 8px; /* Add space between list items */
}
.pythonCode {
  background-color:darkblue;
  color:lightgoldenrodyellow;
  font-family: monospace;
}
.equationDerivations {
  background-color:aliceblue;
  color:darkblue;
}

.toc {
  max-width: 800px;
  margin: 0;
  padding: 0;
}
.toc h2 {
  color: #333;
  margin-bottom: 10px;
}
.toc ul {
  list-style-type: none;
  padding: 0;
}
.toc li {
  margin: 5px 0;
}
.toc a {
  text-decoration: none;
  color: #0066cc;
}
.toc a:hover {
  text-decoration: underline;
}

.navbar {
  overflow: hidden;
  background-color: rgb(33, 51, 85);    
}
.navbar a {
  float: left;
  display: block;
  color: rgb(249, 250, 214);
  text-align: center;
  padding: 14px 20px;
  text-decoration: none;
}
.navbar a.active {
  background-color: dimgray;
  color: darkslategrey;
}

.idx_nav {
  font-family: sans-serif;
  font-size:x-small;
  background-color: hsl(200, 27%, 74%);
  padding: 2px;
  display: flex;
  flex-wrap: wrap;
  height:50px;
  align-items: center;
}

.idx_select, .idx_input{
  font-family: sans-serif;
  padding: 0.5em;
  font-size: x-small;
  height:25px;
  width:80px;
}

.idx_button {
  font-family: sans-serif;
  padding: 0.5em;
  padding-left: 4px;
  font-size: x-small;
  height:25px;
  width:25px;
  border-radius:10px;
  background-color:#001bcc;
  color: #e7f1ff;
}
.idx_button:hover {
  background-color:#75c070;
  color: #e7f1ff;
}

#idx_results {
  margin: 1em;
}


.column {
  float: left;
  width: 33.3%;
  margin-bottom: 16px;
  padding: 10px 8px;
}

@media screen and (max-width: 600px) {
  .column {
    width: 100%;
    display: block;
    margin-bottom: 20px;
  }
}
.row::after {
  content: "";
  clear: both;
  display: table;
}
.card {
 /* box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);*/
  margin: 8px;
}

.container {
  padding: 0 16px;
}

.container::after, .row::after {
  content: "";
  clear: both;
  display: table;
  max-width: 1400px;
  margin: auto;
}

.title {
  color: grey;
}

.majorDivs{
  padding: 40px;
  max-width: 1400px;
  margin: auto;
}
.proofs {
  background-color:lightcyan;
  color:brown;
}
