/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  overflow-x: hidden;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #f9fafb;
  color: #333;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  background-color: #2274A5;
  color: white;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-header .logo {
  max-height: 40px;
  width: auto;
}

#hueSlider {
  width: 300px;       /* Wider slider */
  max-width: 100%;    /* Responsive on small screens */
  height: 8px;        /* Slightly taller track */
  cursor: pointer;    /* Show pointer on hover */
  margin-top: 4px;    /* Spacing */
  border-radius: 4px; /* Rounded corners */
  /* Optional: add background or custom styling for track and thumb */
}


.reload-button {
  background-color: #ff6600;
  border: none;
  border-radius: 6px;
  padding: 10px 18px;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.reload-button:hover {
  background-color: #cc5200;
}

.container {
  max-width: 900px;
  margin: 30px auto;
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgb(0 0 0 / 0.1);
  flex-grow: 1;
}

h1 {
  font-weight: 600;
  text-align: center;
  margin-bottom: 24px;
  font-size: 2rem;
}

.image-section {
  text-align: center;
}

#image-container {
  max-width: 700px;
  margin: 0 auto 20px;
  border: 1px solid #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgb(0 0 0 / 0.05);
}

#paint-image {
  width: 100%;
  display: block;
  cursor: crosshair;
  user-select: none;
  touch-action: manipulation;
  transition: transform 0.3s ease;
  transform-origin: center center;
  border-radius: 12px;
}

.upload-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
}

.upload-form input[type="file"] {
  padding: 12px;
  border: 2px dashed #bbb;
  border-radius: 10px;
  cursor: pointer;
  flex: 1 1 250px;
  max-width: 350px;
  transition: border-color 0.3s;
  background: #fafafa;
}

.upload-form input[type="file"]:hover {
  border-color: #2274A5;
}

.upload-form button {
  background-color: #2274A5;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 22px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  flex: 0 0 auto;
  transition: background-color 0.3s;
}

.upload-form button:hover {
  background-color: #1a5c85;
}

.upload-note {
  font-size: 0.85rem;
  color: #666;
  flex: 0 0 auto;
  user-select: none;
}

.color-picker {
  margin-bottom: 30px;
}

#topLogo {
  width: 100%;
  max-width: 700px;
  height: 100px;
  object-fit: contain;
  border: 1px solid #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgb(0 0 0 / 0.05);
  margin: 0 auto 20px;
  display: block;
}

#selectedColorBlock {
  width: 450px;      /* or whatever size you want */
  height: 50px;
  border-radius: 8px;
  background-color: #0000FF;  /* default color or dynamic */
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  margin: 12px auto;
  transition: background-color 0.3s ease;
}


#selectedColorDisplay {
  font-weight: 600;
  font-size: 1.3rem;
  margin-bottom: 20px;
  text-align: center;
}

.mix-results h3 {
  margin-bottom: 16px;
  font-weight: 600;
  text-align: center;
  font-size: 1.5rem;
}

#mixList {
  list-style: none;
  padding-left: 0;
  max-width: 500px;
  margin: 0 auto 30px;
}

#mixList li {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
  font-size: 1.1rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
}

#mixList li .color-name {
  flex: 0 0 120px;
  font-weight: 600;
  color: #444;
  white-space: nowrap;
}

#mixList li .color-bar {
  height: 28px;
  background-color: #000;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 8px rgb(0 0 0 / 0.2);
  transition: width 0.8s ease;
  width: 100%;
  max-width: 400px;
  flex-shrink: 0;
  min-width: 50px;
}

#mixList li .color-bar span {
  position: absolute;
  right: 12px;
  top: 4px;
  color: white;
  font-weight: 600;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
  font-size: 0.9rem;
  user-select: none;
}

.name-copy-container {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.name-copy-container input[type="text"] {
  flex: 1 1 60%;
  padding: 12px 14px;
  font-size: 1.1rem;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  box-shadow: inset 0 1px 3px rgb(0 0 0 / 0.05);
  transition: border-color 0.3s;
}

.name-copy-container input[type="text"]:focus {
  outline: none;
  border-color: #2274A5;
  box-shadow: 0 0 6px rgb(34 116 165 / 0.5);
}

.name-copy-container button {
  flex: 0 0 auto;
  padding: 12px 24px;
  background-color: #ff6600;
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: 700;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background-color 0.3s;
}

.name-copy-container button:hover {
  background-color: #cc5200;
}

/* Footer Styles */
.site-footer {
  background-color: #2274A5;
  color: #666666;
  padding: 15px 0;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: inset 0 1px 3px rgb(0 0 0 / 0.2);
  margin-top: auto;
  width: 100vw;
  position: relative;
  left: 0;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: none;
}

.mix-warning {
  font-size: 0.9em;
  color: darkred;
  margin-bottom: 8px;
  font-weight: bold;
}

#canvas-logo-wrapper {
  width: 100%;
  background-color: #ffffff;
  padding: 10px 0;
  text-align: center;
}

#topLogo {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  border: 1px solid #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgb(0 0 0 / 0.05);
  display: block;
}


/* Responsive – Mobile Fix */
@media (max-width: 650px) {
  .name-copy-container {
    flex-direction: column;
  }

  .name-copy-container input[type="text"],
  .name-copy-container button {
    flex: 1 1 100%;
  }

  #mixList li {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 8px;
    padding-bottom: 6px;
    gap: 6px;
  }

  #mixList li .color-name {
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.2;
  }

  #mixList li .color-bar {
    height: 24px;
    width: 100%;
    max-width: none;
  }

  #mixList li .color-bar span {
    font-size: 0.8rem;
    right: 6px;
    top: 4px;
  }
}

.mix-slider {
  width: 100%;
  margin-top: 6px;
  appearance: none;
  height: 8px;
  border-radius: 4px;
  background: #ddd;
  outline: none;
  transition: background 0.3s ease;
}

.mix-slider::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  background: #2274A5;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 0 2px rgba(0,0,0,0.5);
}

.mix-slider:hover {
  background: #bbb;
}

.slider-container {
  max-width: 500px;
  margin: 10px auto 30px;
  text-align: center;
}

.slider-container {
  background: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #fff; /* white border */
  width: 90%;
  max-width: 400px;
  margin: 12px auto;
  display: block;
}

.slider-container label,
.slider-container input[type="range"] {
  display: block;
  margin: 8px 0;
}

#brightnessSlider,
#hueSlider {
  width: 100%;
  -webkit-appearance: none;
  height: 10px;
  background: #ccc;
  border-radius: 5px;
  outline: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* WebKit browsers */
#brightnessSlider::-webkit-slider-thumb,
#hueSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #2274A5;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 0 4px rgba(0,0,0,0.3);
  margin-top: -5px; /* vertically center thumb */
}

/* Firefox */
#brightnessSlider::-moz-range-thumb,
#hueSlider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #2274A5;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 0 4px rgba(0,0,0,0.3);
}



/* Mix sliders for each color in the mix */

.mix-slider {
  width: 100%;
  margin-top: 6px;
  appearance: none;
  height: 8px;
  border-radius: 4px;
  background: #ddd;
  outline: none;
  transition: background 0.3s ease;
  cursor: pointer;
}

.mix-slider::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  background: #2274A5;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 0 2px rgba(0,0,0,0.5);
}

.mix-slider:hover {
  background: #bbb;
}


