/* width */
::-webkit-scrollbar {
    width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
    background: transparent;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: hsl(from var(--main) h s calc(l * 3));
    border-radius: 12px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: hsl(from var(--main) h s calc(l * 3));
}

:root {
    --primary: #34383C;
    --primary-bright: #898d93;
    --primary-hover: color-mix(in srgb, var(--primary) 80%, white 20%);
    --primary-selected: color-mix(in srgb, var(--primary) 80%, white 40%);

    --secondary: #2492c9;
    --secondary-hover: color-mix(in srgb, var(--secondary) 80%, white 20%);

    --success: #5CCD5C;
    --success-hover: color-mix(in srgb, var(--success) 80%, white 20%);

    --error: indianred;
    --error-hover: color-mix(in srgb, var(--error) 80%, white 20%);

    --primary-text: #F0F0F0;

    --transition-all: all 200ms;
    --input-border: 1px solid rgb(98, 98, 98);
}

#homeScreen {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 80px;

    background: #24292E;
    z-index: 99990;
    display: none;
    transition: left 180ms ease, right 180ms ease;
}

#homeScreen.visible {
    display: block;
    transition: left 180ms ease, right 180ms ease;
}

.homeDivider{
    margin: 10px !important;
    display: block;
}

.sortable-chosen,
sortable-chosen.sortable-ghost {
    opacity: 0;
}

.sortable-ghost {
    background-color: var(--primary);
    opacity: 1;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: #33373b;
}

* {
    font-family: 'Roboto', sans-serif;
}

#header {
    height: calc(40px - 16px);
    width: calc(100% - 16px);

    padding: 8px;

    color: white;

    position: relative;
    display: block;

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#serverlist {
    height: calc(100% - 16px - 40px);
    width: calc(80px - 16px);

    padding: 8px;
    /*align-content: center;*/
    text-align: center;

    color: white;

    display: block;
    float: left;

    overflow-y: auto;
}




#content-container {
    height: calc(100% - 40px);
    width: calc(100% - 80px - 200px - 300px);

    color: white;

    display: block;
    float: left;

    border-top-right-radius: 6px;
    border-top-left-radius: 6px;
}

#channelname-bar {
    height: 20px;
    width: calc(100% - 32px) !important;

    padding: 16px;

    display: block;
    float: left;

    font-weight: bold;
    font-size: 20px;

    box-shadow: 0 4px 8px -2px black !important;
    position: relative;
    /* should fix overlapping issue */
}

#channelname {
    float: left;
}

#channelname-icons .icon {
    float: right;

    background-color: red;
    border-radius: 50%;

    width: 25px !important;
    height: 25px !important;
    margin-left: 10px;

    position: relative;

    background-size: cover;

    object-fit: cover;
    background-color: transparent;
    background-position: center center;
}

.screenshare-view-current {
    width: 400px !important;
    height: auto;
    float: left;
}

#content {
    height: calc(100% - 40px - 40px - 32px - 32px - 60px);
    width: calc(100% - 16px - 15px);
    padding: 16px;
    margin-bottom: 65px;

    color: white;

    display: block;
    float: left;

    overflow-y: auto;
}

#messagebox-content {
    background-color: transparent;
    color: white;

    border: none;
    padding: 8px;

    height: calc(100% - 3px);
    width: calc(100% - 32px - 40px - 25px - 5px);

    outline: none;
    resize: none !important;
    margin: -20px 8px 0 8px;
    overflow-y: hidden;
}

.message-container p {
    line-height: 150% !important;
}

#messagebox-media {
    width: 25px;
    height: 25px;
    text-align: center;

    float: left;
    display: block;
    background-color: transparent;
}

#message-actions-image {
    width: 30px;
    height: 30px;
    display: block;
    float: right;
    border-radius: 50%;
    cursor: pointer;
}

#message-actions {
    display: block;
    float: right;
    width: 30px;
    margin: -2px 2.5px 0px 0px;
    overflow: hidden;
}

