body {
  font-family: sans-serif;
  padding: 20px;
}

.resistor-container {
  position: relative;
  width: 400px;
  margin-bottom: 20px;
}

.resistor-base {
  width: 100%;
}

.color-band {
  position: absolute;
  width: 16px;
  height: 70px;
  top: 11px; /* 依你圖片的實際色碼垂直中心線調整 */
  cursor: pointer;
  z-index: 2;
}

#band1 { left: 150px; }
#band2 { left: 180px; }
#multiplier { left: 210px; }
#tolerance {
  left: 240px;
  background-color: #FFD700; /* ✅ 一開始就金色 */
  pointer-events: none;       /* ✅ 禁止點擊 */
  border: none;               /* ✅ 沒有虛線框 */
}

label,select,button,#timer {
   font-family:標楷體;
   font-size:18pt;
}
#feedback,#resistorValue{
  font-family:標楷體;
  font-size:22pt;
}
.color-picker {
  display: none;
  position: absolute;
  z-index: 999;
  flex-wrap: nowrap;              /* ✅ 不換行 */
  flex-direction: row;            /* ✅ 水平排列 */
  gap: 4px;
  padding: 4px;
  background-color: #fff;
  border: 1px solid #aaa;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

.color-box {
  width: 50px;
  height: 50px;
  border: 1px solid #333;
  cursor: pointer;
}

.result {
  font-size: 18px;
  font-weight: bold;
}

.color-band {
  position: absolute;
  width: 16px;
  height: 68px;
  top: 11px;
  background-color: transparent;
  background-clip: padding-box;
  border: 2px dashed black;
  cursor: pointer;
  z-index: 10;
}

