* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: linear-gradient(135deg, #8B95FF, #1e90ff);
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 3px 20px 0px 20px;
}

header {
  text-align: center;
  margin-bottom: 30px;
}

header h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

header p {
  font-size: 1rem;
  opacity: 0.9;
}

.palette-container {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  padding: 25px;
  width: 100%;
  max-width: 600px;
  text-align: center;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

button,
.upload-label {
  background: #fff;
  color: #1e90ff;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
}

button:hover,
.upload-label:hover {
  background: #1e90ff;
  color: #fff;
}

#uploaded-img {
  max-width: 100%;
  margin: 15px 0;
  border-radius: 8px;
  display: none;
}

#palette {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.color-box {
  width: 100px;
  height: 100px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
  font-size: 0.8rem;
  cursor: pointer;
  transition: 0.3s ease;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.color-box:hover {
  transform: scale(1.1);
}

footer{
  text-align: center;
  margin:50px 0px 0px;
  font-size: 0.5rem;
  opacity: 0.6;
  color:#fff;
  background:#000;
  width:100vw;
  padding:40px 10px;
  
}

.testAlso{
  display:flex; flex-direction:column; align-items:space-around; margin-bottom:20px;
  font-weight:bold;
}
.testAlso a{
  color: white ;
  background:#1e90ff;
  border-radius:30px;
  width:fit-content;
  margin:5px auto;
  padding:3px;
  font-weight:bold;
  text-decoration:none;
}


@media (max-width: 480px) {
  .color-box {
    width: 80px;
    height: 80px;
    font-size: 0.7rem;
  }
}