body {
    font-family: monospace;
    background-color: #A6AEBF;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    flex-direction: column;
    padding: 10px;
}
.button-group {
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center;    /* Align vertically */
    gap: 8px; /* Space between buttons */
    margin-top: 20px;
}

.operation-btn {
    padding: 6px 12px; /* Smaller button size */
    font-size: 12px; /* Smaller text size */
    background-color: #6a80b9; /* Default button color */
    color: white;
    border: none;
    border-radius: 4px; /* Slightly smaller rounded corners */
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.operation-btn:hover {
    background-color: #5368a5; /* Hover color */
    transform: scale(1.05); /* Slight hover zoom effect */
}

/* Selected (active) button style */
.operation-btn.active {
    background-color: #80899b; /* Selected button color (green) */
    font-weight: bold;
    border: 2px solid #80899b;
}




/* Neumorphism Card */
.card {
    background: #A6AEBF;
    border-radius: 20px;
    box-shadow: 8px 8px 15px #9aa2b3, -8px -8px 15px #9aa2b3;
    padding: 20px;
    text-align: center;
    width: 100%;
    max-width: 600px;
    box-sizing: border-box;
}

.card::-webkit-scrollbar {
    width: 12px; /* Width of the scrollbar */
}

/* Scrollbar track (area that the thumb moves along) */
.card::-webkit-scrollbar-track {
    background: #e0e5ec;
    border-radius: 10px; /* Rounded corners */
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.1), inset -2px -2px 5px rgba(255, 255, 255, 0.7);
}

/* Scrollbar thumb (the draggable part) */
.card::-webkit-scrollbar-thumb {
    background-color: #A6AEBF; /* Color of the scrollbar thumb */
    border-radius: 10px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2); /* Inset shadow for neumorphism */
    transition: background-color 0.3s ease; /* Smooth transition when hovering */
}

/* Hover effect for scrollbar thumb */
.card::-webkit-scrollbar-thumb:hover {
    background-color: #8d9db6; /* Change color on hover */
}

h1 {
    color: #6A80B9;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

h3 {
    color: #6A80B9;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

h5 {
    color: #6A80B9;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.docs-button {
    display: inline-block;
    margin: 20px 0;
    padding: 10px 20px;
    background-color: #6A80B9;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    border-radius: 15px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
  }
  
  .docs-button:hover {
    background-color: #6A80B9;
    transform: translateY(-2px); /* Slight lift effect */
  }

  
.container {
    background: #e0e5ec;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 8px 8px 15px rgba(0, 0, 0, 0.1), -8px -8px 15px rgba(255, 255, 255, 0.7);
    text-align: center;
  }


  .header h1 {
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 10px;
  }
  
  .header p {
    color: #555;
    font-size: 1rem;
  }
  
  .heart {
    color: #ff5f5f;
  }
  
  .gist-container {
    margin: 20px 0;
    padding: 20px;
    background: #e0e5ec;
    border-radius: 12px;
    box-shadow: 6px 6px 10px rgba(0, 0, 0, 0.1), -6px -6px 10px rgba(255, 255, 255, 0.7);
  }
  
  .go-container {
    margin-top: 30px;
  }
  
  .go-button {
    background: #e0e5ec;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.1), -6px -6px 12px rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    color: #333;
    border: none;
    transition: 0.3s;
  }
  
  .go-button.github {
    background-color: #6A80B9;
    color: white;
  }
  
  .go-button:hover {
    box-shadow: 8px 8px 16px rgba(0, 0, 0, 0.2), -8px -8px 16px #A6AEBF;
    transform: translateY(-2px);
  }
  
  .footer {
    text-align: center;
    margin-top: 30px;
    color: #888;
  }
  
  /* Neumorphism effect */
  .neumorph {
    background: #e0e5ec;
    border-radius: 12px;
    box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.2), -6px -6px 12px #A6AEBF;
    transition: all 0.3s ease-in-out;
  }
  
  .neumorph:active {
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.2), inset -2px -2px 5px#A6AEBF;
  }
