html {
  height: 100%;
}

body {
  font-family: 'Ubuntu Mono', monospace; /*Verdana, Geneva, Tahoma, sans-serif;*/
  font-size: 14px;
  height: 100%;
  margin: 0px;
  background-color: #112211;
  color: white;
}

body input {
  font-size: 14px;
  font-family: 'Ubuntu Mono', monospace;
}

pre {
  font-family: 'Ubuntu Mono', monospace;
  font-size: 14px;
}

input[type='text'] {
  border-color: lightgreen;
  color: white;
  background-color: transparent;
  height: 20px;
  padding-left: 5px;
  padding-right: 5px;
}

input.message-input-disabled {
    border-color: gray;
    color: gray;
}

input[type='password'] {
  border-color: lightgreen;
  color: white;
  background-color: transparent;
  height: 20px;
  padding-left: 5px;
  padding-right: 5px;
}

.main-screen {
  display: flex;
  overflow: hidden;
  height: 100vh;
}

.msg {
  display: flex;
  align-items: baseline;
  flex-shrink: 0;
}

.msg a.external {
  color: aquamarine;
}

.draw-border-red {
  border-left: 3px solid red;
}

.draw-border-blue {
  border-left: 3px solid blue;
}

.msg-content {
  overflow-x: hidden;
  overflow-wrap: break-word;
}

.reported {
  background: rgba(255, 51, 51, .3);
}
.reporter {
  margin-left: 2rem;
  margin-right: 1rem;
  display: flex;
  white-space: nowrap;
  align-items: center;
}
.reporter::before {
  content: 'Reporter';
  margin-right: 0.5rem;
}

.selected {
  background: darkgreen;
}

.to-me {
  background: forestgreen;
}

.author {
  display: inline;
  white-space: nowrap;
}

.author > pre {
  margin-top: 0px;
  margin-bottom: 0px;
}

.text {
  display: inline;
  margin-left: 10px;
}

.time {
  color: lightgray;
}

img {
  top: 10px;
}

a {
  text-decoration: none;
  color: lightgreen;
}

a.external {
  text-decoration: underline;
}

.servers {
  flex-shrink: 0;
  overflow-y: scroll;
  min-width: 220px;
  max-width: 200px;
  flex-grow: 1;
  padding: 10px;
}

.messages {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
  flex-grow: 1;
  width: 30%;
  min-height: 0px;
}

.messages-list {
  flex-direction: column;
  display: flex;
  overflow-y: scroll;
  flex-grow: 1;
  flex-shrink: 1;
  min-height: 0px;
  padding-left: 10px;
}

.show-ip-btn {
  margin: 5px 25px -29px 0px;
  position: sticky;
  z-index: 5;
  width: 40px;
  height: 20px;
  min-height: 24px;
  padding: 0;
  align-self: flex-end;
}

.rename-channel-btn {
  margin: 5px 75px -29px 0px;
  padding-top: 2px;
}

.message-input {
  display: flex;
  flex-shrink: 0;
  padding: 10px;
}

.close-user {
  display: inline-block;
  cursor: pointer;
  text-decoration: none;
  top: 0;
  right: 0;
  font-size: 18px;
}

.message-input form {
  display: flex;
  flex-grow: 1;
}

.message-input input {
  height: 20px;
  flex-grow: 1;
}

.moderation {
  flex-grow: 1;
  flex-shrink: 0;
  width: 30%;
  display: flex;
  flex-direction: column;
  padding: 10px;
}
.srv {
  display: flex;
  flex-direction: column;
}

.srv > .header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.channels {
  display: flex;
  flex-direction: column;
}

.chnl {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  position: relative;
}

.chnl:before {
  content: "|";
  margin-right: 6px;
}
.chnl.userReport:before {
  color: red;
}
.chnl .report-info {
  display: flex;
  flex-direction: column;
  position: absolute;
  right: 0;
  bottom: 0;
  transform: translateY(100%);
  background: #313131;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  pointer-events: none;
  opacity: 0;
  transition: .3s ease;
  z-index: 2;
}
.chnl:hover .report-info {
  pointer-events: auto;
  opacity: 1;
}

.status {
  display: flex;
  flex-direction: row;
  margin-left: 10px;
}

.status > * {
  margin-left: 5px;
}

.is-moderated:before {
  color: lightgreen;
  content: "o_O";
}

.is-suspicious:before {
  color: lightpink;
  content: "!!!";
}

.battle-link:before {
  color: light;
  content: "🔗";
}

.copy-battle-link {
  display: inline-block;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #90ee90;
  cursor: pointer;
  outline: 0 none;
}

.not-active {
  color: gray;
}

