body {
  background-color: #f8f9fa;
  color: #343a40;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 0;
}

.container {
  flex: 1;
}

.card {
  max-width: 500px;
  margin: 10px auto;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  background-color: #ffffff;
  padding: 20px;
}

.card-title {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 15px;
}

.color-box {
  width: 100px;
  height: 100px;
  margin: 0 auto 10px;
  border: 2px solid #343a40;
}

.table th,
.table td {
  vertical-align: middle;
  text-align: center;
}

#colorResult {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  margin-top: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.footer {
  color: black;
  padding: 20px 0;
  text-align: center;
  width: 100%;
  position: relative;
  bottom: 0;
}

/* Styles for centering the content */
.centered-content {
  display: flex;

  min-height: 100vh;

  flex-direction: column;
  padding: 50px;
}

.centered-content h1 {
  margin-bottom: 20px;
}

.centered-content p {
  max-width: 800px;
  line-height: 1.6;
  margin-bottom: 20px; /* Added margin for spacing between paragraphs */
}

.centered-content ul {
  text-align: left; /* Align bullet points to the left */
  list-style-type: none; /* Remove default bullet points */
  padding-left: 0; /* Remove default left padding */
}

.centered-content ul li {
  margin-bottom: 10px; /* Add spacing between list items */
  line-height: 1.4; /* Adjust line height for list items */
}

.centered-content strong {
  font-weight: bold; /* Ensure strong tags are bold */
}

#suggestions {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  width: calc(100% - 2px);
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #ced4da;
  border-top: none;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: none;
  z-index: 1000;
}

#suggestions.active {
  display: block;
}

#suggestions li {
  cursor: pointer;
  padding: 10px;
  list-style-type: none;
  border-bottom: 1px solid #ced4da;
}

#suggestions li:hover {
  background-color: #f8f9fa;
}

#suggestions li.active {
  background-color: #434444;
  color: white;
}

#suggestions li:first-child {
  border-top: 1px solid #ced4da;
}

/* Style for input boxes */
input[type="text"],
input[type="color"] {
  width: 100%;
  height: 40px;
  padding: 0 10px;
  margin-top: 10px;
  border: 1px solid #ced4da;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  font-size: 1rem;
}

input[type="color"] {
  padding: 0;
}

input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

input[type="color"]::-webkit-color-swatch {
  border: none;
}

/* Additional styles for hiding colorResult when switching tabs */
.tab-content .tab-pane {
  display: none;
}

.tab-content .tab-pane.active {
  display: block;
}

/* Set color picker dropdown width */
#colorPicker {
  width: 100% !important;
}

/* Optional: Ensure the parent container has full width */
#picker .form-group {
  width: 100%;
}

/* Styles for Similar Colors section */
#similarColors {
  margin-top: 20px;
  display: none;
}

#similarColors .card {
  max-width: 100%; /* Adjust to fit the container */
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  background-color: #ffffff;
  padding: 15px;
}

#similarColors .card-title {
  font-size: 1.25rem;
  text-align: center;
  margin-bottom: 10px;
}

#similarColors .color-box {
  width: 100px; /* Adjust based on your design */
  height: 100px; /* Adjust based on your design */
  margin: 0 auto 10px;
  border: 2px solid #343a40;
  border-radius: 10px;
}

@media (min-width: 576px) {
  #similarColors {
    display: block;
  }

  #similarColors .color-box {
    width: 120px; /* Adjust based on your design */
    height: 120px; /* Adjust based on your design */
  }
}

.copy-icon {
  cursor: pointer;
}

.copy-message {
  font-size: 12px;
  color: green;
  margin-top: 5px;
  display: none;
}
