@charset "utf-8";

.chat-main {
    border: 1px solid #ddd;
    overflow: hidden;
    background-color: #fff;
    padding-top: 2px;
}

/*
.chat-main {
    border-radius: 5px;
}
*/

.chat-main * {
    box-sizing: border-box;
    font-size: inherit;
}

.chat-main #chat-box {
    flex-grow: 1;
    padding: 0px 10px 0 10px; /* 상, 우, 하, 좌 순서 */
    height: 539px;
    overflow-y: scroll;
    background-color: #fff;
}

.message-content {
    display: block;
}

.chat-main .input-group {
    display: flex;
    gap: 10px;
    padding: 10px;
    background-color: #fafafa;
    border-top: 1px solid #e6e6e6;
}

.chat-main input {
    flex: 1 !important;
    background-color: white !important;
    padding: 10px !important;
    border: 1px solid #ddd !important;
    border-radius: 5px !important;
    font-size: inherit !important;
    transition: all 0.3s ease !important;
}

.chat-main .send-btn, .chat-main .reset-btn {
    color: white !important;
    border: none !important;
    padding: 10px 15px !important;
    font-size: inherit !important;
    border-radius: 5px !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease !important;
}

.chat-main .reset-btn {
    margin-left: 10px;
}

.chat-main .chat-message .message-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
}

.chat-main .chat-message {
    margin-top: 15px;
    margin-bottom: 15px;
    display: block;
    line-height: 1.4em;
    word-wrap: break-word;
    word-break: break-all;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.chat-main .chat-message strong {
    margin: 0;
}

.chat-main .chat-message .datetime {
    font-size: 12px;
    color: #999;
    margin-left: 10px;
}

.chat-nick {
    display: inline-flex;
    align-items: center;
    padding: 2px 0;
    margin-right: 5px;
}

.chat-nick img {
    width: 24px;
    height: 24px;
    border-radius: 5px;
}

.delete-icon {
    cursor: pointer;
    margin-left: 1px;
    color: #ff5c5c;
    vertical-align: middle;
    margin-top: -3px;
}

.deleted-message {
    color: #ff5c5c;
}

@media all and (max-width: 1024px) {
    .chat-main {
        margin-left: 20px;
        margin-right: 20px;
    }
    .chat-main .input-group {
        flex-direction: column;
        gap: 10px;
    }

    .chat-main input {
        margin-right: 0;
        width: 100%;
    }

    .chat-main .send-btn, .chat-main .reset-btn {
        width: 100%;
        height: 55px;
        font-weight: bold;
    }

    .chat-main #chat-box {
        height: 392px;
    }
}