.threejs-container {
    width: 100%;
    height: fit-content;
}


/* 
For the popup interactability
*/
table.popup-table > tbody > tr > th {
    border: 1px solid #ccc; 
    padding: 5px; 
    white-space: nowrap;
}

.table-group {
    margin-bottom: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
}

/* clickable header */
.table-header {
    cursor: pointer;
    padding: 5px 22px 5px 22px;
    font-weight: bold;
    /* border-bottom: 1px solid #ccc; */
    display: flex;
    position: relative;
    align-items: center;
    text-align: center;
    user-select: none;
}


.toggle-indicator {
    position: absolute;
    left: 10px;
    font-size: 6pt;
    margin-right: 6px;
    transition: transform 0.2s ease;
}

/* content area (collapsible) */
.table-content {
    max-height: 0;
    overflow: hidden;
    font-weight: normal;
}

.table-content th {
    padding:5px 10px; 
    text-align:center;
}

.table-content td {
    padding:5px 10px; 
    text-align:center;
}

/* expanded state */
.table-header.open .toggle-indicator {
    transform: rotate(90deg); /* ▶ turns into ▼ */
}






/* Wind slider */

/* Container */
.slider-container {
    width: 320px;
    padding: 0px 5px;
    background: var(--btn-responsive-grey-bg);
    border-radius: 8px;
    text-align: center;
    margin: auto;
} 

.slider-container > .windforce-text {
    margin-bottom: -10px;
}

/* Base slider reset */
.slider {
    width: 100%;
    height: 4px;
    margin: 0px 0 0px 0;
    cursor: pointer;
}

/* WebKit track */
.slider::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(to right, #3b82f6, red);
}

/* Firefox track */
.slider::-moz-range-track {
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(to right, #3b82f6, red);
}

/* Shared thumb */
.slider::-webkit-slider-thumb,
.slider::-moz-range-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #2563eb;
  border: 1px solid #ccc;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: background 0.2s;
}

/* Center thumb on WebKit */
.slider::-webkit-slider-thumb {
  margin-top: -6px; /* (thumb height - track height)/2 */
}

/* Hover effect */
.slider::-webkit-slider-thumb:hover,
.slider::-moz-range-thumb:hover {
  background: #1e40af;
}

/* Value display */
.value-display {
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 0px;
}

/* Labels under slider */
.labels span {
    width: 15px;
}
.labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  margin-top: 0px;
}

/* Ticks */
datalist {
    display: flex;
    justify-content: space-between;
    margin-top: -15px;
    pointer-events: none;
}
datalist option {
    position: relative;
}

[hidden] {
    display: none !important;
}

div#gbms-legend {
    display: flex;
}
