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


body {
  font-family: Arial, Helvetica, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}


main {
  width: 100%;
  max-width: 1000px;
}


header {
  text-align: center;
  margin: 20px 0;
}

header h1 {
  font-size: 2.5rem;
  color: rgb(91, 226, 125);
  letter-spacing: 1px;
}


.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap; /* responsive */
  gap: 10px;
  margin: 20px 0;
  padding: 15px 20px;
  background-color: #f5f5f5;
  border-radius: 10px;
}


label {
  margin-right: 5px;
}

select {
  padding: 8px;
  border-radius: 6px;
}


#generate {
  color: #fff;
  background-color: #3d8f40;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  border: none;
  transition: 0.3s;

  margin-left: auto; 
}

#generate:hover {
  background-color: #56ce5c;
  transform: scale(1.05);
}


#palette {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  width: 100%;
  margin-top: 20px;
}


.color-box {
  height: 150px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}


.color-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.color-info {
  background: #50464677;
  padding: 12px;
  text-align: center;
  border-top: 1px solid #50464677;
}

.hex {
  font-size: 1rem;
  font-weight: bold;
  color: #222;
}

.hsl {
  font-size: 0.75rem;
  color: #413b3b;
  margin-top: 4px;
}

.color-preview {
  height: 120px;
  width: 100%;
}

.lock-btn {
  margin-top: 1px;
  padding: 4px 8px;
  border: none;
  background: #eee;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.8rem;
}

.lock-btn:hover {
  background: #ddd;
}

.footer {
  margin-top: 50px;
  padding: 20px;
  width: 100%;
  text-align: center;
  background: linear-gradient(135deg, #3d8f40, #56ce5c);
  color: white;
}

.footer p {
  font-size: 0.9rem;
  letter-spacing: 1px;
}