ul {
    padding: 10px;
}

li {
    list-style: none;
}

.system {
    color: #ccc;
    font-size: xx-small;
}

.content {
    color: #000;
}

#chatContainer {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

#messagesList {
    flex-grow: 1;
    overflow: auto;
}

#inputContainer {
    max-height: 200px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

#messageInput {
    flex-grow: 1;
    height: 100px;
    border: 1px solid #aaa;
    padding: 5px;
}

#sendButton, #sendImageButton {
    flex-basis: auto;
    margin: 5px;
    height: 40px;
}

body {
    overflow-y: hidden;
}

.hide {
    display: none !important;
}

.xhd {
    color: #333;
}

.kxpg {
    color: #208ed1;
}

img {
    max-width: 200px;
    height: auto;
}

.fullimg {
    max-width: 100% !important;
}

@media only screen and (max-width: 600px) {
    img {
        max-width: 100%;
        height: auto;
    }
}

.quote {
    background: #eee;
    padding: 5px;
    color: #aaa;
    display: inline-block;
    border-radius: 10px;
}

    .quote img {
        width: 150px;
    }

.linkRef, .linkModify {
    margin-left: 10px;
    display: none;
}

li.active a {
    display: inline-block;
}

#referContainer {
    cursor: pointer;
    padding: 5px;
    background-color: #efefef;
    font-style: italic;
    width: 100%;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    padding: 10px;
    background-color: #f5f5f5;
    overflow: auto;
    z-index: 20;
    box-shadow: 0px 0px 10px 3px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.pop-content {
    flex-grow: 1;
    overflow: auto;
    min-height: 100px;
    border: 1px solid #aaa;
    padding: 5px;
}

.pop-button-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px;
}

    .pop-button-container button {
        flex-basis: auto;
        width: 60px;
        height: 40px;
    }
