html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scroll */

}
.chat-button {
    position: absolute;
    z-index:99;
    top: 800px;
    right: 230px;
    padding: 10px 20px;
    cursor: pointer;
}

.chat-modal {
    display: none;
    border:0px;
    position: absolute;
    z-index: 1000;
    top: 0px;
    left: calc(100vw - 590px);

    width: 460px;
    height: 750px;
    max-width: 200%;
    max-height: 1750px;
    background-color: rgba(255, 255, 255, 0); /* d1을 투명하게 */
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    border-radius: 20px;
}

.chat-modal-content {
    padding: 0px;
    border: none;
    max-height: 750px;
    overflow-y: hidden;

    overflow: hidden;
    background-color: rgba(255, 255, 255, 0); /* d1을 투명하게 */
}

.chat-modal-close {
    position: absolute;
    right: 10px;
    top: 5px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}



@media (max-width: 768px) {
    .chat-button {
        top: auto;
        bottom: 20px;
        right: 20px;
    }

    .chat-modal {
        width: 100vw;
        height: 100vh;
        left: 0;
        top: 0;
        position: fixed; /* Use fixed to ensure it covers the whole screen */
        display: none;
        overflow: hidden; /* Prevent scrolling within the modal */
        background-color: rgba(255, 255, 255, 0); /* Keep your existing background */
    }

    .chat-modal-close {
        position: absolute;
        right: 10px;
        top: 5px;
        color: #aaa;
        font-size: 28px;
        font-weight: bold;
        cursor: pointer;
        z-index: 1100; /* Ensure it is above other elements */
    }
    /* CSS to style the modal and remove scrollbars -----------------*/
    body.modal-open {
        overflow: hidden; /* Disable scrolling on the parent window */

    }

    .chat-modal {
        display: none;
        position: fixed;
        z-index: 1000;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0); /* Transparent background */
        overflow: hidden; /* Prevent scrolling within the modal */
    }

    .chat-modal-content {
        width: 100%;
        height: 100%;
        overflow: hidden; /* Prevent scrolling within the modal content */
        background-color: rgba(255, 255, 255, 0); /* Transparent background */
    }

    iframe {
        overflow: hidden; /* Prevent scrolling within the iframe */
    }

    .input-box {
        position: fixed; /* Fix the input box to the bottom of the viewport */
        bottom: 0;
        width: 100%;
        z-index: 1000; /* Ensure it is above other elements */
        background-color: white; /* Ensure it is visible */
    }

}
