body {
  font-family: 'Inter', sans-serif;
  background-color: #f9f9f9;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  padding: 20px; /* Add padding to ensure content is not stuck to the top */
  box-sizing: border-box;
}

#kanvaswl-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh; /* Adjust height to account for header or top spacing */
  padding: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  background-color: #ffffff;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
  box-sizing: border-box; /* Ensure padding and border are included in height */
}

#kanvaswl-main {
  display: flex;
  flex-direction: row;
  gap: 20px;
  width: 100%;
  height: 100%; /* Ensure it fits within the container */
  box-sizing: border-box; /* Ensure padding and border are included in height */
}

#kanvaswl-left {
  display: flex;
  flex-direction: column; /* Arrange canvas and controls in a column */
  gap: 20px; /* Space between canvas and controls */
  flex: 1; /* Allow left section to grow */
}

#kanvaswl-canvas-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

#kanvaswl-canvas {
  border: 2px solid #CCCCCC;
  border-radius: 10px;
  width: 500px; /* Set fixed width */
  height: 500px; /* Set fixed height */
}

#kanvaswl-controls {
  display: flex;
  flex-direction: column;
  gap: 10px; /* Space between buttons and other elements */
  width: 100%; /* Ensure it fits within the container */
}

#kanvaswl-controls input[type="text"] {
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 100%; /* Ensure it fits within the container */
  box-sizing: border-box;
}

#kanvaswl-controls label {
  font-weight: bold;
}

#kanvaswl-controls input[type="range"] {
  width: 100%; /* Ensure it fits within the container */
}

/* Prompt */

#kanvaswl-prompt {
  font-family: 'Inter', sans-serif;
  color: #333; /* Adjust text color */
  background-color: #fff; /* Ensure white background */
  border: 1px solid #ccc; /* Light border color */
  border-radius: 10px; /* Rounded corners */
  padding: 15px; /* Padding for space inside */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  height: auto; /* Adjust height based on content */
  min-height: 60px; /* Minimum height to be three lines */
  line-height: 1.5; /* Line height for readability */
  resize: none; /* Prevent resizing */
  box-sizing: border-box; /* Include padding in width and height */
}

#kanvaswl-prompt::placeholder {
  color: #aaa; /* Lighter color for placeholder */
  font-style: italic; /* Italicize placeholder text */
}

#kanvaswl-prompt:focus {
  outline: none; /* Remove default focus outline */
  border-color: #6b00d7; /* Border color on focus */
  box-shadow: 0 0 10px rgba(107, 0, 215, 0.3); /* Shadow on focus */
}

/* Dropdown Button */
.dropbtn {
  background-color: #4CAF50;
  color: white;
  padding: 10px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  right: 10px; /* Adjust to your needs */
  top: 10px; /* Adjust to your needs */
}

/* The container <div> - needed to position the dropdown content */
/* The container <div> - needed to position the dropdown content */
.dropdown {
  position: absolute;
  display: inline-block;
  right: 10px; /* Adjust to your needs */
  top: 10px; /* Adjust to your needs */
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
  border-radius: 4px;
}

/* Links inside the dropdown */
.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  border-bottom: 1px solid #ddd;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
  background-color: #f1f1f1;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Change the background color of the dropdown button when the dropdown content is shown */
.dropdown:hover .dropbtn {
  background-color: #3e8e41;
}

/* Fidelity slider */

#fidelity-container {
  display: flex;
  align-items: center;
  gap: 10px; /* Space between elements */
}

#fidelity-count {
  margin-left: 10px;
  white-space: nowrap; /* Prevent the value from wrapping to the next line */
}

#kanvaswl-fidelity {
  -webkit-appearance: none;
  width: 100%;
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(45deg, #d391fa, #c364fa, #4fa4f7, #a230ed, #4fa4f7, #6b00d7, #3e00b3, #4fa4f7);
  outline: none;
  opacity: 0.9;
  transition: opacity .15s ease-in-out;
  margin-right: 10px;
}

#kanvaswl-fidelity::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