#infolist {
    height: calc(100% - 32px - 40px);
    width: calc(200px - 32px);
    padding: 16px;
    color: white;

    display: block;
    float: left;

    overflow-y: auto;
}

.server-icon {
    width: 45px;
    height: 45px;

    background-size: cover !important;
    object-fit: cover;
     background-position: center center;
     
    filter: grayscale(100%);
    background-color: transparent;
}

.server-entry {
    margin-bottom: 8px;
    cursor: pointer;
}


.server-icon:hover {
    border-radius: 10%;
    transition: all 400ms;

    -webkit-transform: scale(1.1);
    -moz-transform: scale(1.1);
    -o-transform: scale(1.1);
    transform: scale(1.1);
    filter: grayscale(0%);
}

.server-icon:not(:hover) {
    border-radius: 50%;
    transition: all 400ms;

    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -o-transform: scale(1);
    transform: scale(1);
    filter: grayscale(100%);
}

#profile-qa {
    height: calc(50px);
    width: calc(300px - 20px);

    padding: 10px;

    display: block;
    float: left;
    bottom: 0;
    position: fixed;
}

#profile-qa-img-container {
    width: 50px;
    height: 50px;

    border-radius: 50%;
    overflow: hidden;

    display: block;
    float: left;

    -webkit-transition: transform .5s ease;
}

#profile-qa-img {
    background-size: cover;

    object-fit: cover;
    background-position: center center;

    width: 50px;
    height: 50px;

    box-sizing: border-box;
    border: 4px solid transparent;

    border-radius: 50%;
    cursor: pointer;
}

#profile-qa-img:hover {
    -webkit-transform: scale(1.1);
    -moz-transform: scale(1.1);
    -o-transform: scale(1.1);
    transform: scale(1.1);

    transition: all 400ms;
}

#profile-qa-img.talking {
    border-color: #aa1515;
    outline-offset: 6px;
}

#profile-qa-img:not(:hover) {
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -o-transform: scale(1);
    transform: scale(1);

    transition: all 400ms;
}

#profile-qa-info {
    padding: 10px;

    display: block;
    float: left;

    overflow: hidden;
    background-color: transparent;

    width: 60%;
    height: 28px;
    cursor: pointer;
}

#profile-qa-info label {
    width: 150px;
    height: 20px;

    overflow: hidden;
    background-color: transparent;
    display: block;
    float: left;
}

#profile-qa #webrtc-controls {
    display: block;
    float: left;
    background-color: transparent;

    padding: 12px 12px 0 32px;

    height: calc(45px - 24px);
    width: auto;
    cursor: pointer;
}

.memberlist-container {
    display: block;
    float: left;
    width: 100%;

    background-color: transparent;

    margin-bottom: 12px;
    cursor: pointer;
}

.memberlist-img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    float: left;

    background-size: cover;
    object-fit: cover;
    background-position: center center;
}

.memberlist-member-info {
    height: 20px;
    overflow: hidden;

    float: left;
    margin-left: 8px;

    background-color: transparent;
    width: 100px;
}

