body {
  font-family: "Arial", sans-serif;
  text-align: center;
  margin: 0;
  padding: 0;
  background: url("images/background-main.jpg") no-repeat center center/cover;
  color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  flex-direction: column;
}
/* Chrome, Edge, and Safari */
#colorResult::-webkit-scrollbar {
  width: 5px;
}

#colorResult::-webkit-scrollbar-track {
  background: #e4e4e400;
}

#colorResult::-webkit-scrollbar-thumb {
  background-color: #6848db72;
  border-radius: 10px;
  border: 3px solid #ffffff00;
}

.logo {
  display: block;
  margin: 0 auto;
  width: 300px; /* Adjust the width as needed */
  height: auto;
}

#about {
  color: #fff;
}

input[type="file"] {
  display: none;
}

label {
  display: inline-block;
  padding: 10px 20px;
  margin-top: 20px;
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.5s ease;
  background: url("images/background-second.jpg");
}

label:hover {
  background-color: #a8dadc;
}

button {
  display: inline-block;
  padding: 10px 20px;
  margin-top: 20px;
  background: url("images/background-second.jpg");
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.5s ease;
}

button:hover {
  background: url("images/background-second.jpg");
  background-blend-mode: lighten;
}

#colorResult {
  margin: 10px 30px;
  font-size: 1.2em;
  color: #042827;
  max-height: 300px;
  overflow-y: auto;
  padding: 10px;
}

.color-item {
  display: flex;
  align-items: center;
  margin-top: 10px;
}

.color-square {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  border-radius: 3px;
}

.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-left-color: #4a4a4a;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin-top: 20px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#imagePreviewContainer {
  margin: 10px 20px 0px 20px;
}

#imagePreview {
  max-width: 100%;
  max-height: 200px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.color-item {
  display: flex;
  align-items: center;
  margin: 12px 0;
  padding: 15px;
  border-radius: 8px;
  background: #f8f9fa;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.color-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.color-square {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  margin-right: 20px;
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.color-info {
  flex-grow: 1;
}

.color-name {
  font-size: 1.1em;
  font-weight: 600;
  margin-bottom: 4px;
}

.color-values {
  display: flex;
  gap: 15px;
  font-size: 0.9em;
  color: #666;
}

.processing-message {
  text-align: center;
  padding: 20px;
  color: #666;
}

.error-message {
  padding: 20px;
  background: #fff3f3;
  border-radius: 8px;
  color: #dc3545;
  text-align: center;
}

.error-message button {
  margin-top: 10px;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  background: #dc3545;
  color: white;
  cursor: pointer;
}

.copy-notification {
  position: absolute;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.9em;
  right: 20px;
  animation: fadeOut 2s forwards;
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
