/* --basic -- */

body.debug-console {
  margin: 0;
}

body.debug-console * {
  scrollbar-width: thin;
}

body.debug-console article {
  margin: 59px 0 0;
}

body.debug-console div#docs-panel::after {
  content: "";
  position: fixed;
  top: 59px;
  left: 0;
  width: 100%;
  border-bottom: 1px solid var(--light);
}

body.debug-console #docs-panel .container {
  border-bottom: none;
}

body.debug-console #docs-panel a,
body.debug-console #docs-panel a:hover {
  text-decoration: none;
}

body.debug-console footer a:not(:hover) {
  text-decoration: none;
}

/* colors */

:root {
  --primary: rgb(62, 123, 255);
  --regular: rgba(85, 87, 112, 1);
  --shadow: 0 16px 24px rgba(96, 97, 112, 0.16), 0 2px 8px rgba(40, 41, 61, 0.04);
  --dark: rgba(28, 28, 40, 1);
  --dark6: rgba(28, 28, 40, 0.6);
  --light: rgba(228, 228, 235, 1);
  --light8: rgba(228, 228, 235, 0.8);
  --light6: rgba(228, 228, 235, 0.6);
  --red: #ff3b3b;
  --red8: rgba(230, 53, 53, 0.8);
  --blue: rgba(0, 79, 196, 1);
  --dark-primary: #6093ff;
  --dark-line: hsla(0, 0%, 100%, 0.23);
}

.success {
  color: #05a660;
}

.warning {
  color: #f80;
}

.unavailable {
  color: #8f90a6;
}

.info {
  color: var(--blue);
}

.misc {
  color: rgba(77, 0, 153, 1);
}

.danger {
  color: var(--red);
}

.reminder {
  color: rgba(230, 184, 0, 1);
}

/* colors */

html {
  scroll-behavior: smooth;
}

body {
  color: var(--regular);
  font-family: "Nunito Sans", -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
  overflow: visible !important;
  transition: background 0.3s ease, color 0.3s ease;
}

input {
  box-sizing: border-box;
}


/* --basic -- */

.console-page {
  display: flex;
  flex-flow: row nowrap;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .console-page {
    max-width: calc(100% - 2px);
  }
}

*[class*=tip-] {
  position: relative;
}

*[class*=tip-]:not(:hover) {
  overflow: hidden;
}

*[class*=tip-] > span {
  font-family: "Nunito Sans" !important;
  font-size: 10px !important;
  color: #fafafa !important;
  background: #3e7bfa !important;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  font-style: normal !important;
  border-radius: 5px;
  position: absolute;
  top: calc(100% + 6px);
  white-space: normal;
  line-height: 12px;
  width: 0;
  height: 0;
  left: -24px;
  opacity: 0;
  z-index: 0;
}

label[class*=tip-] > span {
  top: calc(100% - 6px);
  left: calc(100% - 100px);
}

*.tip-right > span {
  top: 3px;
  left: calc(100% + 13px);
}

*.tip-left > span {
  top: 3px;
  left: inherit;
  right: calc(100% + 2px);
}

i.tip-left > span {
  top: -6px;
  right: calc(100% + 10px);
}

*[class*=tip-] > span::before {
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid #3e7bfa;
  content: "";
  position: absolute;
  top: -10px;
  left: calc(50% - 10px);
  display: ruby;
}

*.tip-right > span::before {
  left: -18px;
  top: 7px;
  border-right: 8px solid #3e7bfa;
  border-bottom: 8px solid transparent;
  border-top: 8px solid transparent;
}

*.tip-left > span::before {
  left: inherit;
  right: -18px;
  top: 7px;
  border-left: 8px solid #3e7bfa;
  border-bottom: 8px solid transparent;
  border-top: 8px solid transparent;
}

*[class*=tip-]:hover > span {
  opacity: 1;
  width: 80px;
  height: auto;
  padding: 9px 6px;
  z-index: 1;
  transition: opacity 0.3s ease 0.5s;
}

#ClearMainSettings:hover > span {
  width: 50px;
  left: -14px;
}

#dev-console-subscribe-button:hover > span {
  width: auto;
  max-width: 100%;
  display: block;
  left: 50px;
  min-width: 180px;
}

