:root {
    --primary-color: #6264a7;
    --background-color: #36393f;

body {
    margin: 0;
    font-family: 'Rubik', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-color: var(--background-color);
}

h1 {
    color: var(--primary-color);
    font-family: 'Rubik', sans-serif;
    text-align: center;
    margin-bottom: 10px;
}

#chat-container {
    background-color: #2f3136;
    width: 100%;
    max-width: 1800px;
    height: 800px;
    border-radius: 8px;
    overflow: hidden;
    color: #ffffff;
    display: flex;
    flex-direction: column;
}

#messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    box-sizing: border-box;
}

#chat-title,
#messageInput,
#sendButton,
#settingsButton {
    user-select: none;
    font-family: 'Rubik', sans-serif;
}

    .message,
    .reply-message {
        margin-bottom: 10px;
        padding: 8px;
        border-radius: 5px;
        box-sizing: border-box;
        opacity: 0;
        transition: opacity 0.2s ease-in-out;
        word-wrap: break-word;
    }

    /* Hintergrundfarbe für eigene Reply-Nachrichten */
    .reply-message.own-message {
        background-color: #4a4e57;
    }

    /* Hintergrundfarbe für andere Reply-Nachrichten */
    .reply-message.other-message {
        background-color: #424242;
    }


.own-message {
    background-color: #4a4e57;
}

.other-message {
    background-color: #424242;
}

.message.show {
    opacity: 1;
}

.message .username {
    color: var(--primary-color);
    font-weight: bold;
    user-select: none;
    margin-right: 8px;
}

.message .username:before {
    content: "@";
}

.message img {
    text-decoration: none;
    cursor: pointer;
    margin-right: 8px;
    border-radius: 5px;
}

#input-container {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: #40444b;
    box-sizing: border-box;
}

#messageInput {
    flex: 1;
    padding: 10px;
    border: 1px solid #6264a7;
    border-radius: 4px;
    background-color: #40444b;
    color: #ffffff;
    box-sizing: border-box;
}
    #sendButton {
        font-family: 'Material Symbols Outlined', sans-serif;
        font-size: 14px;
        background-color: var(--primary-color);
        color: white;
        border: none;
        padding: 8px 12px;
        border-radius: 5px;
        margin-left: 10px;
        cursor: pointer;
        transition: all 0.2s ease;
        content: '\e163';
    }

    #sendButton:hover {
        background-color: #45a049;
        transform: scale(1.1);
    }

    #sendButton:not(:hover) {
        transform: scale(1.0);
        transition: all 0.2s ease-in-out;
    }

#settingsButton {
    font-family: 'Material Symbols Outlined', sans-serif;
    content: '\e8b8';
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    margin-left: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    #settingsButton:hover {
        background-color: #45a049;
        transform: scale(1.1);
        transition: all 0.2s ease-in-out;
    }

    #settingsButton:not(:hover) {
        transform: scale(1.0);
        transition: all 0.2s ease-in-out;
    }

#messages-container::-webkit-scrollbar {
    width: 8px;
}

#messages-container::-webkit-scrollbar-thumb {
    background-color: #555;
    border-radius: 8px;
}

#messages-container::-webkit-scrollbar-track {
    background-color: #2f3136;
}

#devOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

#devOverlay.show {
    opacity: 1;
    pointer-events: auto;
}

#devButtonsContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.devButton {
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    margin: 10px 0;
    cursor: pointer;
    user-select: none;
    font-family: 'Rubik', sans-serif;
    transition: background-color 0.2s ease;
}
    .devButton:hover {
        background-color: #45a049;
        transform: scale(1.1);
        transition: all 0.2s ease-in-out;
    }

    .devButton:not(:hover) {
        transform: scale(1.0);
        transition: all 0.2s ease-in-out;
    }

#devContent {
    user-select: none;
    border: 2px solid #4a4e57;
    border-radius: 10px;
    padding: 20px;
    background-color: #333;
    color: #fff;
}

#devContent p {
    margin: 0;
}