/* Neumorphism Drag & Drop Area */
#dragDropArea {
    border: 2px dashed #6A80B9;
    padding: 40px;
    border-radius: 20px;
    background-color: #4b3a3a00;
    width: 100%;
    max-width: 600px;  /* Set max-width for desktop screens */
    text-align: center;
    margin: 20px 0;
    font-size: 18px;
    color: #555;
    transition: background-color 0.3s, border-color 0.3s;
    position: relative;
    box-sizing: border-box;
}



#dragDropArea.dragover {
    background-color: #d0f4ff;
    border-color: #007B9A;
}

/* Upload Button inside Drag Area */
#downloadButton {
    display: block; /* Makes the button behave like a block-level element */
    background-color: #6A80B9;
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    margin: 20px auto; /* Centers the button horizontally and adds vertical margin */
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.1), -4px -4px 8px rgba(255, 255, 255, 0.6);
}




#uploadButtonInside:hover {
    background-color: #6274a0;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2), -2px -2px 6px rgba(255, 255, 255, 0.5);
}

button {
    background-color: #6A80B9;
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.1), -4px -4px 8px #A6AEBF;
    transition: all 0.3s ease;
    margin-top: 10px;
}

button:hover {
    background-color: #6A80B9;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2), -2px -2px 6px rgba(255, 255, 255, 0.5);
}
#dragDropArea p {
    font-size: 14px;  /* Set a smaller font size for the text */
    margin: 5px 0;    /* Optional: Adjust margins if needed */
}

/* Loader */
#loader {
    display: none;
    text-align: center;
    margin-top: 20px;
}

#loader img {
    width: 50px;
    margin-bottom: 10px;
}

/* Before / After Comparison */
#beforeAfterContainer {
    display: flex;
    justify-content: space-evenly;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

#beforeImage, #afterImage {
    width: 45%;
    height: 250px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 8px 8px 15px rgba(0, 0, 0, 0.1), -8px -8px 15px #A6AEBF;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#beforeImage::before, #afterImage::after {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    display: block;
    opacity: 0.5;
}

#beforeImage::before {
    color: white;
    text-align: center;
    font-size: 18px;
    line-height: 250px;
}

#afterImage::after {
    color: white;
    text-align: center;
    font-size: 18px;
    line-height: 250px;
}

/* Button for Before/After toggle */
.toggleButton {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    position: absolute;
    top: 10px;
    left: 10px;
    cursor: pointer;
    z-index: 1;
}

/* Before / After Labels */
.beforeLabel, .afterLabel {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #6A80B9;
    color: white;
    padding: 5px 15px;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
}

.afterLabel {
    right: 10px;
    left: auto;
}

/* Show result when available */
#result {
    display: none;
    text-align: center;
    margin-top: 20px;
}

/* Image adjustments */
#beforeImage img, #afterImage img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 20px;
    object-fit: contain;
}

/* Center Download Button */
#downloadButton {
    display: none;
    background-color: #6A80B9;
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    margin-top: 20px;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.1), -4px -4px 8px #A6AEBF;
}
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1; /* Make sure particles are behind content */
}

#downloadButton:hover {
    background-color: #6A80B9;
}

/* Media Query for Mobile */
@media (max-width: 600px) {
h1 {
    font-size: 1.2rem;
}

#beforeImage, #afterImage {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.card {
    padding: 15px;
}

#dragDropArea {
    padding: 20px;
    max-width: 100%;  /* Ensure it takes the full width available on mobile */
    width: 100%;
}

#uploadButtonInside {
    padding: 8px 15px;
}

button {
    padding: 8px 15px;
}

#beforeAfterContainer {
    flex-direction: column;
    align-items: center;
}

#beforeImage, #afterImage {
    width: 80%;  /* Keep images at 80% width for better visibility */
}
}