:root {
    --fox: #e27c21;

    --mdui-typescale-body-large-line-height: 0.8rem !important;
    --mdui-typescale-body-large-size: 0.75rem !important;
    --mdui-typescale-body-large-tracking: 0.01rem !important;
    --mdui-typescale-body-large-weight: 400 !important;

    --mdui-typescale-body-medium-line-height: 0.8rem !important;
    --mdui-typescale-body-medium-size: 0.75rem !important;
    --mdui-typescale-body-medium-tracking: 0.01rem !important;
    --mdui-typescale-body-medium-weight: 400 !important;

    /* --mdui-shape-corner-extra-large: 0 !important; */
}
.hispad {
  height: 20px;
  background: #ffffff10;
  text-align: center;
  line-height: 20px;
}
.newmsgs {
  height: calc(100% + 28px);
}
.users-flair {
  width: 16px;
  overflow: hidden;
}
.loading-container {
    width: 400px;
    text-align: center;
}
       
.flex_pannel[active] {
    display: flex;
} 
.progress-bar {
    background-color: transparent;
    height: 20px;
    width: 100%;
    border: 2px solid #ffffff;
    position: relative;
    box-sizing: border-box;
}
.users-nick-mod {
    color: #1fad83 !important;
}
.users-nick-admin {
    color: #d73737 !important;
}
.progress-inner {
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    overflow: hidden;
}
        
.progress {
    background-color: #ffffff;
    height: 100%;
    width: 0%;
    transition: width 0.05s linear;
}
        

@keyframes breathe-drop {
  0% {
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.7));
    -webkit-filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.7));
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.7));
    -webkit-filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.7));
  }
  100% {
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.7));
    -webkit-filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.7));
  }
}
@keyframes breathe-drop2 {
  0% {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.7));
    -webkit-filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.7));
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.7));
    -webkit-filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.7));
  }
  100% {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.7));
    -webkit-filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.7));
  }
}
#load-screen {
    display: flex;
    position: fixed;
    bottom: 0;
    top: 0;
    left: 0;
    right: 0;
    justify-content: center;
    flex-direction: column;
    background: #cc5500;
    z-index: 999999999;
    opacity: 1;
    transition: all 0.2s;
    align-items: center;
    user-select: none;
}
#load-screen > div {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 32px;
    align-items: center;
    user-select: none;
}
#load-screen > div > img {
    image-rendering: pixelated;
    width: 64px;
    height: 64px;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.3));
    -webkit-filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.3));
    animation: breathe-drop 2s infinite;
    user-select: none;
    user-drag: none;
    pointer-events: none;
}
#load-screen > div > h1 {
    font-size: 64px;
    color: #fff;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    -webkit-filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    animation: breathe-drop2 2s infinite;
    user-select: none;
    user-drag: none;
    pointer-events: none;
}
mdui-button {
    border-radius: var(--mdui-shape-corner-none);
}
.main-page {
    display: flex;
}
#size-warn, #lock-page, #nojavascript {
    z-index: 2025;
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    top: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgb(var(--mdui-color-background));
}
#size-warn > div, #lock-page > div, #nojavascript > div {
    display: flex;
    align-items: center;
    flex-direction: column;
}
.edit-box {
    width: 100%;
    height: 100%;
    padding: 0;
}
.update-history {
    padding: 4px 18px;
    display: block !important;
}
#settings > mdui-tabs, #info-box > mdui-tabs {
    width: 500px;
    height: 300px;
}
#join-box-pad {
    width: 100%;
}
.input-list {
    position: absolute;
    left: 300px;
    right: 300px;
    bottom: 43px;
    max-height: 400px;
    margin: 16px 32px;
    border-radius: 1rem;
    background: rgb(var(--mdui-color-surface));
    display: none;
}
.fox {
    z-index: 1000;
}
#app {
    display: flex;
    height: 100vh;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100vh;
    font-family: monospace;
    overflow: hidden;
}


#channel-list,
#onlineUsers-list {
    padding: 4px 8px;
    width: 100%;
    height: 100%;
}

#channel-list>mdui-list-item,
#onlineUsers-list>mdui-list-item {
    text-overflow: ellipsis;
}

#onlineUsers-list,
#channel-list {
    overflow-y: scroll;
}