.image {
    max-width: 100%;
    max-height: 3.5em;
    display: block;
    user-select: none;
}

#fileInput {
    display: none;
}

#fileInputLabel {

    font-family: 'Material Symbols Outlined', sans-serif;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    margin-left: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    user-select: none;
    font-size: 14px;
    margin-top: 4px;
}

#fileInputLabel:hover, #fileInputLabel:active {
    background-color: #45a049;
    transform: scale(1.1);
    transition: all 0.2s ease-in-out;
}

    #fileInputLabel:not(:hover) {
        transform: scale(1.0);
        transition: all 0.2s ease-in-out;
    }

#fileInputLabel:before {
    content: '\e43e';
}

.image-preview {
    max-width: 50px;
    max-height: 50px;
    user-select: none;
    padding: 8px 12px;
    border-radius: 10px;
    margin-left: 10px;
}

#overlay-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    transition: opacity 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
}

#lightbox {
    text-align: center;
}

#lightbox img {
    max-width: 50%;
    border-radius: 5px;
}

    .message .reply-button {
        display: none;
        font-family: 'Material Symbols Outlined', sans-serif;
        content: '\e15e';
        background-color: var(--primary-color);
        color: white;
        border: none;
        padding: 8px 12px;
        border-radius: 5px;
        margin-left: 10px;
        cursor: pointer;
        transition: background-color 0.2s ease;
    }

    .message .reply-button:hover {
        background-color: #45a049;
        font-family: 'Material Symbols Outlined', sans-serif;
        transform: scale(1.1);
    }

    .message .reply-button:not(:hover) {
        transform: scale(1.0);
        transition: all 0.2s ease-in-out;
    }

#replyOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

#replyContent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #2f3136; /* Hintergrundfarbe anpassen */
    padding: 20px;
    border-radius: 8px; /* Border Radius anpassen */
    width: 300px;
    color: #ffffff;
    box-sizing: border-box;
}

#originalMessage {
    font-size: 14px; /* Schriftgröße anpassen */
    color: #888;
    margin-bottom: 10px;
}

#replyText {
    margin-bottom: 10px;
}


label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--primary-color);
}

    #replyInput {
        width: 300px; /* Feste Breite in Pixeln (oder die gewünschte Größe) */
        max-width: 100%;
        padding: 10px;
        margin-bottom: 10px;
        border: 1px solid var(--primary-color);
        border-radius: 4px;
        background-color: #40444b;
        color: #ffffff;
        box-sizing: border-box;
        font-family: 'Rubik', sans-serif;
        resize: none; /* Entferne die Größenänderung */
    }

#sendReplyButton,
#closeReplyOverlay {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 5px;
    transition: background-color 0.2s ease-in-out;
    font-family: 'Material Symbols Outlined', sans-serif;
}

#sendReplyButton:before {
    content: '\e163';
}

#closeReplyOverlay:before {
    content: '\e5cd';
}

#sendReplyButton:hover,
#closeReplyOverlay:hover {
    background-color: #45a049;
    transform: scale(1.1);
    font-family: 'Material Symbols Outlined', sans-serif;
}

#replyButton {
    font-family: 'Rubik', sans-serif;
    content: '\e8b8';
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    margin-left: 10px;
    user-select: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .italic {
        font-style: italic;
    }

#replyButton:hover {
    background-color: #45a049;
    transform: scale(1.1);
}

    .reply-message {
        background-color: var(--primary-color);
        padding: 10px;
        margin: 10px;
        border-radius: 5px;
    }

    .original-text {
        font-size: 12px;
        color: #ffffff; /* Ändere die Farbe entsprechend deinem Design */
    }

    /* Stil für die Reply-Nachrichten beim Einblenden */
    .reply-message.show {
        opacity: 1;
        transition: opacity 0.2s ease-in-out;
    }

    .message.mention {
        animation: blink 5s infinite;
    }

    @keyframes blink {
        50% {
            opacity: 0;
        }
    }
}