.memberlist-member-info.status {
    font-size: 12px;
    width: calc(100% - 48px);

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.infolist-role {
    margin-bottom: 8px;
}

.message-container {
    display: block;
    float: left;
    background-color: transparent;

    width: calc(100% - 40px);
    padding: 8px 20px;

    margin-bottom: 0px;
    margin-top: 0px;
}

.message-container:hover {
    background-color: rgb(47, 49, 54, 0.5);
    border-radius: 5px;

    transition: all 800ms;
    background-color: rgba(41, 43, 47, 0.5);
}

.message-container:not(:hover) {
    transition: all 800ms;
    background-color: transparent;
}

.message-profile-content-message-appended p,
.message-profile-content-message p {
    padding: 0 8px 4px 8px !important;
    text-align: left !important;
}

.message-profile-content-message-appended:hover {
    background-color: rgba(41, 43, 47, 0.5);
}

.message-profile-info-name {
    font-weight: normal;
    cursor: pointer;
}

.message-profile-img-container,
.message-profile-img {
    width: 40px;
    height: 40px;

    display: block;
    float: left;

    background-color: transparent;

    border-radius: 50%;
    cursor: pointer;

    background-size: cover;
    object-fit: cover;
    background-position: center center;
}

.message-profile-info {
    height: 30px;
    overflow: hidden;

    display: block;
    float: left;

    background-color: transparent;
    width: calc(100% - 50px - 12px);

    margin: 4px 0 0 8px;
    font-size: 16px;
    font-weight: bold;

    word-break: break-all;

    cursor: pointer;
}

.message-profile-content {
    display: block;
    float: left;
    background-color: transparent;

    padding: 0 8px 0 8px;
    font-size: 14px;
    width: calc(100% - 50px - 16px);


    overflow: hidden;
}

.message-profile-content a {
    color: white;
}

.message-profile-content p {
    float: left;
    display: inline-block;
    word-wrap: break-word;
    width: 100%;

    margin: 0;
    font-size: 14px;
}

.message-profile-content iframe {
    float: left;
    display: block;

    border-radius: 6px;
}

.systemAnnouncementChat p {
    margin: 0;
}

.systemAnnouncementChat {
    width: calc(100% - 10px - 60px);
    padding: 8px 8px 8px 8px;
    font-style: italic;

    margin: 4px 20px 4px 20px;

    border-left: 4px solid #ABB8BE;
    border-radius: 4px;
    margin-bottom: 40px;

    color: lightgray;

    float: left;
    display: block;
}

.systemAnnouncementChatUsername {
    color: #ABB8BE;
}

code.markdown {
    font-size: 12px;
    background-color: #292a2d !important;
    font-weight: bold;
    padding: 4px 8px 4px 8px;
    border-radius: 4px;

    margin: 0 4px 0 4px !important;
    font-family: "Lucida Console", "Courier New", monospace;
}

pre.markdown {
    font-size: 12px;
    background-color: #292a2d !important;

    padding: 8px;
    margin-left: 4px;
    margin-top: 4px;

    border-radius: 8px;
    float: left;
    display: block;

    overflow-x: scroll;
    line-height: 150%;

    width: calc(100% - 8px);
}

.iframe-container {
    display: inline-block;
    float: left;
    width: 100%;
    border: none;

    /* margin: 8px 0 8px 0; */
}

.image-embed,
.message-profile-content .message-profile-content-message img {
    max-width: 400px;
    height: auto;
    text-align: left;
    margin: 8px 0 8px 0;
    border-radius: 6px;
}

.message-profile-content-message {
    width: 100% !important;
}

.video-embed {
    display: block;
    float: left !important;
    margin: 8px 0 8px 0;
    border-radius: 6px;
    border: none;
}

#context-menu {
    position: fixed;
    z-index: 10000;
    width: 150px;
    border-radius: 6px;
    display: none;
}

#context-menu .item {
    margin: 8px 4px;
    padding: 6px !important;
    font-size: 14px !important;
    color: #eee;
    cursor: pointer;
}

#context-menu .item:hover {
    background: #343434;
    border-radius: 4px;
}

#context-menu.visible {
    display: block;
}

#typing-indicator {
    font-style: italic;
    font-size: 14px;
    margin-bottom: -2px !important;
    display: none;

    float: left;
    width: 100%;
    bottom: 4px;

    overflow: hidden;
}

#typing-indicator-container {
    float: left;
    display: block;

    position: fixed;
    bottom: 10px;
    margin-left: 20px;
}

.message-profile-info .timestamp,
.systemAnnouncementChat .timestamp {
    margin-left: 20px;
    font-size: 10px;
    color: #989898;
}

