.container {
  background: #394555;
  color: #fff;
  padding: 1rem 2rem 2rem;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,.1);
  width: 100%;
  max-width: 1000px;
  margin: 40px auto 150px;
}

.header {
  background: #16213e;
}

h1 {
  font-size: 22px;
  text-align: center;
  margin: 40px auto 30px;
}

.section {
  margin-bottom: 1.5rem;
}

input, button, select {
  font-size: 1rem;
  padding: .6rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
}

input[type='color'] {
  height: 60px;
  border: none;
  cursor: pointer;
}

.preview {
  height: 60px;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-top: .5rem;
}

.color-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
  margin-top: 1rem;
}

.color-box {
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 639px) {
  .color-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 419px) {
  .color-row {
    grid-template-columns: 1fr;
  }
}

.swatch {
  width: 100%;
  height: 60px;
  border-radius: 8px 8px 0 0;
}

.color-info {
  text-align: center;
  background: #f0f0f0;
  color: #000;
  padding: 6px;
  font-size: .9rem;
  width: 100%;
}

.color-info span {
  display: block;
  margin-bottom: 5px;
}

.copy-btn {
  background: #16213e;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: .8rem;
  cursor: pointer;
}

.copy-btn:hover {
  background: #0dcaf0;
}

.copy-btn[title] {
  position: relative;
}

canvas, .image-preview {
  display: none;
}

.image-preview.visible {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 700px; /* was 300px */
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin-top: 1rem;
  cursor: crosshair;
}

.btn-primary {
  background: #07f;
  color: white;
  border: none;
  cursor: pointer;
  margin-top: .5rem;
}

.btn-primary:hover {
  background: #005fd0;
}

.dropzone {
  border: 2px dashed #0dcaf0;
  padding: 40px;
  text-align: center;
  color: #333;
  border-radius: 10px;
  background: #f9f9f9;
  cursor: pointer;
  transition: background .2s ease;
  user-select: none;
}

.dropzone:hover {
  background: #e8f7ff;
}

.dropzone.dragover {
  background: #cfefff;
  border-color: #005fd0;
}

.eye-btn {
  background: #07f;
  color: #fff;
  border: none;
  padding: 8px 12px;
  margin-top: 10px;
  border-radius: 6px;
  cursor: pointer;
}

.home {
  font-size: 22px;
  margin: -10px 0 0;
  padding: 0 0 15px 20px;
}

.spacer-10 {
  height: 10px;
}