.hide-scroll {
    padding-right: 0;
    /* No right padding if only vertical scrollbar */
    position: relative;
}

.hide-scroll::-webkit-scrollbar {
    width: 0;
    /* Chrome, Safari, and Edge */
    display: none;
    /* Firefox */
}

.input {
    position: fixed;
    width: calc(100% - 600px);
    bottom: 0;
}

.messages {
    padding: 8px 16px;
    overflow-y: scroll;
    height: 100%;
}

body,
input,
textarea {
    font-family: "DejaVu Sans Mono", monospace, "Noto Color Emoji";
    font-size: 12px;
    -o-tab-size: 4;
    -moz-tab-size: 4;
    tab-size: 4;
}

input[type="checkbox"] {
    margin: 0;
    margin-right: 1em;
}

label {
    vertical-align: 3px;
}

input,
textarea {
    background: none;
    border: none;
    outline: none;
    resize: none;
    max-height: 400px;
}

h4 {
    font-size: 12px;
    margin: 1em 0;
    font-weight: bold;
}

pre {
    tab-size: 2;
    white-space: pre-wrap;
    word-wrap: break-word;
    -o-tab-size: 4;
    -moz-tab-size: 4;
    tab-size: 4;
}

a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

a:hover {
    text-decoration: underline;
}

#sidebar-content ul {
    padding-inline-start: 20px;
}

#sidebar-content ul li {
    list-style: disc outside none;
}

ul,
ol {
    margin-top: 0;
    margin-bottom: 10px;
    display: block;
    list-style-type: disc;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    padding-inline-start: 40px;
}

ul li {
    list-style: inside;
}

.hidden {
    display: none;
}

.expand {
    height: 100%;
}

.container {
    max-width: 600px;
    margin: 0 auto;
}

#messages {
    padding-top: 2em;
}

.refmessage {
    padding-bottom: 1em;
}


.trip {
    font-size: 10px;
}


.text p {
    margin: 0;
}

p.folded {
    max-height: 10em;
    overflow: auto;
}

p.folded::before {
    content: "Folded, Click or scroll to See more...";
    color: grey;
}

* {
    overflow-wrap: break-word;
    /*Note: In contrast to word-break, overflow-wrap (word-wrap is now an alias of overflow-wrap) will only create a break if an entire word cannot be placed on its own line without overflowing.
  https://developer.mozilla.org/en-US/docs/Web/CSS/overflow-wrap
  
  I think this is a proper solution of too long messages without any spaces which may overflow the paragraph, though i dont know how official hack.chat client does the same thing.*/
}

.katex-display,
.katex {
    overflow-x: hidden;
    overflow-y: hidden;
}

pre.captcha {
    line-height: 1;
    width: max-content;
    font-size: small;
}

.colorful {
    background: linear-gradient(to right,
            #6600cc,
            #9900ff,
            #9900cc,
            #660066,
            #9900cc,
            #9900ff,
            #6600cc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: rainbow_animation 6s ease-in-out infinite;
    background-size: 400% 100%;
}

.jebbed {
    background: linear-gradient(to right,
            #6666ff,
            #0099ff,
            #00ff00,
            #ff3399,
            #6666ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: rainbow_animation 6s ease-in-out infinite;
    background-size: 400% 100%;
}

@keyframes rainbow_animation {

    0%,
    100% {
        background-position: 0 0;
    }

    50% {
        background-position: 100% 0;
    }
}

button#send {
    width: max-content;
    height: 100%;
}

button#sent-pre,
button#sent-next {
    width: auto;
    margin: 0%;
}

button.char {
    float: left;
}

#footer {
    position: fixed;
    bottom: 0;
    width: 100%;
}

#chatform {
    width: 100%;
    border-top: 1px solid;
}

.input {
    padding: 1em;
    box-sizing: border-box;
    background: rgb(var(--mdui-color-surface-container-highest));
}

#captcha-retry {
    color: rgb(var(--mdui-color-error));
}

#sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    padding: 1em;
    border-left: solid 1px;
    overflow-y: auto;
}

#sidebar-content {
    width: 180px;
    padding-bottom: 10%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 3px;
    margin-top: 0px;
}

