<style>
    /* Styles for 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.7);
    }

    /* Styles for the modal content */
    .modal-content {
        background-color: #fff;
        padding: 20px;
        border: 1px solid #888;
        width: 50%; /* Default width for desktop */
        margin: 15% auto; /* Default margin for desktop */
        vertical-align: left;
    }

    /* Styles for the close button (X) */
    .close {
        position: absolute;
        right: 10px;
        top: 10px;
        font-size: 20px;
        font-weight: bold;
        cursor: pointer;
    }

    /* Styles for the dimmed background */
    #modalBackground {
        display: none;
        position: fixed;
        z-index: 1;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7);
    }

    /* Media query for screens smaller than 768px (typical mobile width) */
    @media only screen and (max-width: 600px) {
        .modal-content {
            width: 98%; /* Adjust the width for mobile */
            margin: 10% auto; /* Adjust the margin for mobile */

        }
        
    }
</style>
