body {
    font-family: 'Lato', sans-serif;
    text-align: center;
    padding-top: 150px;
    
    background-image: 
        url('images/MLX_temperature_selector_FoV.png'),
        url('images/BG-col-dark.jpg');
    
    background-size: 
        auto 200px,          /* logo: auto width, 150px tall */
        /* auto 0px; */
        cover;         /*      main background: cover full page  ---   ENABLE*/
    
    background-repeat: 
        no-repeat, 
        no-repeat;
    
    background-position: 
        center 30px,          /* logo: center top */
        center center;       /* main background: center center */

    background-attachment:
        scroll,              /* logo scrolls with content */
        fixed;               /* building image stays fixed */
    
    min-height: 100vh;
    color: #ffffff;
}

#logo-banner {
    background-image: url('images/background_building.jpg');
    background-size: contain;        /* keep aspect ratio */
    background-repeat: no-repeat;
    background-position: center top; /* center horizontally, top aligned */
    height: 1500px;                   /* adjust height as needed */
    width: 100%;
}

#logo {
    max-width: 80px;       /* small size */
    height: auto;          /* keep aspect ratio */
    position: fixed;       /* stay relative to viewport */
    bottom: 10px;          /* distance from bottom */
    right: 10px;           /* distance from right */
    z-index: 1000;         /* stay on top */
    display: block;        /* default display */
}

/* Hide logo on small screens */
@media (max-width: 1000px) {
    #logo {
        display: none;
    }
}


h1 {
    font-weight: bold;
    font-family: 'Lato', sans-serif;
    color: rgb(255, 255, 255);
    font-size: clamp(30px, 8vw, 60px);
    margin-top: 80px; /* margin between the logo and the name*/
}

.subtitle {
    font-weight: bold;
    font-family: 'Lato', sans-serif;
    color: #ffffff;
    font-size: 20px;
    margin-top: 10px;
}


label{
    border: none;           /* remove border */
    outline: none;          /* remove focus outline */
    background: transparent; /* optional: transparent background */
    width: auto;            /* let width fit content */
    min-width: 1ch;         /* small minimum width for number inputs */
    padding: 2px 4px;       /* a little padding for readability */
    font-size: 16px;        /* keep font consistent */
    box-sizing: content-box; /* width fits content without extra padding */
    margin: 10px;
    text-align: left;
    display: inline-flex;       /* keeps the group inline, not full width */
    gap: 4px;                   /* small gap to avoid elements sticking */
    white-space: nowrap;        /* prevent wrapping */
}

select, input {
  border: 2px solid #65bba9 ;       /* blue border */
  border-radius: 1px;              /* rounded corners */
  background-color: #8fccbc ;       /* light blue background */
  padding: 6px 10px;               /* some padding inside */
  font-size: 16px;
  color: #ffffff;                  /* dark blue text for contrast */
  box-sizing: border-box;          /* include padding in width */
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 150px;
  height: 24px;
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
}

input[type="range"]:focus {
  outline: none;
  border: none;
  box-shadow: none;
}

/* Track */
input[type="range"]::-webkit-slider-runnable-track {
  height: 1px;
  background: #8fccbc;
  border: none;
  border-radius: 1px;
}

input[type="range"]::-moz-range-track {
  height: 1px;
  background: #8fccbc;
  border: none;
  border-radius: 1px;
}

/* Thumb */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  background: #8fccbc;
  border: none;
  border-radius: 5%;
  margin-top: -5.5px;
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: #8fccbc;
  border: none;
  border-radius: 5%;
  cursor: pointer;
}

.inline-group {
  display: inline-flex;      /* groups all children inline */
  align-items: center;       /* vertically center items */
  gap: 7px;                  /* space between elements */
  white-space: nowrap;       /* prevent wrapping */
  font-size: 16px;
  margin: 10px;
}
.inline-group label,
.inline-group select,
.inline-group input {
  margin: 0;                 /* reset individual margins so gap works properly */
}

#unit_fixed {
  appearance: none;          /* standard */
  -webkit-appearance: none;  /* Safari/Chrome */
  -moz-appearance: none;     /* Firefox */
  background: rgba(101, 187, 169, 0.8); /* keep your background */
  border: 2px solid #65bba9;
  border-radius: 1px;
  padding: 6px 10px;
  color: #ffffff;
}

  .container {
  display: flex;
  flex-wrap: wrap;         /* wrap on smaller screens */
  justify-content: space-between;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}


.left-column,
.right-column {
  flex: 1 1 48%;            /* grow/shrink basis = 48% of container */
  min-width: 320px;         /* prevent too-narrow columns on mobile */
  box-sizing: border-box;
}

  .left-column label,
  .left-column select,
  .left-column input[type="range"],
  .left-column input[type="number"],
  .left-column .section {
    display: block;
    width: 100%;
    margin-bottom: 10px;
  }

  .inline-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
  }

  .right-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    margin-top: -65px; /* move upward */
  }
  .form-row {
  display: flex;
  align-items: center;  /* keeps input aligned to top of label block */
  gap: 10px;
  margin-bottom: 0px;
}
.form-row select {
  width: 160px;
  min-width: 160px;
  padding-right: 30px; /* optional, for dropdowns */
  background: rgba(101, 187, 169, 0.8);
}