blockquote {
    padding: 3px 10px;
    margin: 3px;
    border-left: 5px solid #4e4e4e;
}

code {
    padding: 2px 4px;
    font-size: 90%;
    color: #000000;
    background-color: #4e4e4e;
    border-radius: 4px;
}

hr {
    margin-top: 20px;
    margin-bottom: 20px;
    border: 0;
    border-top: 1px solid #4e4e4e;
}

mark {
    background-color: #60ac39;
    color: black;
}

pre {
    display: block;
    padding: 9.5px;
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.42857143;
    color: #797979;
    word-break: break-all;
    word-wrap: break-word;
    background-color: #4e4e4e;
    border: 1px solid #000;
    border-radius: 4px;
}

table {
    background-color: transparent;
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
    border-spacing: 0;
    border-collapse: collapse;
}

table>caption+thead>tr:first-child>th,
table>colgroup+thead>tr:first-child>th,
table>thead:first-child>tr:first-child>th,
table>caption+thead>tr:first-child>td,
table>colgroup+thead>tr:first-child>td,
table>thead:first-child>tr:first-child>td {
    border-top: 0;
}

table>thead>tr>th {
    vertical-align: bottom;
    border-bottom: 2px solid #4e4e4e;
}

table>thead>tr>th,
table>tbody>tr>th,
table>tfoot>tr>th,
table>thead>tr>td,
table>tbody>tr>td,
table>tfoot>tr>td {
    padding: 8px;
    line-height: 1.42857143;
    vertical-align: top;
    border-top: 1px solid #4e4e4e;
}

th {
    text-align: left;
}

td,
th {
    padding: 0;
}

table>tbody>tr:nth-child(odd)>td,
table>tbody>tr:nth-child(odd)>th {
    background-color: #4e4e4e;
}

table>thead>tr>th,
table>tbody>tr>th,
table>tfoot>tr>th,
table>thead>tr>td,
table>tbody>tr>td,
table>tfoot>tr>td {
    padding: 8px;
    line-height: 1.42857143;
    vertical-align: top;
    border-top: 1px solid #4e4e4e;
}

td,
th {
    padding: 0;
}

img {
    max-width: 50%;
    max-height: 800px;
}

ul,
ol {
    padding: 0;
    margin: 0;
}

ul ul,
ol ol {
    padding-left: 2em;
}

.break {
    white-space: pre-line;
}

#messages,
#preview {
    border: none;
    padding: 0 0.5em 0 0.5em;
}

.message {
    padding-bottom: 0.5em;
}

.chat-nick {
    margin: 0;
    float: none;
    text-align: left;
    display: inline;
}

.text {
    display: inline;
}

.text * {
    overflow: hidden;
}

body {
    /*background: #20201d;*/
    color: #a6a28c;
}

input,
textarea {
    color: #a6a28c;
}

.nick {
    color: #6684e1;
}

.trip {
    color: #6e6b5e;
}

.text a {
    color: #e8e4cf;
}

.admin .nick {
    color: #d73737;
}

.mod .nick {
    color: #1fad83;
}

.me .nick {
    color: #b854d4;
}

.info .nick,
.info .text {
    color: #60ac39;
}

.warn .nick,
.warn .text {
    color: #cfb017;
}

#footer {
    background: #20201d;
}



.head {
    height: 25px;
    width: 25px;
    vertical-align: middle;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.bd-msg {
    position: absolute;
    right: 0;
    top: 0;
    line-height: 1.5em;
}

.user {
    display: flex;
    flex-direction: row;
    padding: 4px 8px;
    justify-content: space-between;
}
.users-nick {
    color: rgb(var(--mdui-color-on-surface));
    font-size: var(--mdui-typescale-body-large-size);
    font-weight: var(--mdui-typescale-body-large-weight);
    letter-spacing: var(--mdui-typescale-body-large-tracking);
    line-height: var(--mdui-typescale-body-large-line-height);
}
.users-trip {
    color: rgb(var(--mdui-color-on-surface-variant));
    font-size: var(--mdui-typescale-body-medium-size);
    font-weight: var(--mdui-typescale-body-medium-weight);
    letter-spacing: var(--mdui-typescale-body-medium-tracking);
    line-height: var(--mdui-typescale-body-medium-line-height);
    flex: 1;
    text-align: right;
}