#palettePopup {
  display: none;
  position: fixed;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  max-width: 250px;
  background: white;
  border: 1px solid #ccc;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  padding: 16px 20px 20px;
  z-index: 1000;
  overflow-y: auto;
  max-height: 80vh;
  box-sizing: border-box;
  position: relative;
}

#palettePopup {
  position: fixed; /* or absolute if inside a relatively positioned parent */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border: 1px solid #ccc;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  padding: 16px 20px;
  z-index: 1000;
  max-width: 400px;
  width: auto;
}



#closePopupBtn {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 8px;
  background-color: #ccc;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.palette-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.palette-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.palette-label {
  font-size: 13px;
  color: #333;
  width: 100px;
  text-align: left;
}

.palette-option {
  width: 75%; 
  flex-grow: 1;
  height: 20px;
  border: 1px solid #ccc;
  cursor: pointer;
  margin-left: 12px;
  margin-right: 12px;
}
.palette-option:hover {
  border-color: #333;
}
