* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    margin: 48px;
    background-color: #FDFBFB;
  }
  
  #main {
    max-width: 900px;
    margin: 0 auto;
  }
  
  #title {
    font-size: 5em;
    font-weight: 400;
    margin-bottom: 8px;
    color: #000;
    white-space: nowrap;
    overflow: ellipsis;
    text-overflow: ellipsis;
  }

  #canvas {
    margin-top: 32px;
  }

  #toolbar {
    background-color: #F8F4F2;
    padding: 16px;
    border-radius: 32px;
  }
  
  #palette-info {
    font-size: 1.3em;
    font-weight: 400;
  }

  #imageUploader {
    display: none;
  }

  .material-symbols-outlined {
    font-size: 20px;
    vertical-align: middle;
    position: relative;
    bottom: 2px;
  }

  .upload-btn {
    display: inline-block;
    padding: 12px 16px;
    padding-left: 12px;
    background-color: #F8F4F2;
    color: #000;
    border: 1.5px solid #F8F4F2;
    font-size: 16px;
    letter-spacing: 0;
    border-radius: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-right: 8px;
  }

  .upload-btn:hover {
    background-color: #fff;
  }

  #tryDemoImageBtn {
    display: inline-block;
    padding: 12px 24px;
    padding-left: 12px;
    background-color: #F8F4F2;
    color: #000;
    border: 1.5px solid #F8F4F2;
    font-size: 16px;
    letter-spacing: 0;
    border-radius: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-right: 8px;
  }

  #tryDemoImageBtn:hover {
    background-color: #fff;
  }

  #exportBtn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #F8F4F2;
    color: #000;
    border: 1.5px solid #F8F4F2;
    font-size: 16px;
    letter-spacing: 0;
    border-radius: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

  #exportBtn:hover {
    background-color: #fff;
  }

  .upload-btn, #exportBtn {
    line-height: 1;
  }

  #palette-container {
    margin-top: 16px;
    border-radius: 32px;
    overflow: hidden;
    width: 100%;
  }

  #placeholderImage {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-bottom: -5px;
  }

  #palette {
    display: flex;
    margin: 0;
    padding: 0;
    width: 100%;
  }

  .color-wrapper {
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .color {
    width: 100%;
    height: 120px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease;
  }

  .color-wrapper:first-child .color {
    border-bottom-left-radius: 32px;
  }

  .color-wrapper:last-child .color {
    border-bottom-right-radius: 32px;
  }

  .hex-code {
    font-family: 'Inter Tight Mono', monospace;
    font-size: 16px;
    margin-top: 8px;
    color: #3d3d3d;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 0;
  }

  .copy-text {
    display: none;
    position: absolute;
    align-items: center;
    white-space: nowrap;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    padding: 4px 8px;
    cursor: pointer;
    transition: opacity 0.3s ease;
    z-index: 10;
    pointer-events: none;
  }

  .color:hover .copy-text {
    opacity: 1;
  }

  .copy-bounce {
    animation: bounce-in 300ms ease-out;
  }

  @keyframes bounce-in {
    0% {
      transform: translate(-50%, -50%) scale(0.9);
      opacity: 0;
    }

    50% {
      transform: translate(-50%, -50%) scale(1.1);
      opacity: 1;
    }

    100% {
      transform: translate(-50%, -50%) scale(1);
    }
  }

  .color-wrapper:hover .copy-text {
    display: block;
  }

  @media (max-width: 768px) {
    #title {
      font-size: 3em;
    }
  }
  
  @media (max-width: 480px) {
    #title {
      font-size: 2em;
    }
  }