@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Nunito Sans", sans-serif;
}
.picker-container {
    max-width: 90%;
    margin: auto;
    padding: 20px;
    border-radius: 10px;
    margin-top: 40px;

}
.color-picker {
    width: 100%;
    height: auto;
    justify-content: center;
    display: flex;
}
.picker-container h1 {
    font-size: 30px;
    font-weight: 700;
    color: rgb(255, 255, 255);
    text-align: center;
}
.picker-container p {
    font-size: 18px;
    margin-top: 15px;
    margin-left: 200px;
    margin-right: 200px;
    color: rgb(255, 255, 255);
    text-align: center;
    font-weight: 400;
}
span {
    color: #ffa500;
}

.container {
    width: 50%;
    display: flex;
    margin-top: 20px;
    flex-direction: column;
    gap: 20px;
  }
  .upload-section {
    padding: 40px;
    border-radius: 40px;
    background-color: #17181b;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
  }
  .upload-section p {
    color: white;
  }
  .upload-btn {
    display: inline-block;
    background-color: #ffa500;
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.3s;
  }
  .upload-btn:hover {
    background-color: #3a5ce5;
  }
  #fileInput {
    display: none;
  }
  .preview-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .image-preview {
    border-radius: 8px;
    text-align: center;
    display: none;
    position: relative;
  }
  .image-preview-container {
    position: relative;
    display: inline-block;
    cursor: crosshair;
  }
  .image-preview img {
    width: 300px;
    max-height: 400px;
  }
  .eyedropper-canvas {
    width: 300px;
    position: absolute;
    top: 0;
    left: 0;
    cursor: crosshair;
  }
  .colors-container {
    padding: 20px;
    border-radius: 8px;
    display: none;
  }
  .colors-title {
    margin-bottom: 15px;
    text-align: center;
    color: #ffffff;
  }
  .colors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
  }
  .color-box {
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }
  .color-preview {
    height: 100px;
  }
  .color-info {
    padding: 12px;
    background-color: #17181b;
    text-align: center;
  }
  .color-code {
    font-family: monospace;
    font-size: 1.1em;
    font-weight: 600;
    color: white;
  }
  .color-copy {
    margin-top: 5px;
    background-color: #eee;
    border: none;
    padding: 5px 15px;
    border-radius: 15px;
    margin-top: 10px;
    cursor: pointer;
    transition: background-color 0.2s;
  }
  .color-copy:hover {
    background-color: #ddd;
  }
  .loading {
    display: none;
    text-align: center;
    padding: 20px;
  }
  .spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 4px solid #3a5ce5;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
  }
  .eyedropper-tooltip {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
    pointer-events: none;
    z-index: 100;
    display: flex;
    align-items: center;
    font-family: monospace;
    min-width: 120px;
  }
  .eyedropper-color {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 3px;
    margin-right: 10px;
    border: 1px solid rgba(255, 255, 255, 0.5);
  }
  .eyedropper-instructions {
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 4px;
    font-size: 18px;
    color: white;
    text-align: center;
  }
  .copied-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px 25px;
    border-radius: 4px;
    font-size: 16px;
    z-index: 1000;
    display: none;
  }
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }



  @media (max-width: 1024px) {
    .picker-container h1 {
      font-size: 23px;
      font-weight: 700;
      text-align: center;
  }
  .picker-container p {
      font-size: 14px;
      margin-top: 5px;
      margin-left: 20px;
      margin-right: 20px;
      text-align: center;
      font-weight: 400;
  }
  .container {
    width: 70%;
    display: flex;
    margin-top: 20px;
    flex-direction: column;
    gap: 20px;
  }
  .eyedropper-instructions {
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
    color: white;
    text-align: center;
  }
  }
  @media (max-width: 768px) {
    .picker-container {
      max-width: 100%;
      margin: auto;
      padding: 10px;
      border-radius: 10px;
      margin-top: 40px;
  
  }
  }
  @media (max-width: 480px) {
    .container {
      width: 90%;
      display: flex;
      margin-top: 20px;
      flex-direction: column;
      gap: 20px;
    }
  }