/* Container for positioning */
.bookFooter-left {
    display: flex;
    align-items: center;
    position: relative; /* Set a relative position for the container */
}

/* Shape mold container */
.bookFooter-left-container {
    display: flex;
    align-items: center;
}

/* Shape mold elements */
.shape-mold {
    cursor: pointer;
    position: relative;
}

/* Dropdown menu (initially hidden) */
.dropdown-menu {
    display: none;
    position: absolute; /* Position the dropdown relative to the viewport */
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 10px;
    list-style: none;
    margin: 0;
    bottom: 0px; /* Adjust this value to control the vertical position */
    left: 50%; /* Center horizontally */
    transform: translateX(-50%);
    max-height: 90vh; /* Set max-height to 90% of the viewport height */
    overflow-y: auto; /* Add a vertical scrollbar if needed */
    transition: bottom 0.3s; /* Add a smooth transition for the bottom property */
}

/* Style for dropdown menu items */
.dropdown-menu li {
    margin: 5px 0;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInDown 0.3s ease-out forwards;
    animation-delay: 0.1s;
}

/* Show dropdown menu when the shape-mold is active */
.shape-mold.active + .dropdown-menu {
    display: block;
    max-height: 100px; /* Adjust this value based on menu height */
    top: -100px; /* Adjust this value to push it upwards */
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