#modalBox {
    background-color: #1D2125;
    border: 1px solid #ABB8BE;
    border-radius: 6px;

    color: #ABB8BE;

    padding: 16px;

    filter: blur(0) !important;
    z-index: 1;

    position: fixed;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);

    display: none;
}

#modalBoxTitle {
    font-size: 20px;
    margin-top: 0;
}

#channeltree h2 {
    margin-top: -10px;
    margin-bottom: -0px;
    font-size: 16px;
}

#channeltree hr {
    margin-bottom: 40px;
}

#serverlist .selectedGroup,
#mobile_GroupList .selectedGroup {
    border-radius: 6px !important;
    filter: grayscale(0%) !important;
}

.home-indicator {
    position: absolute;
    display: none;

    font-size: 14px;
    color: white;
    font-weight: bold;

    background-color: indianred;
    border-radius: 50%;
    border: 2px solid black;

    z-index: 2;
    text-align: center;

    top: 40px;
    left: 46px;

    margin: 0;
    padding: 2px 6px;
}

#mobile_GroupList .home-indicator{
    top: 2px !important;
    left: 38px !important;
}

.home-indicator.visible {
    display: inline-block !important;
}

#profile-qa-settings {
    width: 20px;
    height: 20px;

    margin: 15px 15px 0 0;

    background-color: transparent;
    float: right;

    background-image: url("/img/settings.png");
    background-size: cover;

    object-fit: cover;
    background-color: transparent;
    background-position: center center;
}

#profile-qa-info-status {
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Details Markers */
/*
summary {list-style: none}
summary::-webkit-details-marker {display: none; }

details summary::before {
    margin-right: 4px;
      🡒🡑↓
    content:"🡒";
    color: #ABB8BE;
}

details[open] summary::before {
    margin-right: 4px;
    content:"↓  " ;
    color: #ABB8BE;
}
*/

pre.editedMsg {
    margin-top: 0;
    margin-left: 6px;
    font-size: 10px;
    color: #989898;
    display: block;
    float: left;
    font-style: italic;
}

.inline-text-emoji {
    width: 25px;
    height: 25px;

    margin-bottom: -6px !important;
}

.inline-text-emoji.big {
    width: 50px;
    height: 50px;
    display: inline-block;

    margin: 0px 0px 2px 0px;
}

#emoji-box-container {
    width: 30%;
    height: 40%;
    position: fixed;
    z-index: 99999;

    padding: 8px;
    border-radius: 8px;

    overflow-y: auto;
    overflow-x: hidden;
}

#emoji-box-container h2 {
    margin-top: 0;
    font-size: 18px;
}

#emoji-box-container .emoji-entry {
    float: left;
    display: block;
}

.emoji-entry img.emoji:hover {
    cursor: pointer;
    border-radius: 10%;
    transition: all 200ms;
}

.emoji-entry img.emoji:not(:hover) {
    border-radius: 0;
    transition: all 200ms;
}

#emoji-box-container .emoji-entry .emoji-img img {
    float: left;
    width: 35px;
    height: 35px;
    display: block;
    margin: 4px;
}

.rainbow-border {
    --angle: 0deg;
    border: 1px solid;
    border-image: conic-gradient(from var(--angle), red, yellow, lime, aqua, blue, magenta, red) 1;
    animation: 10s rotate linear infinite;
}

@keyframes rotate {
    to {
        --angle: 360deg;
    }
}

@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

#emoji-box-header-container {
    margin: -8px;
    margin-bottom: 8px;

    display: block;
    float: left;

    width: calc(100% + 2.3%);
    /* height: 12%; */

    padding: 4px;
    padding-left: 8px;
    padding-bottom: 10px;
    padding-top: 10px;

    overflow: hidden;
}

#emoji-entry-container {
    display: block;
    float: left;
    background-color: transparent;

    width: calc(100% - 0%);
    height: calc(100% - 18% - 0%);

    overflow-y: auto;
}