.form-row input[type="number"] {
  width: 90px;
  min-width: 90px;
  flex-shrink: 0;           /* don’t shrink inputs */
  padding-right: 30px; /* optional, for dropdowns */
  background: rgba(101, 187, 169, 0.8);
}

.form-row label {
  flex: 1;                  /* take remaining space */
  min-width: 200px;         /* prevent collapsing to tiny width */
  max-width: 70%;           /* wrap nicely before hitting edge */
  white-space: normal;      /* allow wrapping */
  word-wrap: break-word;    /* break long words if needed */

}

.form-row select.wide-select {
  min-width: 260px !important;
  background: rgba(101, 187, 169, 0.8);
}
.form-row select.narrow-select {
  min-width: 90px !important;
  background: rgba(101, 187, 169, 0.8);
}
  @media (max-width: 700px) {
    .left-column,
    .right-column {
      flex: 1 1 100%;
    }
  }
.narrow-label {
  display: inline-block;
  width: 250px !important;  /* same width as narrow-select */
  text-align: left;
  white-space: nowrap;
  margin-left: 4px; /* optional spacing */
}

input[type="checkbox"] {
  accent-color:  rgba(101, 187, 169, 0.8); /* or any color you like */
}


canvas {
    /*border: none;   removes the frame */
    display: block;
    margin: 0px;
    padding: 0;
    background-color: rgba(75, 25, 0, 0);
    cursor: grab;
}

.info {
    font-size: 18px;
    margin-top: 1px;
    margin-bottom: 1px;
}
.hidden {
    display: none;
  }

#distanceInput {
    width: 90px;
    font-size: 16px;
    margin-top: 0;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* New section for D:S vs. FOV visualization */
.visualization-container {
  max-width: 900px;
  margin: 1px auto;
  padding: 1px;
  background: rgba(183, 23, 23, 0.3);
  border-radius: 1px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  text-align: center;
}

.visualization-title {
  font-size: 26px;
  font-weight: bold;
  color: #00354b;
  margin-bottom: 1px;
}

.visualization-subtitle {
  font-size: 18px;
  color: #3e4242;
  margin-bottom: 1px;
}

.chart-wrapper {
  width: 100%;
  overflow-x: auto;
}

.chart-canvas {
  width: 100%;
  max-width: 800px;
  height: auto;
  margin: 0 auto;
  /* display: block; */
}

.bottom-text {
  font-style: italic;
  font-size: 12px;
  max-width: 1200px;
  margin-top: 40px;
  margin: 0 auto;
  
}
.suggested-devices {
  margin-top: 20px;
}

.suggested-devices .subtitle {
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

/* Container for device canvases */
.devices-container {
  display: flex;
  justify-content: center;      /* Center canvases horizontally */
  flex-wrap: wrap;              /* Allow wrapping if needed */
  gap: 15px;
  padding: 10px 0;
  border: 1px solid #ccc;
  align-items: center;
}


/* Each canvas styling */
.devices-container canvas {
  flex: 0 0 auto;             /* prevent shrinking */
  width: 200px;
  height: 280px;
  cursor: pointer;
  border: 1px solid #6c5a5a;
  border-radius: 1px;
  background-color: #ffffff;
  align-items: center; 
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: box-shadow 0.3s ease;
}

.devices-container canvas:hover {
  align-items: center; 
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* Highlighted device */
.devices-container canvas.selected-device {
  border: 3px solid #8fccbc; /* thick green border */
  box-shadow: 0 0 15px 4px #8fccbc; /* thick green glow */
}

.spacer-30 {
  height: 30px;
}

.spacer-10 {
  height: 10px;
}

.expander {
      border: 2px solid #65bba9;
      border-radius: 1px;
      background-color: rgba(255, 255, 255,1); /* #8fccbc with 0.5 opacity */
      padding: 6px 20px;
      color: #00354b;
      box-sizing: border-box;
      font-size: 16px;
      transition: border-color 0.3s ease, box-shadow 0.3s ease;
      box-sizing: border-box;          /* include padding and border in total width */
      margin: 0 auto;
      max-width: 1200px;
      align-items: left;
      margin-bottom: 20px;
      margin-top: 20px;
    }

    .expander-toggle {
      background: none;
      background-color: rgba(255, 255, 255,1); /* #8fccbc with 0.5 opacity */
      border: none;
      font-size: 16px;
      font-weight: normal;
      cursor: pointer;
      color: #00354b;
      padding: 6px 0;
      width: 100%;
      text-align: left;
    }

    .expander-content {
      display: none;
      padding-top: 8px;
      margin-left: 20px;        /* Indent the whole list */
      padding-left: 30;          /* Remove default padding */
      line-height: 1.6;         /* Increase spacing between lines */
      list-style-position: outside;
      text-align: left;
      background-color: rgba(255, 255, 255,1); /* #8fccbc with 0.5 opacity */
    }

    .expander-content ul {
      margin-left: 20px;        /* Indent the whole list */
      padding-left: 30;          /* Remove default padding */
      line-height: 1.6;         /* Increase spacing between lines */
      list-style-position: outside;
      text-align: left;
      background-color: rgba(255, 255, 255,1); /* #8fccbc with 0.5 opacity */
    }
