body { overflow-x: hidden!important; }

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    align-items: stretch; /* Allow child elements (like header) to stretch */
    justify-content: flex-start; /* Align content to the top */
    min-height: 100vh;
    box-sizing: border-box; /* Include padding and border in width/height calculations */
}


header {
    background-color: #1d3557;
    width: 100vw; /* Ensure the header spans the full viewport width */
    padding: 20px 0;
    text-align: center;
    color: #FFF;
    font-size: 18px;
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    align-items: center;
    justify-content: center;
    box-sizing: border-box; /* Include padding in the width calculation */
}

#header {
    width: 100vw; /* Ensure full viewport width */
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Include padding in width calculation */
}


header h1 {
    font-size: 24px; /* Larger size for the title */
    margin: 5px 0;   /* Add some spacing */
}

header small {
    font-size: 16px; /* Smaller size for the tagline */
    margin: 0 10px;
}

header img {
    height: 75px;
    margin: 0 0 10px 0;
}

a {
    color: #666;
}

a:hover {
    text-decoration: none;
}



.clearfix {
    width: 90%; /* Or any specific width you prefer */
    margin: 0 auto; /* Centers the container horizontally */
    box-sizing: border-box; /* Ensure padding and border are included in width calculations */
}

.content, .iframe-container {
    width: 90%; /* Or adjust to fit your design */
    margin: 20px auto;
    padding: 15px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: #333;
    line-height: 150%;
    box-sizing: border-box; /* Include padding and border in width calculations */
}

.content-alt {
    width: 49%; /* Adjust width to fit two divs side by side */
    float: left;
    box-sizing: border-box; /* Ensure padding and border are included in width calculations */
}

.clearfix .content-alt:last-child {
    margin-right: 0; /* No margin on the last div */
margin-left:2%
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}
.iframe-container {
    width: 90%; /* Ensure the container spans the full width */
    margin: 20px auto; /* Center the container horizontally */
    padding: 15px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center; /* Center content inside the container */
}

.iframe-container iframe {
    height: 400px; /* Set a fixed height */
    border: none; /* Remove border for a cleaner look */
    width: 330px
}

footer {
    text-align: center;
    font-size: 0.9em;
    color: #666;
border-top:1px solid #CCC; width:90%;
margin:0px auto;
padding:20px 0 20px 0
}

.indent {
    padding-left: 20px;
    border-left: 1px solid #CCC;
overflow:auto;
}

.content h2:not(:first-of-type) {
    margin-top: 40px;
}

.nav {
    text-align: center; /* Center the text */
    margin-top: 20px;
line-height:200%;
font-weight:bold
}

@media only screen and (max-width: 767px) and (orientation: portrait) {
 .nav { font-size:85% }
}


.nav a {
    color: #000;
    text-decoration: none;
    margin: 0 10px 0 5px; /* Space between links */
}

.nav a:hover {
    text-decoration: underline; /* Optional hover effect */
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

input, textarea {
    width: 90%;
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

textarea { resize:vertical; height:100px; margin-top:20px; font-family:sans-serif }

button {
    background-color: #1d3557;
    color: #fff;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    width: 90%;
}

button:hover {
    background-color: #457b9d;
}

button.alt-btn {
width:100%;
margin-bottom:20px
}

.output {
    margin-top: 20px;
    padding: 10px;
    background-color: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 90%;
}


.tabs {
    display: flex;
    justify-content: center;
    margin: 20px;
}

.tab {
    padding: 10px 20px;
    border: 1px solid #ddd;
    background-color: #f4f4f4;
    cursor: pointer;
    margin-right: 5px;
    border-radius: 5px;
    text-align: center;
}

.tab.active {
    background-color: #1d3557;
    color: white;
    border: 1px solid #1d3557;
}

.tab-content {
    display: none; /* Hide all tab content */
}

.tab-content.active {
    display: block; /* Show only the active tab content */
}



.tab-content-charts .tab-pane {
    display: none; /* Hide all tab content */
}

.tab-content-charts .tab-pane.active {
    display: block; /* Show only the active tab content */
}

#estimated-completion-time { font-weight:normal }

#estimated-completion-time small {
font-weight: normal;
    font-style: italic;
    font-size: 15px;
    color: #999;
}
/* Container */
.material-toggle {
    display: flex;
    justify-content: flex-start; /* Align to the left */
    align-items: center;
    border-radius: 25px;
    overflow: hidden;
    background-color: #f1f1f1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 300px;
    height: 40px;
    margin: 20px 0; /* Left-aligned without centering */
}

/* Buttons */
.toggle-option {
    flex: 1;
    display: flex; /* Use flexbox for centering */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    font-size: 14px;
    font-weight: normal; /* Remove bold text */
    border: none;
    background-color: transparent;
    color: #757575;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    height: 100%; /* Ensure buttons fully occupy container height */
}

/* Active State */
.toggle-option.active {
    background-color: #94A187; /* Panels Cleared active color */
    color: black;
}

.toggle-option#toGoButton.active {
    background-color: #FDE12D; /* Panels to Go active color */
    color: #333;
}