.padlock {
  height: 13px;
  margin-left: 1px;
}

.karma-logs-options {
  padding-left: 10px;
  padding-right: 10px;
}

.show-antiflood-messages {
  position: absolute;
  top: 0;
  right: 0;
}

.show-anticheat-messages {
  position: absolute;
  top: 20px;
  right: 0;
}

.order-karma {
  position: absolute;
  top: 40px;
  right: 0;
}

.has-unread {
  font-weight: bold;
}

.name {
  flex-grow: 1;
}

.rank-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-repeat: no-repeat;
  background-position: 50% 100%;
}

.rank-1 { background-image: url('/imgs/rank-icons/mini_1.png'); }
.rank-2 { background-image: url('/imgs/rank-icons/mini_2.png'); }
.rank-3 { background-image: url('/imgs/rank-icons/mini_3.png'); }
.rank-4 { background-image: url('/imgs/rank-icons/mini_4.png'); }
.rank-5 { background-image: url('/imgs/rank-icons/mini_5.png'); }
.rank-6 { background-image: url('/imgs/rank-icons/mini_6.png'); }
.rank-7 { background-image: url('/imgs/rank-icons/mini_7.png'); }
.rank-8 { background-image: url('/imgs/rank-icons/mini_8.png'); }
.rank-9 { background-image: url('/imgs/rank-icons/mini_9.png'); }
.rank-10 { background-image: url('/imgs/rank-icons/mini_10.png'); }
.rank-11 { background-image: url('/imgs/rank-icons/mini_11.png'); }
.rank-12 { background-image: url('/imgs/rank-icons/mini_12.png'); }
.rank-13 { background-image: url('/imgs/rank-icons/mini_13.png'); }
.rank-14 { background-image: url('/imgs/rank-icons/mini_14.png'); }
.rank-15 { background-image: url('/imgs/rank-icons/mini_15.png'); }
.rank-16 { background-image: url('/imgs/rank-icons/mini_16.png'); }
.rank-17 { background-image: url('/imgs/rank-icons/mini_17.png'); }
.rank-18 { background-image: url('/imgs/rank-icons/mini_18.png'); }
.rank-19 { background-image: url('/imgs/rank-icons/mini_19.png'); }
.rank-20 { background-image: url('/imgs/rank-icons/mini_20.png'); }
.rank-21 { background-image: url('/imgs/rank-icons/mini_21.png'); }
.rank-22 { background-image: url('/imgs/rank-icons/mini_22.png'); }
.rank-23 { background-image: url('/imgs/rank-icons/mini_23.png'); }
.rank-24 { background-image: url('/imgs/rank-icons/mini_24.png'); }
.rank-25 { background-image: url('/imgs/rank-icons/mini_25.png'); }
.rank-26 { background-image: url('/imgs/rank-icons/mini_26.png'); }
.rank-27 { background-image: url('/imgs/rank-icons/mini_27.png'); }
.rank-28 { background-image: url('/imgs/rank-icons/mini_28.png'); }
.rank-29 { background-image: url('/imgs/rank-icons/mini_29.png'); }
.rank-30 { background-image: url('/imgs/rank-icons/mini_30.png'); }
.rank-31 { background-image: url('/imgs/rank-icons/mini_31.png'); }


.moderation-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-shrink: 0;
}

.moderation-header > * {
  margin-right: 5px;
  margin-left: 5px;
}

.moderation-header.right {
  justify-content: flex-end;
}

.redirect-to-channel {
  height: 26px;
}

.form-group {
  display: flex;
}

select {
  width: 200px;
}

.proof-chat-history {
  overflow-y: scroll;
  max-height: 300px;
}

.error-popup-container {
  position: fixed;
  left: 0px;
  top: 0px;
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.3);
}

.error-popup {
  background-color: darkred;
  color: #fff;
  padding: 40px;

}

.error-popup > a {
  color: #fff;
  font-weight: bold;
  margin-left: 10px;
}
form.login-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100vw;
}
.login {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100vw;
}
.form-2fa {
  display: none;
  flex-direction: column;
  align-items: center;
}
.form-2fa form {
  display: flex;
  flex-direction: column;
  align-items: center;
}
form.login-form.active-login-form {
  display: none;
}
.form-2fa.active-2fa {
  display: flex;
}

