       /* Style the modal */
       .modal {
        display: none;
        position: fixed;
        z-index: 1;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: rgba(0, 0, 0, 0.4);
    }

    /* Style the modal content */
    .modal-content {
        background-color: #fefefe;
        margin: 15% auto;
        padding: 20px;
        border: 1px solid #000000;
        width: 80%;
        max-width: 600px;
        text-align: center;
        position: relative;
    }

    /* Style the close button */
    .close {
        position: absolute;
        top: 5px;
        right: 10px;
        font-size: 30px;
        font-weight: bold;
        cursor: pointer;
    }

    /* Style the canvas */
    #signature-pad {
        border: 1px solid #000000;
    }

    /* Style the modal buttons */
    .modal-buttons {
        margin-top: 20px;
    }

    /* Center the image horizontally and vertically within its container */
    .signature-container {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100%;
        width: 100%;
        /* Ensure the container takes full height of the parent */
    }

    /* Make the image responsive */
    .img-fluid {
        max-width: 100%;
        /* Ensure the image doesn't exceed its container's width */
        max-height: 100%;

    }

    .small-image {
        max-width: 200px;
        /* Set the maximum width */
        height: auto;
        /* Allow the height to adjust proportionally */
    }