body {
  font-family: sans-serif;
  text-align: center;
  background-color: #f0f0f0;
  margin: 0;
  padding: 2rem;
}

h1 {
  margin-bottom: 2rem;
}

.input-group {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

input[type="text"] {
  padding: 0.6rem 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 260px;
}

button {
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

button:hover {
  background-color: #555;
}

.palette {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.color-block {
  width: 140px;
  height: 140px;
  border-radius: 10px;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s;
  padding: 0.5rem;
  box-sizing: border-box;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.color-block:hover {
  transform: scale(1.05);
}

.color-label {
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.color-hex {
  font-size: 1rem;
}
