/* html {overflow: auto; }   hides scrollbar in IE if page doesn't need it */

body { 
  color:black;
  font-family: Verdana, Georgia, "Times New Roman", san-serif;
  line-height: 150%;
  /*font-size:20px;*/
 /* background-color:#FFFFFF; */
  }
  

h2.banner {
   color:#ffffff; 
   background-color: #0052cc;   /* #663300; */
   margin-top:0px;
   margin-bottom:0px; 
   font-weight: bold;
   font-size: 200%;
   font-family: Georgia,"Times New Roman", serif;               /* "arial", serif;  */
   padding:20px;}

h1.banner {
   color:#ffffff; 
   background-color: #0052cc;   /* #663300; */
   margin-top:0px;
   margin-bottom:0px; 
   font-weight: bold;
   font-size: 200%;
   font-family: Georgia,"Times New Roman", serif;               /* "arial", serif;  */
   padding:20px;}

/*---------------------------------------------------------------------------*/
/* Menu Navigation Bar                                                                  */
/*---------------------------------------------------------------------------*/

#nav, #nav ul, #nav li {
   font-size: 12px;    /* to prevent font resize for IE user "text size" */
   border: 0;
   margin: 0;
   padding: 0;
}

#nav {
   font-weight: bold;
   background: #0052cc  url("headerbg2.jpg") repeat-x bottom;  /*#663300;   /* #c28566;  */
   
   border-top: 1px solid #9d9d74;
   border-bottom: 1px solid   #9d9d74; 
}

#nav a {
   color: #ffffff !important; /* #e8ecf2;  */
   text-align: center;
   text-decoration: none;
   padding: 0 15px;
   border-left: 1px solid #9d9d74;
   border-right: 1px solid #9d9d74;
   border-top: 1px solid #9d9d74;
   border-bottom: 1px solid #9d9d74;     /* turn off dotted underline on links */
   height: 50px;         /* height, line-height vertical centering trick */
   line-height: 50px;    /* set line-height = height for vertical centering */
   display: block;
}

#nav a:visited {color: #ffffff !important;}  

#nav ul {
   list-style: none;
}


#nav li {
   background: #0052cc url("headerbg2.jpg") repeat-x bottom;    
   float: left;
}

/* manual vertical centering */
/* NOTE:  (2*line-height + padding-top) = #nav a height */
#nav li.doubleline a {
   line-height: 15px;
   padding-top: 10px;
   height: 40px;            /* nav.a.height - padding-top */
}

/*  #nav a.first, #nav li a:hover.first, #nav li.selected a.first, #nav li.selected a:hover.first {
   border-left: 1px solid #9d9d74;
  }*/

/* use to prevent floated div layers from escaping their containers */
/* cf. http://www.apple.com/global/styles/base.css */
.clear {
   clear: both;
 /*  display: block;
   margin: 0;
   padding: 0;
   height: 0;
   line-height: 0;
   font-size: 1px;    */
}



#nav li a:hover {
   color: #0052cc;  
   background:  #a9d6f7; 
   border-left: 1px solid #9d9d74;
   border-right: 1px solid #9d9d74;
   }



  

li.category {
  font-family:  "Verdana", serif;
  }

.headingcolumn {
float: left;
text-align: center;
line-height: normal;
margin-top: 20px;
width: 20%; } 

h4.heading {
margin-top: 0px;
text-align: center;
}

p.heading {
margin-top: 0px;
text-align: center;
font-weight:bold;
} 

h3.heading {
margin-top: 0px;
text-align: center;
font-weight:bold;
font-size:16px
}

.textcolumn {
float: left;
width: 75%; 
margin-top: 20px;
}  

.textparacolumn {
float: left;
width: 75%; 
}

.content {
margin-left: 10%;
margin-right: 10%; }

.LeftColumnHome {
float: left;
width: 45%;
}

.RightColumnHome {
float: left;
width: 50%; 
 }

/*.with-action:hover {
     cursor: pointer;
} */

/* The normal state */
.with-action {
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  cursor: pointer; /* Makes the hand icon appear */
  transition: background-color 0.3s; /* Makes the color change smooth */
}

/* The hover state */
.with-action:hover {
  background-color: #e0e0e0;
  border-color: #999;
}

