
body {
  font-family: Arial, sans-serif;
  background: #f9f9f9;
  text-align: center;
  padding: 20px;
}
h1 {
  font-size: 2em;
  margin-bottom: 10px;
}
.color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}
.color-box {
  width: 100%;
  padding-top: 100%;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
}
.color-box::after {
  content: attr(data-color);
  position: absolute;
  bottom: 5px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 12px;
  color: #fff;
  text-shadow: 0 0 2px #000;
}
    