/* -- Show Hides -- */

.console-page.main-active .advanced-main-settings:not(.active) ~ *,
.console-page.pam-active label.channel-name,
.console-page.pam-active label.presence-channel,
.console-page.pam-active label.presence-channels,
.console-page.pam-active .advanced-main-settings,
.console-page.pam-active label.cipher-key,
.console-page.pam-active label.filter,
.console-page.main-active label.auth-key,
.console-page.main-active label.channel-names,
.console-page.main-active label.ttl,
.console-page.main-active label.pam-uuids,
.console-page.main-active div.inline,
.console-page.main-active .settings-body > i,
.console-page .console-settings > div:not(.settings-body),
.console-page.pam-active label.user-auth-key,
.console-page.pam-active label.uuid,
.console-page.pam-active .console-io .console-inputs,
.console-page.pam-active .console-io .console-outputs .console-outputs-head,
.console-page.pam-active .console-io .console-outputs .presence-output,
.console-page.pam-active .console-io .console-outputs .history-output,
.console-page.pam-active .presence-channel-toggle,
.console-outputs.output-open .presence-output,
.console-outputs.output-open .history-output,
.console-page.main-active .console-outputs.history-open .message-output,
.console-page.main-active .console-outputs.history-open .presence-output,
.console-page.main-active .console-outputs.presence-open .message-output,
.console-page.main-active .console-outputs.presence-open .history-output {
  display: none;
}

.console-page.main-active .console-settings > .main-settings-head,
.console-page.pam-active .console-settings > .pam-settings-head {
  display: block;
}

.console-page.pam-active .console-io .console-outputs {
  width: 100%;
}

.console-page.main-active .advanced-main-settings.active ~ * {
  animation: appear 0.3s linear 1 forwards;
}