.toggle {
  background-color: #f0f0f0;
  cursor: pointer; /* Makes the hand icon appear */
  transition: background-color 0.3s; /* Makes the color change smooth */
}

#tablePic a, img {
   outline: none;
   text-decoration: none;
   border: none;
}

#credit {
   color:#ffffff;
   background-color: #0052cc;
   font-size: 80%;
   font-weight: bold;
   margin-top: 0px;
   margin-bottom:0px;
   padding:10px;
   }
   
#credit a {
   color: #ffffff;
   text-decoration: none;
   }
   
   
#footer {
   color:#ffffff;
   background-color: #0052cc;
   font-size: 60%;
   font-weight: bold;
   line-height: normal;
   margin-top: 20px;
   margin-bottom:0px;
   padding:10px;
   }
   
#footer a {
   color: #ffffff;
   text-decoration: none;
   }
   
/* Breadcrumb Styles */


a.breadCt {
  font-weight:bold;
  font-size: 2px;}
  
p.center {
  text-align:center
  }
  
img {
  max-width: 100%;
  height: auto;
}

img.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
  
video {
  max-width: 100%;
  height: auto;
}

table.center-table {
        margin-left: auto;
        margin-right: auto;
    }


a.button-style {
  display: inline-block;          /* lets padding work properly */
  padding: 8px 10px;
  background-color: #2563eb;       /* blue */
  color: #ffffff;
  text-decoration: none;           /* remove underline */
  font-weight: 300;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

a.button-style:hover {
  /* Darken the variable color on hover (or use another variable) */
  filter: brightness(140%);
}

.button:hover {
  background-color: #1e40af;       /* darker on hover */
}

.button:active {
  transform: translateY(1px);      /* subtle press effect */
}


.custom-table table,
.custom-table tr,
.custom-table th,
.custom-table td {
  border: 1px solid black;
  border-collapse: collapse;
  padding-top: 0px;
  padding-bottom: 3px;
  padding-left: 8px;
  padding-right: 8px;
  text-align: center;
  vertical-align: middle;
}

.nowrap {
    white-space: nowrap;
}

/* IFS functions and description */
.ifs-list {
    display: grid;
    grid-template-columns: max-content max-content;
    gap: 1.25em 2em;
    align-items: center;
    justify-content: center;
}

.ifs-formula {
    white-space: nowrap;
}

.ifs-description {
    line-height: 1.4;
}

@media (max-width: 700px) {

    .ifs-list {
        grid-template-columns: 1fr;
        gap: .3em 0;
    }

    .ifs-description {
        margin-bottom: 1.2em;
        padding-left: 1em;
    \\    color: #555;
    }

}

/* Centers the entire container on the page and creates the columns */
.image-comparison-container {
  display: grid;
  /* Creates two columns that dynamically share space */
  grid-template-columns: repeat(2, auto); 
  /* Creates space between the two columns */
  column-gap: 2rem; 
  /* Centers the grid block inside its parent container */
  justify-content: center; 
  margin: 0 auto;
}

/* Handles alignment for each image/caption group */
.comparison-item {
  display: flex;
  flex-direction: column;
  align-items: center; /* Centers everything horizontally (text-align: center) */
  margin: 0;
}

/* Pushes the images to align at the bottom, matching your vertical-align: bottom */
.image-wrapper {
  display: flex;
  align-items: flex-end; 
  flex-grow: 1; /* Allows the wrapper to fill space so shorter images align to the bottom */
}

/* Optional styling for your labels */
.comparison-item figcaption {
  margin-top: 0.5rem;
  margin-bottom:1rem;
  text-align: center;
}

/* Responsive adjustments for mobile screens */
@media (max-width: 600px) {
  .image-comparison-container {
    /* Changes the grid from 2 side-by-side columns to 1 vertical column */
    grid-template-columns: 1fr;
    
    /* Adds vertical space between the items when they stack */
    row-gap: 2.5rem; 
  }

  .image-wrapper {
    /* Resets the bottom alignment since they are no longer side-by-side */
    align-items: center; 
  }
}

.image-grid {
  display: grid;
  /* Automatically sets columns between 250px and the available space */
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  align-items: end;
}

.image-grid figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
}

.image-grid img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.image-grid figcaption {
  margin-top: 2px;
  text-align: center;
}

mjx-container[jax="CHTML"] {
    white-space: nowrap;
}