/* Hover State Matches Active State */
.toggle-option:hover {
    background-color: #94A187; /* Default Panels Cleared hover color */
    color: black;
}

.toggle-option#toGoButton:hover {
    background-color: #FDE12D; /* Panels to Go hover color */
    color: #333;
}
code { padding:10px; background-color:#1d1e22; color: #809bbd; font-family:monospace; font-size:14px;display:block }

blockquote {font-size:20px; margin: 0 auto; padding: 40px 15px 15px 15px; color:#999; line-height:125%; font-style: italic;font-family:serif;width: 75%; }

blockquote a { color:#999 }
blockquote p { text-align:right }

.flash-green {
    background-color: #c7e3be !important;
    transition: background-color 0.5s ease-in;
}

#tab1-content strong {
    font-weight: bold;
}

.form-output h3 { text-align:center;margin-top:25px; padding:10px }

input:disabled {
    background-color: #f0f0f0;
    color: #999;
    cursor: not-allowed;
}

input[type="number"] {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    margin: 8px 0;
    box-sizing: border-box;
}

.percent-wrapper {
    position: relative;
    display: flex;
}

.percent-wrapper input[type="number"] {
    flex: 1;
    padding-right: 30px;
}

.percent-symbol {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #666;
    pointer-events: none;
}

input[type="time"] { width:90% }

input[type="number"] {
    width: 100%;
}

input[type="number"], input[type="time"] {
    padding: 10px;
    font-size: 16px;
    margin-bottom: 8px;
}

.toggle-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
  flex-wrap: wrap; /* ⬅️ allow wrapping */

margin-bottom:20px
}


.toggle-button.full-width {
  flex-basis: 100%;   /* take full row */
  margin-top: 10px;   /* optional spacing */
}

.toggle-button {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-size: 14px;
    border: none;
    background-color: #e0e0e0;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 5px;
    margin-right: 5px;
}

.toggle-button:last-child {
    margin-right: 0;
}

.toggle-button.active {
    background-color: #c7e3be;
    color: #000;
    font-weight: bold;
}

.toggle-button:hover {
    background-color: #c7e3be;
    color: #000;
}

.form-output p {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.material-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Roboto', sans-serif;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}



.material-table th {
    background-color: #000;
    color: white;
    font-weight: bold;
    text-align: left;
    padding: 10px;
}

.material-table td {
    padding: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.timestamp-row {
    background-color: #f4f4f4;
    text-align: center;
    font-style: italic;
font-weight:normal;
color:#999;
font-size:12px;
    padding: 10px 0;
}

/* Apply green background to the entire first row (all cells) */
.leaderboard .material-table tr:nth-child(1) {
    background-color: #c7e3be !important; 
}

.leaderboard .material-table tr:nth-child(n+4) td:first-child {
    padding-left: 15px;
}

.leaderboard .fa-down { color: #FD151B }
.leaderboard .fa-up { color: #04724D }
.leaderboard .fa-sparkles { color: #CBA135 }

.leaderboard { margin-bottom:20px }


.row {
    display: flex;
    align-items: center; /* Vertically center elements in the row */
    justify-content: center; /* Horizontally center elements */
    gap: 10px; /* Space between the input fields and buttons */
    margin-bottom: 10px;
}

.fa-circle-plus, .fa-delete-left {
    cursor: pointer;
    font-size: 20px;
    margin: 0 5px;
}

#form .form-group { margin-bottom:25px }
}

/* Make sure the canvas is responsive */

.chart-container {
  width: 100%;
  height: 500px; /* Cap the vertical growth */
  position: relative;
}

#chart1, #chart2, #chart3, #chart3-2024, canvas.line-chart  { 
  width: 100%!important;
height:500px!important
}

h3.mobile-note {
display:none; }

@media (orientation: portrait) {
   
h3.mobile-note {
display:block; }
}

@media (orientation: landscape) {
    
    h3.mobile-note {
display:none;
}
}

@keyframes rotateLeft {
    0% {
        transform: rotate(0deg);  /* Start at 0 degrees */
    }
    50% {
        transform: rotate(-90deg);  /* Rotate 90 degrees to the left */
    }
    100% {
        transform: rotate(0deg);  /* Reset back to 0 degrees */
    }
}

.mobile-note i {
    animation: rotateLeft 2s infinite;  /* Apply the animation */
}


/* Add pointer cursor on hover */
.collapsable h2 {
  cursor: pointer;
  display: inline-flex; /* Use inline-flex for centering elements */
  align-items: center;
  justify-content: center; /* Center both the text and the caret */
  width: 100%; /* Ensure the header stretches across the full width */
}

/* Caret styling */
.collapsable h2 .caret {
  margin-left: 10px;
  transition: transform 0.3s ease;
  transform: rotate(0deg); /* Default to facing down (collapsed state) */
}

/* Ensure the caret points up when expanded */
.collapsable h2 .caret.collapsed {
  transform: rotate(180deg); /* Rotate to face up when expanded */
}

/* Default state: Hide paragraphs */
.collapsable p, .collapsable span.hide {
  display: none;
}

/* Summary styling */
.collapsable .summary {
  font-size: 14px;
  font-weight: normal;
  margin-left: 10px;
  padding-top: 2px;
  color: #999;
  display: block; /* Default visible */
}

/* Hide summary text when the panel is open */
.collapsable .summary.hidden {
  display: none; /* Hide the summary text when the panel is open */
}

@media (max-width: 767px) and (orientation: portrait) {
    .summary {
        display: none!important;
    }
.content-alt { 
margin-bottom:-5px
}

.content-alt a {word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}
}

.tooltip {
  position: relative;
  cursor: pointer;
}

.tooltip .tooltip-text {
  visibility: hidden; /* Hidden by default */
  position: absolute;
  bottom: 125%; /* Position above the element */
  left: 50%;
  transform: translateX(-50%);
  background-color: black;
  color: white;
  padding: 8px;
  border-radius: 4px;
  max-width: 300px; /* Wider tooltip */
  font-size: 12px;
  line-height: 1.4;
  white-space: normal;
  word-wrap: break-word;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
text-align:left
}

.tooltip:hover .tooltip-text,
.tooltip:focus .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* Allowing multi-line text and ensuring the tooltip doesn't overflow */
.tooltip .tooltip-text {
  white-space: normal;
  word-wrap: break-word;
  max-width: 300px;
  min-width: 150px;
}

.illustration {max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto; margin-bottom:20px}

.legend { margin-top:40px }

@media (min-width: 1024px) {

.legend {
  width: calc(25% - 20px); /* Adjust for padding (10px on each side) */
  float: left;
  box-sizing: border-box; /* Ensures padding is included in width */
  padding: 10px;
}


}

.tooltip-container a { color:#FFF }

thead { font-size:12px }

@media screen and (max-width: 767px) and (orientation: portrait) {
.material-table { font-size:12px }

}

/* Desktop & Tablet (Default for 769px and up) */
@media (min-width: 769px) {
  img.illustration-alt {
    width: 40%;
    float: left;
    margin: 0 10px 10px 0;
  }
}

/* Mobile Landscape Only (must be under 769px AND landscape) */
@media (max-width: 768px) and (orientation: landscape) {
  img.illustration-alt {
    width: 50%;
    display: block;
    float: none;
    margin: 0 auto 10px auto; /* top, horizontal auto, bottom */
  }
}


/* Mobile Portrait Only */
@media (max-width: 768px) and (orientation: portrait) {
  img.illustration-alt {
    width: 100%;
    float: none;
    margin: 0 0 10px 0;
  }
}

.footer-icons { 
display: flex; gap: 10px; margin: 0; justify-content: center; align-items: center;
}

.footer-icons a { text-decoration: none }

.footer-icons a:hover { opacity:0.75 }


div.video { float:left;margin:0 10px 20px 0;max-width:420px; aspect-ratio: 2 / 3; }
video { width: 100%; height: auto; object-fit: cover; display: block; }
p.list { }

