* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background: #f6f7fb;
  color: #222;
  padding: 40px 20px;
}

input:focus {
  outline: none;
  border-color: #0078d7;
  box-shadow: 0 0 0 3px rgba(0, 120, 215, 0.2);
}

.tool-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.container {
  width: 420px;
}

h1 {
  text-align: center;
  margin-bottom: 20px;
  color: #111;
}

.preview {
  height: 80px;
  border-radius: 10px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  background: #fff;
}

.grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

label {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  gap: 5px;
  color: #333;
}

input {
  padding: 9px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: #fff;
  color: #111;
  transition: 0.15s ease;
}

.content-wrapper {
  display: flex;
  justify-content: center;
}

.content {
  max-width: 800px;
  width: 100%;
}

h2 {
  margin-top: 40px;
  margin-bottom: 12px;
  font-size: 20px;
  color: #111;
}

p {
  margin-bottom: 14px;
  line-height: 1.6;
  color: #444;
}

.examples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.example-box {
  background: #fff;
  border: 1px solid #ddd;
  padding: 12px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

a {
  color: #0078d7;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.parent {
  text-align: center;
  margin-top: 30px;
}
input[type="color"] {
  height: 40px;
  padding: 4px;
  border-radius: 8px;
  border: 1px solid #ccc;
  cursor: pointer;
  width: 100%;
}
#picker {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.picker-label {
  position: relative;
  display: block;
  cursor: pointer;
}
.picker-display {
  position: relative;
  height: 80px;
  border-radius: 10px;
  border: 1px solid #ddd;

  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
  margin-bottom: 1rem;
}
.picker-icon {
  position: absolute;
  bottom: 6px;
  right: 8px;
  font-size: 18px;
  opacity: 0.8;
  pointer-events: none;
}
.picker-display:hover {
  transform: scale(1.01);
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}