#image-container {
    display: inline-block; /* Adjust to fit the image's size */
    position: relative; /* Enable positioning for overlay */
}
#image-container img {
    display: block; /* Remove extra spacing below the image */
    max-width: none; /* Prevent scaling */
    max-height: none; /* Prevent scaling */
}
.grid-line {
    position: absolute;
    background-color: red;
    opacity: 0.7;
}
.grid-line.horizontal {
    height: 1px;
    width: 100%;
    cursor: pointer;
}
.grid-line.vertical {
    width: 1px;
    height: 100%;
    cursor: pointer;
}
#controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}
#controls .row {
    display: flex;
    gap: 10px;
    width: 100%;
}
#controls label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 10px;
}
#controls button {
    align-self: flex-start;
    padding: 5px 10px;
}
#toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}
.toast {
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    margin-top: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    animation: fadeInOut 3s ease-in-out;
}
@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    10%, 90% { opacity: 1; }
}
#sliced-images-container {
    position: relative;
    margin-top: 20px;
    border: 2px dashed grey; /* Add grey dashed border */
    display: none; /* Initially hidden */
    overflow: hidden; /* Ensure content fits within the container */
}