.emoji-box-header h2 {
    margin: 0;
}

.emoji-box-header {
    display: block;
    float: left;

    padding: 6px 12px 6px 12px;
    margin-right: 8px;
}

.emoji-box-header:hover {
    cursor: pointer;
    border-radius: 8px;
}

.SelectedTab {
    border-radius: 8px;
}

label.mention {
    /*background-color: rgba(255, 174, 0, 0.12);*/
    color: skyblue;

    padding: 2px 4px 2px 4px !important;
    margin: 0px 2px 0px 0px;

    border-radius: 4px;
    /*width: calc(100% - 16px) !important;*/

    display: inline-block !important;

    cursor: pointer;
}

.group-entry-marker {

    float: left;
    display: none;
    position: relative;

    margin-top: 28%;
    margin-left: -8px;

    background-color: white;
    border-radius: 50%;

    width: 6px;
    height: 6px;


}

#gif-searchbar {

    width: 100%;
    float: left;
    margin-bottom: 6px;
    display: none;
}

#gif-searchbar-input {

    width: calc(100% - 2.9%);
    float: left;

    outline: none;
    background-color: #40444B;
    border: 1px solid #40444B;
    padding: 4px;

    color: white;

    border-radius: 4px;
}

.offline_pfp {
    filter: grayscale(100%);
}

@keyframes start-change-color {
    from {
        background-color: #ed7e07;
    }

    to {
        background-color: #ddb787;
    }
}

@keyframes stop-change-color {
    from {
        background-color: #ed7e07;
    }

    to {
        background-color: #ddb787;
    }
}

#profile-role-menu {
    position: fixed;
    z-index: 100000;
    width: calc(208px - 16px + 8px);
    height: 150px;

    padding: 8px;
    background: #2F3136;
    color: white;
    border-radius: 6px;
    border: 1px solid gray;

    text-overflow: ellipsis;
    overflow-y: auto;
    display: none;
    /*display: none;*/
}

#role-menu-header,
#role-menu-search-input {
    display: inline-block;
    float: left;
}

#role-menu-header {
    width: 100%;
    float: left;
    position: sticky;
}

#role-menu-search-input {
    outline: none !important;
}

#role-menu-search-icon {
    margin-left: 8px;
}

#role-menu-search-icon {
    background-color: transparent;
    width: 22px;
    height: 22px;

    display: block;
    float: left;
}

#role-menu-list {
    height: 120px;
    width: 100%;

    margin-top: 8px;

    display: block;
    float: left;

    overflow-y: auto;
}

.role-menu-entry {
    padding: 10px 0 10px 0;
    border-radius: 4px;
}

.role-menu-entry:hover {
    background: #484545;
}

#role-menu-search-input:hover,
.role-menu-entry:hover,
.role-menu-entry label:hover {
    cursor: pointer;
}

.role-menu-entry-roleName {
    -webkit-user-select: none;
    user-select: none;
}


.editor-container {
    margin-top: -60px;
}

#editMsgHint {
    color: lightskyblue;
    font-style: italic;
    text-decoration: underline;
    font-size: 14px;
    margin: 4px 8px 16px 16px;
}

#editMsgHint:hover {
    cursor: pointer;
}

.headerIcon {
    background-size: cover;
    width: 25px;
    height: 25px;
    margin-right: 10px;
    float: right;
    cursor: pointer;
}

.headerIcon.donators{    
    background-image: url('/img/heart_white.webp');
}

.headerIcon.help{    
    background-image: url('/img/help.png');
}

li.info {
    font-size: 12px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: gray;
    font-style: italic;
    list-style: none;
    /* remove real bullet */
}

li.info .bullet {
    color: gray;
    font-size: 1.5em;
    line-height: 1;
}

li.info span.bullet::before {
    content: "•";
}


li.info:hover {
    background-color: transparent !important
}