#kanvaswl-fidelity::-moz-range-thumb {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

#fidelity-count {
  background: #f9f9f9;
  padding: 5px 10px;
  border-radius: 10px;
  font-weight: bold;
  min-width: 30px;
  text-align: center;
}

/* Buttons */

/* Container for buttons to align them side by side */
.button-group {
  display: flex;
  gap: 10px; /* Space between buttons */
   justify-content: center;
  margin-top: 10px;
  width:100%;
}

#kanvaswl-draw {
  background: linear-gradient(45deg, #d391fa, #c364fa, #4fa4f7, #a230ed, #4fa4f7, #6b00d7, #3e00b3, #4fa4f7);
  background-size: 400% 400%;
  animation: gradient 5s ease infinite;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 20px 40px; /* Increased padding */
  font-size: 16px; /* Increased font size */
  
  font-weight: 400;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

/* Style for Clear Canvas button */
button.white {
  background-color: white;
  border: 2px solid transparent;
  color: #4d4d4d;
  border-radius: 20px;
  padding: 10px 20px; /* Smaller padding */
  font-size: 16px; /* Smaller font size */
  font-weight: 400;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border 0.3s ease, color 0.3s ease;
  background-clip: padding-box;
  border-image: linear-gradient(45deg, #d391fa, #c364fa, #4fa4f7, #a230ed, #4fa4f7, #6b00d7, #3e00b3, #4fa4f7);
  border-image-slice: 1;
}

button.white:hover {
  border-color: #6b00d7;
  color: #6b00d7;
}



#kanvaswl-draw:hover {
  transform: scale(1.05);
}

#kanvaswl-draw:focus {
  outline: none;
}

#kanvaswl-draw img {
  margin-right: 10px;
  height: 20px; /* Adjust the height as needed */
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

#kanvaswl-download-fetched, #kanvaswl-download-refined {
  background: linear-gradient(45deg, #d391fa, #c364fa, #4fa4f7, #a230ed, #4fa4f7, #6b00d7, #3e00b3, #4fa4f7);
  background-size: 400% 400%;
  animation: gradient 5s ease infinite;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 20px 40px; /* Increased padding */
  font-size: 16px; /* Increased font size */
  font-weight: 400;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

#kanvaswl-instant-refine {
  background-color: white;
  border: 2px solid #ccc;
  color:#4d4d4d; 
  border-radius: 20px;
  padding: 10px 20px; /* Smaller padding */
  font-size: 16px; /* Smaller font size */
  font-weight: 400;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border 0.3s ease, color 0.3s ease;
  background-clip: padding-box;
  border-image-slice: 1;
}

#kanvaswl-download-fetched:hover, #kanvaswl-download-refined:hover {
  transform: scale(1.05);
}

#kanvaswl-download-fetched:focus, #kanvaswl-download-refined:focus {
  outline: none;
}

#kanvaswl-instant-refine:hover {
  border-color: #6b00d7;
  color: #6b00d7;
}

#kanvaswl-instant-refine:focus {
  outline: none;
}

button {
  border: none;
  border-radius: 5px;
  padding: 10px;
  cursor: pointer;
  width: 100%; /* Ensure it fits within the container */
  box-sizing: border-box;
}

button:hover {
}

button:disabled {
  cursor: not-allowed;
}

button.white {
  background-color: white;
  border: 2px solid #ccc;
  color:#4d4d4d;
}

#kanvaswl-right {
  display: flex;
  flex-direction: column; /* Arrange results in a column */
  gap: 20px; /* Space between results */
  flex: 1; /* Allow right section to grow */
}

#kanvaswl-fetched-image {
  max-width: 100%;
  height: auto;
  border: 2px solid #CCCCC;
  border-radius: 10px;
  width: 500px; /* Set fixed width */
  height: 500px; /* Set fixed height */
}

#kanvaswl-images {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%; /* Ensure it fits within the container */
  padding-bottom: 0px; /* Add padding to create space around the content */
}

.download-buttons {
  display: flex;
  gap: 10px;
}
