/* style.css */
* {
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  margin: 0;
  padding: 2rem;
  background: #f3f4f6;
  display: flex;
  justify-content: center;
}

.container {
  background: white;
  padding: 2rem;
  max-width: 1000px;
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  text-align: center;
}

h1 {
  font-size: 2rem;
  margin-bottom: 0.3rem;
}

.subtitle {
  color: #555;
  margin-bottom: 2rem;
}

.upload-box {
  border: 2px dashed #4a90e2;
  border-radius: 12px;
  padding: 2rem;
  cursor: pointer;
  background: #f0f8ff;
  transition: background 0.2s ease;
}

.upload-box:hover {
  background: #e6f2ff;
}

.upload-box input {
  display: none;
}

.image-preview img {
  max-width: 100%;
  margin: 1rem 0;
  border-radius: 12px;
}

.palette-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.swatch {
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}

.swatch-color {
  height: 100px;
  width: 100%;
}

.swatch-info {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: #fff;
  text-align: left;
}

.swatch-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  padding-bottom: 4px;
  cursor: pointer;
  white-space: nowrap;
}

.swatch-label {
  color: #555;
  font-weight: 500;
  flex: 0 0 auto;
}

.swatch-value {
  font-family: monospace;
  color: #222;
  margin: 0 0.5rem;
  flex: 0 1 auto;
  white-space: nowrap;
}

/* overlapping‑squares icon */
.copy-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  color: #4a90e2;
  transition: color 0.2s;
  flex: 0 0 auto;
  cursor: pointer;
}

.copy-icon svg {
  width: 100%;
  height: 100%;
}

.copy-icon:hover {
  color: #2563eb;
}

.home-link {
  display: inline-block;
  margin-top: 2rem;
  color: #4a90e2;
  text-decoration: none;
  font-weight: 500;
}

.home-link:hover {
  text-decoration: underline;
}

/* bottom description */
.description-bottom {
  margin-top: 2rem;
  color: #777777;                   /* lighter gray for paragraph */
  font-size: 0.95rem;
  line-height: 1.4;
  text-align: justify !important;   /* force full justification */
  text-align-last: left !important; /* left-align the last line */
}

/* instructions styling */
.instructions {
  margin-top: 1.5rem;
  text-align: left;
}

.instructions h3 {
  margin-bottom: 0.5rem;
  color: #333;
}

/* list items same light gray */
.steps {
  margin: 0;
  padding-left: 1.2rem;
}

.steps li {
  margin-bottom: 0.4rem;
  color: #777777; /* match paragraph color */
}