@keyframes appear {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

/* -- Show Hides -- */

/* -- order -- */

.console-page.main-active label.publish-key {
  order: -15;
}

.console-page.main-active label.subscribe-key {
  order: -14;
}

.console-page.main-active label.channel-name {
  order: -13;
}

.console-page.main-active label.uuid {
  order: -12;
}

.console-page.main-active .presence-channel-toggle {
  order: -11;
}

.console-page.main-active label.presence-channels {
  order: -10;
}

.console-page.main-active label.presence-channels {
  order: -9;
}

.console-page.main-active .advanced-main-settings {
  order: -8;
}

.console-page.main-active label.channel-group-names {
  order: -7;
}


/* -- order -- */

.console-menu {
  display: flex;
  flex-flow: column;
  border-right: 2px solid #e4e4eb;
  width: 101px;
  align-items: center;
  font-size: 12px;
  line-height: 14px;
  position: relative;
}

.console-menu-main {
  margin-top: 2px;
  margin-bottom: 5px;
}

.console-menu-main span,
.console-menu-pam span {
  width: 79px;
  height: 58px;
  background: url(../svg/window-maximize.svg), url(../svg/window-maximize-blue.svg);
  background-repeat: no-repeat;
  background-position: center 6px;
  background-size: auto auto, 0 0;
  border-radius: 3px;
  transition: all 0.3s ease;
  cursor: pointer;
  display: block;
  padding-top: 36px;
  text-align: center;
  box-sizing: border-box;
}

.console-menu-pam span {
  background: url(../svg/lock.svg), url(../svg/lock-blue.svg);
  background-repeat: no-repeat;
  background-position: center 6px;
  background-size: auto auto, 0 0;
  height: 77px;
}

.console-menu-main:hover span,
.console-menu-pam:hover span {
  background-size: 0 0, auto auto;
  background-color: #f7f7f7;
  color: var(--primary);
}

.main-active .console-menu-main span,
.pam-active .console-menu-pam span {
  background-size: 0 0, auto auto;
  color: var(--primary);
}

.console-menu .bottom-links {
  position: absolute;
  bottom: 0;
  width: 78px;
  display: flex;
  flex-flow: column;
  padding: 0 0 10px;
}

.console-menu .bottom-links a {
  color: var(--regular);
  padding-left: 25px;
  display: flex;
  height: 19px;
  align-items: center;
  margin: 0 0 9px;
  transition: color 0.3s ease;
  text-decoration: none;
}

.console-menu .bottom-links a:hover,
.console-menu .bottom-links a:active,
.console-menu .bottom-links a:focus {
  color: var(--primary);
}

.console-menu .bottom-links a.link-switch {
  height: auto;
  padding: 25px 0 2px;
  margin-bottom: 16px;
  text-align: center;
  background: url(../svg/classic-view.svg), url(../svg/classic-view-blue.svg);
  background-repeat: no-repeat;
  background-position: center top;
  background-size: auto auto, 0 0;
  display: block;
}

.console-menu .bottom-links a.link-switch:hover {
  background-size: 0 0, auto auto;
  background-color: #f7f7f7;
}

@media (min-width: 768px) {
  .console-menu .bottom-links a.link-switch {
    padding: 28px 0 2px;
    margin-bottom: 35px;
  }

  .console-menu .bottom-links a.link-switch::after {
    content: "";
    width: 100%;
    display: block;
    height: 1px;
    background: #ebebf0;
    position: relative;
    top: 18px;
  }
}

.console-menu .bottom-links a.link-docs {
  background: url(../svg/docs-icon.svg), url(../svg/docs-icon-blue.svg);
  background-repeat: no-repeat;
  background-position: center left;
  background-size: auto auto, 0 0;
}

.console-menu .bottom-links a.link-docs:hover {
  background-size: 0 0, auto auto;
}

.console-menu .bottom-links a.link-signin {
  background: url(../svg/sign-in-icon.svg), url(../svg/sign-in-icon-blue.svg);
  background-repeat: no-repeat;
  background-position: center left;
  background-size: auto auto, 0 0;
}

.console-menu .bottom-links a.link-signin:hover {
  background-size: 0 0, auto auto;
}

.console-settings {
  display: flex;
  flex-flow: column;
  width: 340px;
  padding: 4px 0 15px;
}

@media (min-width: 768px) {
  .console-settings {
    padding: 4px 2px 15px 0;
    border-right: 1px solid #ebebf0;
  }
}

.console-page.output-expanded:not(.pam-active) .console-settings {
  display: none;
}

.main-settings-head,
.pam-settings-head {
  position: relative;
  padding: 0 14px;
}

.settings-body {
  max-height: calc(100vh - 170px);
  overflow-y: auto;
  padding: 0 14px;
  margin: 26px 0 0;
  display: flex;
  flex-flow: column;
}

.settings-body::-webkit-scrollbar {
  width: 4px;
  background-color: #fff;
  transition: background-color 0.3s ease;
}

.settings-body::-webkit-scrollbar-track {
  border-radius: 5px;
  background-color: #fff;
  transition: background-color 0.3s ease;
}

.settings-body::-webkit-scrollbar-thumb {
  border-radius: 5px;
  background-color: #e4e4eb;
  transition: background-color 0.3s ease;
}

.settings-body::-webkit-scrollbar-thumb:hover {
  background-color: #d4d4db;
  transition: background-color 0.3s ease;
}

.share-this,
.clear-main-settings,
.clear-pam-settings {
  width: 35px;
  height: 35px;
  position: absolute !important;
  top: 0;
  right: 55px;
  background: url(../svg/share-icon.svg), url(../svg/share-icon-blue.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: auto auto, 0 0;
  border-radius: 3px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.clear-main-settings,
.clear-pam-settings {
  right: 18px;
  background: url(../svg/reset-icon.svg), url(../svg/reset-icon-blue.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: auto auto, 0 0;
}

.share-this:hover,
.clear-main-settings:hover,
.clear-pam-settings:hover {
  background-size: 0 0, auto auto;
}

*[class*=tip-].share-this:hover > span {
  width: 110px;
  left: -40px;
}

.console-settings h2 {
  height: 32px;
  font-family: "Nunito Sans", sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: #555770;
  line-height: 32px;
  margin: 0;
  display: inline-block;
}

.advanced-main-settings {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px 9px 27px;
  margin: 0 -4px 16px;
  cursor: pointer;
}

.advanced-main-settings span {
  font-family: "Nunito Sans", sans-serif;
  font-weight: 600;
  color: #555770;
  font-size: 14px;
  line-height: 28px;
}

.advanced-main-settings {
  background: url(../svg/expand-plus-icon.svg), url(../svg/expand-minus-icon.svg);
  background-repeat: no-repeat;
  background-position: center left;
  background-size: auto auto, 0 0;
}

.advanced-main-settings.active {
  background-size: 0 0, auto auto;
}

.console-settings label {
  display: block;
  position: relative;
}

.console-settings label input[type=text] {
  background: rgba(0, 0, 0, 0.02);
  border: none;
  border-bottom: 1px solid #dadada;
  width: 100%;
  font-family: "Nunito Sans";
  color: #555770;
  line-height: 26px;
  border-radius: 3px;
  padding: 10px 16px 9px;
  margin: 0 0 16px;
  transition: all 0.3s ease;
}

.console-settings label input[type=text]::placeholder {
  color: var(--dark6);
}

.console-settings label input[type=text]:hover {
  background: rgba(0, 0, 0, 0.03);
}

.console-settings label input[type=text]:focus {
  outline: none;
  background: rgba(0, 0, 0, 0.03);
}

.presence-channel-toggle span {
  font-size: 14px;
  display: inline-flex;
  margin: 0 0 16px;
  padding: 0 0 0 32px;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.presence-channel-toggle span::before,
.presence-channel-toggle span::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 0;
  width: 23px;
  height: 14px;
  border-radius: 10px;
  border: 1px solid rgba(96, 97, 112, 0.15);
  transition: all 0.3s ease;
}

.presence-channel-toggle.open span::before {
  border: none;
  background: var(--primary);
}

.presence-channel-toggle span::after {
  border: none;
  height: 13px;
  width: 13px;
  background: #fafafc;
  box-shadow: 0 2px 4px rgba(96, 97, 112, 0.2), 0 1px 2px rgba(40, 41, 61, 0.2);
}

.presence-channel-toggle.open span::after {
  left: 9px;
}

.presence-channel-toggle + label.presence-channels {
  height: 0;
  transition: height 0.3s ease;
}

.presence-channel-toggle:not(.open) + label.presence-channels {
  overflow: hidden;
}

.presence-channel-toggle.open + label.presence-channels {
  height: 62px;
}

.settings-body > i,
.console-inputs i {
  width: auto;
  min-height: 46px;
  height: 46px;
  background: var(--primary);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  border-radius: 8px;
  font-family: "Nunito Sans", sans-serif;
  font-weight: 600;
  font-style: normal;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 20px;
  padding: 0 30px;
}

.settings-body > i {
  margin-left: calc(100% - 244px);
  width: 184px;
}

.console-inputs i:not(.tip-bottom) > span {
  display: none;
}

.console-inputs i.tip-bottom > span {
  width: 220px;
  left: -45px;
}

.console-inputs i > span:empty {
  display: none;
}

.settings-body > i.inactive,
.console-inputs i.inactive {
  background: rgb(235, 235, 240);
  color: rgba(85, 87, 112, 0.4);
  cursor: not-allowed;
}

.inline {
  display: flex;
  flex-flow: row wrap;
}

.inline label {
  width: calc(100% / 3);
  font-size: 14px;
  display: flex;
  align-items: center;
  margin: 0 0 8px;
}

.inline label input {
  margin: 0 10px 0 0;
  width: 16px;
  height: 16px;
}

/* -- io -- */

.console-io {
  width: calc(100% - 340px - 102px);
  display: flex;
  flex-flow: row;
}

.output-expanded .console-io {
  width: calc(100% - 102px);
}

.console-inputs,
.console-outputs {
  width: 50%;
  min-height: calc(100vh - 88px);
}

.console-outputs {
  background: #4b4e70;
}

.output-expanded .console-outputs {
  width: 100%;
}

.console-inputs {
  display: flex;
  flex-flow: column;
  align-items: flex-end;
}

@media (min-width: 768px) {
  .console-inputs {
    padding-left: 1px;
  }
}

.output-expanded .console-inputs {
  display: none;
}

.console-inputs > div {
  width: 100%;
}

.console-inputs > div label {
  display: flex;
  flex-flow: column;
}

.console-io-buttons {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  justify-content: flex-end;
}

.console-io-buttons i:last-child {
  margin-right: 14px;
}

.console-inputs > div label span {
  height: 45px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  background-color: #ebebf0;
  color: var(--regular);
  font-size: 14px;
}

.console-inputs > div.metadata label span {
  padding-left: 46px;
  background: url(../svg/expand-plus-icon.svg), url(../svg/expand-minus-icon.svg);
  background-repeat: no-repeat;
  background-position: center left 24px;
  background-size: auto auto, 0 0;
  background-color: #ebebf0;
  cursor: pointer;
}

.console-inputs > div.metadata:not(.closed) label span {
  background-size: 0 0, auto auto;
}

.console-inputs > div label textarea {
  border: none;
  height: calc((100vh / 2) - 185px);
  min-height: 50px;
  padding: 20px;
  resize: none;
  overflow: auto;

  /* color: #c7c9d9; */
  color: var(--regular);
  font-size: 13px;
  font-weight: bold;
  transition: padding 0.3s ease, height 0.5s ease;
}

.console-inputs > div label textarea::-webkit-scrollbar {
  width: 4px;
  background-color: #fff;
  transition: background-color 0.3s ease;
}

.console-inputs > div label textarea::-webkit-scrollbar-track {
  border-radius: 5px;
  background-color: #fff;
  transition: background-color 0.3s ease;
}

.console-inputs > div label textarea::-webkit-scrollbar-thumb {
  border-radius: 5px;
  background-color: #e4e4eb;
  transition: background-color 0.3s ease;
}

.console-inputs > div label textarea::-webkit-scrollbar-thumb:hover {
  background-color: #d4d4db;
  transition: background-color 0.3s ease;
}

.console-inputs > div.metadata.closed label textarea {
  height: 0;
  min-height: 0;
  padding: 0 20px;
}

.console-inputs > div.metadata:not(.closed) label textarea {
  animation: appear 0.3s linear 0.3s 1 forwards;
  opacity: 0;
}

.console-inputs > div label textarea:focus {
  outline: none;
}

.console-outputs-head {
  background: rgb(54, 57, 89) !important;
  display: flex;
  align-items: center;
  position: relative;
  padding: 0 50px 0 0;
  height: 44px;
}

.console-outputs-head h2 {
  font-size: 13px;
  font-weight: 100;
  color: #fcfcfc;
  padding: 6px 15px 5px 54px;
  position: relative;
  cursor: pointer;
  transition: color 0.3s ease;
  white-space: nowrap;
  margin: 0;
  max-width: calc(100% - 10px);
  box-sizing: border-box;
}

.console-outputs-head h2 > i {
  display: inline-block;
  font-size: inherit;
  font-weight: inherit;
  font-style: inherit;
  color: inherit;
  transition: color 0.3s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  box-sizing: border-box;
}

.console-outputs-head h2::before,
.console-outputs-head h2::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 20px;
  width: 23px;
  height: 14px;
  border: 1px solid #fcfcfc;
  border-radius: 10px;
}

.console-outputs-head h2::after {
  top: 9px;
  left: 21px;
  width: 13px;
  height: 12px;
  border: none;
  background: #fcfcfc;
}

.console-outputs-head h2.active {
  color: #57eba1;
  background: url(../svg/icn-success-lock.svg) no-repeat right top 9px;
}

.console-outputs-head h2.active::before {
  border: 1px solid #57eba1;
  background: #39d98a;
}

.console-outputs-head h2.active::after {
  left: 30px;
}

.console-outputs-head h2.inactive {
  color: #c7c9d9;
  cursor: default;
}

.console-outputs-head h2.inactive::before {
  border: 1px solid rgba(199, 201, 217, 0.7);
}

.console-outputs-head h2.inactive::after {
  background: rgba(199, 201, 217, 0.7);
}

#output-expanded {
  position: absolute;
  top: 0;
  right: 10px;
  width: 40px;
  height: 40px;
  background: url(../svg/expand-icon.svg), url(../svg/collapse-icon.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: auto auto, 0 0;
  cursor: pointer;
}

.output-expanded #output-expanded {
  background-size: 0 0, auto auto;
}

.console-page.output-expanded #output-expanded span span:first-child,
.console-page:not(.output-expanded) #output-expanded span span:last-child {
  display: none;
}

.message-output .head,
.presence-output .head,
.history-output .head {
  height: 45px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  justify-content: space-between;
  background: rgb(64, 67, 97);
}

.message-output .head > span,
.presence-output .head > span,
.history-output .head > span {
  font-family: "Nunito Sans", sans-serif;
  font-weight: 600;
  font-size: 12px;
  color: rgb(199, 201, 217);
  width: calc(100% - 50px);
  height: 40px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.message-output .head i,
.presence-output .head i,
.history-output .head i {
  width: 16px;
  height: 16px;
  background: url(../svg/refresh-icon.svg) no-repeat center;
  cursor: pointer;
}

.message-output > div:last-child,
.presence-output > div:last-child,
.history-output > div:last-child {
  background: rgb(75, 78, 112);
  height: calc((100vh / 3) - 90px);
  font-size: 13px;
  color: #fafafc;
  padding: 15px 20px;
  box-sizing: border-box;
  font-family: "Nunito Sans", sans-serif;
  font-weight: 600;
  overflow: auto;
  min-height: 50px;
}

.message-output > div:last-child::-webkit-scrollbar,
.presence-output > div:last-child::-webkit-scrollbar,
.history-output > div:last-child::-webkit-scrollbar {
  width: 4px;
  background-color: #363959;
  transition: background-color 0.3s ease;
}

.message-output > div:last-child::-webkit-scrollbar-track,
.presence-output > div:last-child::-webkit-scrollbar-track,
.history-output > div:last-child::-webkit-scrollbar-track {
  border-radius: 5px;
  background-color: #363959;
  transition: background-color 0.3s ease;
}

.message-output > div:last-child::-webkit-scrollbar-thumb,
.presence-output > div:last-child::-webkit-scrollbar-thumb,
.history-output > div:last-child::-webkit-scrollbar-thumb {
  border-radius: 5px;
  background-color: #e4e4eb;
  transition: background-color 0.3s ease;
}

.message-output > div:last-child::-webkit-scrollbar-thumb:hover,
.presence-output > div:last-child::-webkit-scrollbar-thumb:hover,
.history-output > div:last-child::-webkit-scrollbar-thumb:hover {
  background-color: #d4d4db;
  transition: background-color 0.3s ease;
}

.console-outputs.output-open .message-output > div:last-child,
.console-outputs.presence-open .presence-output > div:last-child,
.console-outputs.history-open .history-output > div:last-child {
  height: calc(100vh - 180px);
}

.console-page.pam-active .console-io .console-outputs .message-output > div:last-child {
  height: calc(100vh - 134px);
}

.message-output > div:last-child .message div,
.presence-output > div:last-child .message div,
.history-output > div:last-child .message div {
  display: inline;
}

.console-page.pam-active .console-io .console-outputs .message-output .head > span {
  font-size: 0;
}

.console-page.pam-active .console-io .console-outputs .message-output .head > span::before {
  content: "Output";
  font-size: 12px;
}

/* -- io -- */

/* -- message box -- */

.message-box {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  transform: translate(-100%, 0);
  transition: transform 0.5s ease;
}

.message-box-open .message-box {
  transform: translate(0, 0);
}

.message-box > div {
  position: absolute;
  bottom: 30px;
  left: 10px;
  width: 376px;
  padding: 15px 40px 22px;
  border-radius: 3px;
  box-sizing: border-box;
  z-index: 2001;
}

.message-box.error > div {
  background: #ffe6e6 url(../svg/close-icon-red.svg) no-repeat top 20px left 16px;
}

.message-box > div span {
  color: #f03a43;
  font-size: 14px;
  display: block;
}

.message-box > div span:nth-of-type(2) {
  font-family: "Nunito Sans", sans-serif;
  font-weight: 600;
}

.message-box > div i.close-msg {
  width: 24px;
  height: 24px;
  top: 8px;
  right: 9px;
  background: url(../svg/close-icon.svg), url(../svg/close-icon-blue.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: auto auto, 0 0;
  cursor: pointer;
  position: absolute;
}

.message-box > div i.close-msg:hover {
  background-size: 0 0, auto auto;
}

/* -- message box -- */

@media (max-width: 1299px) {
  .console-settings {
    width: 270px;
  }

  .console-io {
    width: calc(100% - 270px - 102px);
  }

  .inline label {
    width: calc(100% / 2);
  }

  .console-inputs {
    width: 35%;
  }

  .console-outputs {
    width: 65%;
  }

  .console-io-buttons {
    display: flex;
    flex-flow: column;
  }

  .console-io-buttons i {
    width: 90%;
    margin: 10px 0 !important;
    box-sizing: border-box;
    max-width: 300px;
  }

  .console-io-buttons i:first-child {
    margin-top: 30px !important;
  }

  .console-io-buttons i:last-child {
    margin-bottom: 40px !important;
  }
}

@media (max-width: 1023px) {
  .console-io {
    flex-flow: column;
  }

  .console-inputs,
  .console-outputs {
    width: 100%;
    min-height: auto;
  }

  .message-output > div:last-child,
  .presence-output > div:last-child,
  .history-output > div:last-child {
    min-height: 100px;
  }

  .console-outputs {
    background: #4b4e70;
  }

  .console-inputs > div label textarea {
    min-height: 150px;
  }

  .settings-body {
    max-height: inherit;
  }

  .console-page.pam-active .console-io .console-outputs .message-output > div:last-child {
    height: auto;
  }

  .console-inputs > .console-io-buttons {
    width: 300px;
  }
}

@media (max-width: 767px) {
  .console-page {
    flex-flow: row wrap;
  }

  .console-menu {
    width: 100%;
    height: 100px;
    flex-flow: row-reverse nowrap;
  }

  .console-menu .bottom-links {
    position: static;
    border: none;
    padding: 0;
    flex-flow: row;
    width: calc(100% - 145px);
    padding-left: 15px;
  }

  .console-menu-main {
    margin-bottom: 0;
    margin-top: 0;
  }

  .console-menu-main span,
  .console-menu-pam span {
    height: 50px;
    background-position: center 0;
    padding-top: 26px;
    width: 65px;
  }

  .console-menu .bottom-links a {
    padding-left: 20px;
  }

  .console-menu .bottom-links a:not(:last-child) {
    margin-right: 20px;
  }

  .console-menu .bottom-links a.link-switch {
    width: 70px;
    border-bottom: none;
    padding: 26px 0 0;
  }

  .console-menu .bottom-links a.link-docs,
  .console-menu .bottom-links a.link-signin {
    padding: 26px 0 0;
    text-align: center;
    background-position: top 6px center;
  }

  .console-menu .bottom-links a.link-signin {
    width: 50px;
  }

  .console-settings {
    width: 100%;
  }

  .console-io {
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }

  #output-expanded {
    display: none;
  }

  .message-box > div {
    position: relative;
    max-width: calc(100% - 20px);
  }

  .message-box {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .message-box i.backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    background: rgba(0, 0, 0, 0);
  }

  .message-box-open .message-box i.backdrop {
    background: rgba(0, 0, 0, 0.5);
    transition: background 0.5s 0.5s ease;
  }

  .inline label {
    width: calc(100% / 3);
  }

  .message-output > div:last-child,
  .presence-output > div:last-child,
  .history-output > div:last-child {
    min-height: 200px;
  }

  .console-outputs-head {
    padding: 0;
    width: 100%;
    max-width: 100%;
  }

  #clear-main-settings:hover > span {
    width: 40px;
    left: -6px;
  }
}

@media (max-width: 479px) {
  .console-outputs-head {
    height: auto;
    flex-flow: column;
    align-items: flex-start;
    padding: 5px 0;
  }

  .inline label {
    width: calc(100% / 2);
  }

  .console-inputs > .console-io-buttons {
    width: 100%;
  }
}

@media (max-width: 340px) {
  .console-menu .bottom-links a {
    padding-left: 18px;
  }

  .console-menu .bottom-links a:first-child {
    margin-right: 10px;
  }
}
