/* tfc.css */

/* Change these to 100% so they fit inside the flex-child */
:root {
  --canvas-width: 100%; 
  --canvas-height: 400px; /* Use a fixed height or the canvas might disappear */
  --control-panel-width: 100;
  --border-thickness: 10px;
}

.container {
  width: 100%; /* Remove the 800px restriction */
  max-width: 100%;
}

canvas {
  width: 100% !important;
  height: auto !important; /* Allow aspect-ratio to control height */
  aspect-ratio: 4 / 3;    /* Keep the box proportional */
  display: block;
}

.controls {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
  width: 100%;
}

.control-row {
  display: flex;
  align-items: center;
  gap: 15px;
  user-select: none; /* Prevents text highlighting while sliding */
}

input[type="range"] {
  flex-grow: 1;
  cursor: pointer;
}

label {
  width: 80px;
  font-weight: bold;
}

#scaleDisplay, 
#termsDisplay {
  width: 40px;
  text-align: right;
  font-family: monospace;
  font-weight: bold;
}

.refresh-btn {
  width: 100%;
  padding: 10px;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  font-family: Verdana, sans-serif;
  margin-top: 10px;
}

.refresh-btn:hover {
  background-color: #555;
}

.refresh-btn:active {
  background-color: #000;
}
