/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #181818;
  color: #e0e0e0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

h1 {
  font-size: 2.5rem;
  color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
}

form {
  background: #222;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 600px;
  margin: 20px 0;
}

label {
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
  color: #bb86fc;
}

textarea, select, input {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  margin-bottom: 16px;
  background-color: #2a2a2a;
  color: #e0e0e0;
  outline: none;
  transition: 0.3s;
}

textarea:focus, select:focus, input:focus {
  box-shadow: 0 0 10px rgba(187, 134, 252, 0.6);
}

button {
  background: linear-gradient(135deg, #bb86fc, #9a67ea);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  width: 100%;
}

button:hover {
  background: linear-gradient(135deg, #9a67ea, #7a52d4);
  transform: scale(1.05);
}

#loading {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #bb86fc;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

#resultImage {
  max-width: 100%;
  height: auto;
  margin-top: 20px;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
  display: block;
}

#color {
  width: 70px;
  height: 70px;
}
  
footer {
  margin-top: auto;
  padding: 20px;
  text-align: center;
  font-size: 0.9rem;
  color: #888;
  width: 100%;
  background-color: #222;
  border-top: 1px solid #333;
}

footer a {
  color: #bb86fc;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}
