/* Sticky Box for floating items */
.sticky-top-custom {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1020;
    background-color: lightgray;
}

/* Container styling for the overall layout */
.container {
    border: 1px solid lightgray;
    padding: 1px;
    min-height: 256px;
    text-align: center;
    box-sizing: border-box;
}

/* Styling for the container holding available images */
#left-container {
    background-color: lightgray;
    border-radius: 5px;
    padding: 1px;
    overflow-y: auto;
    max-height: 100vh;
    box-sizing: border-box;
}

/* Increase top padding for the left container to ensure space when cards zoom */
#left-container {
    padding-top: 5px; /* Adjust this value as needed */
    padding-left: 5px; /* Adjust this value as needed */
    padding-right: 5px; /* Adjust this value as needed */
    padding-bottom: 5px; /* Adjust this value as needed */
}

/* Styling for the draggable cards */
.card {
    cursor: pointer;
    position: relative;
    border: 1px solid #ccc; /* Reduced border width for default state */
    border-radius: 7px;
    overflow: hidden;
    transition: transform 0.3s, z-index 0.3s, opacity 0.3s;
    margin: 5px; /* Ensure equal margin on all sides */
    box-sizing: border-box;
    opacity: 1;
}

.card img.small {
    width: 100%; /* Ensure the small image fits the card size */
    height: 100%;
    object-fit: cover;
}

.card img.large {
    width: 100%; /* Ensure the large image fits the card size */
    height: 100%;
    object-fit: cover;
}

/* Hover effect for cards */
.card:hover {
    transform: scale(1.75);
    border: 3px solid #ccc; /* Increase border width when hovered */
    z-index: 1000; /* Ensure it appears on top */
    opacity: 1; /* Ensure full opacity when hovered */
}

/* Disable zoom for cards in the dropzone */
.dropzone .card:hover {
    transform: none; /* Disable zoom */
    z-index: auto; /* Reset z-index to default */
}

/* Styling for the drop zones */
.dropzone {
    border: 2px dashed #ccc; /* Consistent border width for dropzones */
    width: 256px;  /* Fixed width for large dropzones */
    height: 256px; /* Fixed height for large dropzones */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 50px;
    font-weight: bold;
    color: #aaa;
    margin: 5px; /* Ensure equal margin on all sides */
    box-sizing: border-box;
    background-color: #e8e8e8;
}

/* Placeholder text for empty drop zones */
.dropzone.empty::before {
    content: attr(data-zone);
}

/* Styling for the remove button */
.remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: red;
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
}

/* Styling for placeholders in the available images section */
.placeholder {
    width: 128px;  /* Match the width of the small card */
    height: 128px; /* Match the height of the small card */
    border: 1px dashed #ccc; /* Consistent border width with card */
    margin: 3px; /* Ensure equal margin on all sides */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f8f8f8;
    opacity: 1;
}

.placeholder.empty {
    background: #f8f8f8;
}

/* Wrapper for the available cards, allowing for scrolling */
.card-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 1px;
    justify-content: center;
}

/* Wrapper for the dropzones */
.dropzone-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Styling for the heading */
h5 {
    font-size: 2.5em; /* Increased font size for the heading */
    font-weight: bold;
    margin-bottom: 20px; /* Increased bottom margin for more spacing */
    color: #333;
}

/* Button styling */
.btn:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}

/* Floating right part */
.floating-right {
    position: sticky;
    top: 0;
    background-color: white;
    padding: 1px;
    border-radius: 7px;
    max-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* No hover effect for the overview cards */
.no-hover .card:hover {
    transform: none; /* Disable scaling on hover */
    border: 1px solid #ccc; /* Maintain the same border width */
    z-index: auto; /* Reset z-index */
    opacity: 1; /* Keep full opacity */
}