@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

button {
  border: none;
  font-family: inherit;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #83a8df, #c3cfe2);
  font-family: "Poppins", sans-serif;
}

.container {
  padding: 2rem;
  width: calc(100% - 48px);
  max-width: 800px;
  background-color: #fff;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.title {
  padding-bottom: 1rem;
  position: relative;
  text-align: center;
}

.title::after {
  content: "";
  width: 50%;
  height: 3px;
  background-color: #667eea;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

#generate-btn {
  margin-top: 2rem;
  padding: 1rem 2rem;
  color: #fff;
  font-size: 1.2rem;
  background: linear-gradient(45deg, #667eea, #764ba2);
  border-radius: 99px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: all 300ms ease;
  cursor: pointer;
}

#generate-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.palette-container {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.color-card {
  height: 150px;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: all 300ms ease;
  cursor: pointer;
}

.color-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.color-box {
  flex: 1;
}

.color-info {
  padding: 10px;
  background: #f2f2f2;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hex-value {
  text-transform: uppercase;
}

.copy-btn {
  color: #64748b;
  font-weight: 700;
  transition: all 300ms ease;
}
.color-card:hover .copy-btn {
  color: #667eea;
  transform: translateY(-2px);
}
