/* Basic Reset */
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body{
  background: linear-gradient(to right, #15fff3, #fff7f4);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.container{
  background-color: white;
  border-radius: 0.5rem;
  padding: 2rem;
  width: 100%;
  max-width: 800px;
  box-shadow: 0 10px 25px #0c0c0c2c;
}

h1{
  text-align: center;
  margin-bottom: 1.5rem;
  color: #292929;
  position: relative;
  padding-bottom: 0.5rem;
}

h1::after{
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 3px;
  background: linear-gradient(to right, #9615ff, #d100c0);
  border-radius: 2px;
}

#generate-btn{
  background: linear-gradient(to right, #9615ff, #d100c0);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 0.8rem 1.5rem;
  cursor: pointer;
  font-weight: 500;
  margin-bottom: 2rem;
  font-size: 1rem;
}

#generate-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0px 10px 10px #2929293b;
}

#generate-btn:active{
  transform: translateY(0px);
}

.palette-container{
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit,minmax(130px, 1fr));
}

.color-box{
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0px 10px 10px #2929291a;
  transition: transform 0.2s;
}

.color-box:hover{
  transform: translateY(-5px);
}
.color{
  height: 120px;
  cursor: pointer;
}

.color-info{
  background-color: white;
  padding: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
}

.hex-value{
  font-weight: 500;
  letter-spacing: 0.5px;
}

.copy-btn{
  cursor: pointer;
  color: #292929;
  transition: color 0.2s;
}

.copy-btn:hover{
  color: #9615ff;
}

@media (max-width:768px) {
  .palette-container{
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit,minmax(100px, 1fr));
}
}