img.img-verify {
  margin: 20px 0;
}
.block-2fa {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.g-recaptcha {
  margin-top: 10px;
}
.secret-code {
  background: #575757;
  margin: 12px 0;
  padding: 10px;
}
form.login > * {
  margin-bottom: 10px;
}

.user-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.user-history {
  overflow-y: scroll;
  position: relative;
}

.user-punished {
  color: tomato;
  font-weight: bold;
}
.user-not-punished {
  color: #67b14f;
  font-weight: bold;
}

.moder-history {
  overflow-y: scroll;
}

.forbidden-words {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.fw-list {
  overflow-y: scroll;
}

.hnp { color: lightgray; }
.hnote { color: lightgreen; }
.hban,.hkick,.hblm { color: lightsalmon; }
.hunban { color: lightgreen; font-weight: bold; }
.hblts,.hbanf { color: lightcoral; }
.hunbl { color: lightgreen; font-weight: bold; }

.error {
  color: lightsalmon;
  font-weight: bold;
}

.success {
  color: lightgreen;
  font-weight: bold;
}


.suspicious-battles {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.suspicious-battles-sort {
  height: 15px;
  padding: 0px;
  border: 0px;
  margin-left: 5px;
}

.sb-list {
  overflow-y: scroll;
}

.bad-guy {
  font-weight: bold;
  color: lightsalmon;
}

.user-history a {
  text-decoration: underline;
}

.moder-history a {
  text-decoration: underline;
}


.system.msg {
  cursor: auto;
  margin-top: 5px;
}
.system.msg .text {
  font-weight: bold;
  color: lightgreen;
}

.user-item {
  display: inline-block;
}

.context-menu-header {
  margin-left: 10px;
  margin-right: 10px;
}

.context-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  cursor: pointer;
}

.context-menu-pivot {
  position: fixed;
}

.context-menu-items {
  position: absolute;
  left: 100%;
  background: darkslategray;
}

.expand-up {
  bottom: -10px;
}

.expand-down {
  top: -10px;
}

.context-submenu {
  position: relative;
}

.context-submenu > .context-menu-item:after {
  color: lightgreen;
  content: '\00a0>';
}

.context-menu-item {
  margin: 10px;
}

.context-menu-item.over {
  color: yellow;
  font-weight: bold;
}

.lang-selector {
  height: 33px;
  width: 66px;
  border: 1px solid lightgreen;
}

.lang-selector-toggler {
  position: relative;
  height: 31px;
  cursor: pointer;
  opacity: 0.9;
}
.lang-selector-toggler:hover {
  opacity: 1;
}

.lang-list {
  border: 1px solid lightgreen;
  cursor: pointer;
  opacity: 0.9;
  position: relative;
  width: 66px;
  top: 5px;
  left: -1px;
}

.lang-list-item {
  background-color: #112211;
  padding: 8px;
}

.lang-ru {
  width: 24px;
  height: 16px;
  display: block;
  background: url(/imgs/flag_ru.png) no-repeat;
}

.lang-en {
  width: 24px;
  height: 16px;
  display: block;
  background: url(/imgs/flag_en.png) no-repeat;
}

.lang-pl {
  width: 24px;
  height: 16px;
  display: block;
  background: url(/imgs/flag_pl.png) no-repeat;
}

.lang-de {
  width: 24px;
  height: 16px;
  display: block;
  background: url(/imgs/flag_de.png) no-repeat;
}

.lang-es {
  width: 24px;
  height: 16px;
  display: block;
  background: url(/imgs/flag_es.png) no-repeat;
}

.lang-pt_br {
  width: 24px;
  height: 16px;
  display: block;
  background: url(/imgs/flag_pt.png) no-repeat;
}

.arrow-down {
  width: 16px;
  height: 16px;
  display: block;
  background: url(/imgs/arrow-down.png) no-repeat;
  position: absolute;
  right: 8px;
  top: 8px;
}

.no-channels-selected {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  flex-grow: 1;
  width: 30%;
  min-height: 0px;
}

.search-bar {
  display: flex;
  flex-direction: row;
}

.moder-icon {
  display: inline-block;
  width: 20px;
  height: 16px;
  background-repeat: no-repeat;
  background-position: 50% 100%;
}

.cm { background-image: url('/imgs/icon_cm.png'); }
.chat-cand { background-image: url('/imgs/icon_chat_bronze.png'); }
.chat-mod { background-image: url('/imgs/icon_chat_silver.png'); }
.chat-adm { background-image: url('/imgs/icon_chat_gold.png'); }
.battle-cand { background-image: url('/imgs/icon_battle_bronze.png'); }
.battle-mod { background-image: url('/imgs/icon_battle_silver.png'); }
.battle-adm { background-image: url('/imgs/icon_battle_gold.png'); }

.link-button {
  background:none!important;
  color:inherit;
  border:none;
  padding:0!important;
  font: inherit;
  cursor: pointer;
  color: lightgreen;
}
