@charset "UTF-8";

/* =====================
   BASE / RESET
   ===================== */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: baseline;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

body {
  line-height: 1;
}

blockquote, q {
  quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* =====================
   GLOBAL
   ===================== */

body, html {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  font-size: 16px;
  overflow: hidden;
}

body, body * {
  font-family: "Tahoma", sans-serif;
}

input[type="text"] {
  background-color: #fff;
  border: 1px inset #AAA;
  color: #000;
}

/* =====================
   PAGES / LAYOUT
   ===================== */

.page {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 999;
}

#content {
  background-color: #004e98;
}

#ap_iframe {
  z-index: 9999;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* =====================
   DIALOGS / MESSAGES
   ===================== */

.xp_dialog, .message_cont {
  background: #ffffff;
  color: #000;
  border: #000000 solid 1px;
}

.xp_textbox, #login_error, #login_readme {
  position: absolute;
  padding: 4px 3px;
  border: none;
  border-radius: 3px;
  box-shadow: 2px 2px 2px #13316f;
  outline: none;
  background: #fff;
  color: #000;
}

.message_cont {
  position: absolute;
  width: 100%;
  max-width: 512px;
  height: auto;
  max-height: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 32px;
  box-sizing: border-box;
  overflow: auto;
}

#page_error, #page_ban, #page_kick, #page_unsupp {
  background-color: rgba(0, 0, 0, 0.5);
}

/* =====================
   BONZI CHARACTER
   ===================== */

#bonzi_canvas {
  width: 100%;
  height: 100%;
  position: absolute;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  top: 0;
  left: 0;
}

.bonzi {
  position: fixed;
  top: 0;
  left: 0;
  user-select: none;
  -webkit-user-select: none;
}

.bonzi > canvas, .bonzi_placeholder {
  position: absolute;
}

/* =====================
   SPEECH BUBBLES
   ===================== */

.xp_bubble, .bubble {
  background: #fff;
  border: #000000 solid 1px;
}

.bubble-content {
  padding: 12px;
  max-height: 175px;
  user-select: text;
  -webkit-user-select: text;
  overflow-x: hidden;
  overflow-y: auto;
  font-size: 14px;
  -webkit-font-smoothing: none;
  position: relative;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
}

.bubble {
  padding: 0;
  width: 197px;
  position: absolute;
}

.bubble::after {
  content: '';
  position: absolute;
}

.bubble-left {
  right: -45px;
  top: 40px;
}
.bubble-left::after {
  background-image: url(/img/bonzi/bubble_tail_l.png);
  width: 22px;
  height: 14px;
  top: 12px;
  right: -22px;
}

.bubble-right {
  top: 40px;
  left: 155px;
}
.bubble-right::after {
  background-image: url(/img/bonzi/bubble_tail_r.png);
  width: 22px;
  height: 14px;
  top: 12px;
  left: -22px;
}

.bubble-bottom {
  top: 156px;
}
.bubble-bottom::after {
  background-image: url(/img/bonzi/bubble_tail_b.png);
  width: 28px;
  height: 22px;
  top: -22px;
  left: 26px;
}

.bubble-top {
  bottom: 4px;
}
.bubble-top::after {
  background-image: url(/img/bonzi/bubble_tail_t.png);
  width: 28px;
  height: 22px;
  left: 110px;
}

.bonzi_name {
  background: #fff;
  border: #000000 solid 1px;
  padding: 8px;
  position: absolute;
  font-size: 14px;
  color: #000;
}

.bubble_greentext {
  color: #789922;
}

/* =====================
   CHAT BAR (TASKBAR)
   ===================== */

#chat_bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30px;
  z-index: 999;
}

#chat_tray {
  vertical-align: middle;
  padding-left: 7px;
  padding-top: 3px;
  width: 22px;
}

.chat_bar_top {
  top: 0;
}

#chat_send_box {
  width: 40px;
  user-select: none;
  background-repeat: no-repeat;
  box-sizing: border-box;
  color: #fff;
  font-style: italic;
  font-weight: bold;
}

#chat_send:hover {
  background-position: 0 -33px;
}
#chat_send:active {
  background-position: 0 -67px;
}

#chat_message_cont {
  padding: 4px;
}

#chat_message {
  width: 100%;
}

#room_info {
  color: rgba(255, 255, 255, 1);
  line-height: 125%;
  text-align: right;
  padding: 7px;
  font-size: 10px;
  position: absolute;
  bottom: 30px;
  right: 0;
  user-select: text;
  -webkit-user-select: text;
}

.tray_btn {
  display: inline-block;
  margin: 2px 0;
}

#btn_tile {
  background-image: url(/img/desktop/tile.png);
}

/* =====================
   LOGIN PAGE
   ===================== */

#page_login {
  background: #ffffff;
  background-image: url(/img/logon/bbabilities2.gif);
  background-position: center;
  background-repeat: no-repeat;
  font-family: "Trebuchet MS";
}

#login_apps {
  display: flex;
  justify-content: center;
  padding: 16px;
  flex-wrap: wrap;
}

#login_card {
  width: 353px;
  height: 70px;
  box-sizing: border-box;
  font-family: "Trebuchet MS";
}

#login_error {
  top: 100%;
  position: absolute;
  margin-top: 8px;
  color: #d03b3b;
  font-size: 12px;
  padding: 8px;
}

#login_readme {
  color: #444;
  padding: 12px;
  bottom: 24%;
  width: auto;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

#login_name, #login_room {
  width: 160px;
  box-sizing: border-box;
  font-family: "Trebuchet MS";
}

#login_name {
  height: 28px;
  top: 8px;
  left: 16px;
  font-size: 14px;
}

#login_room {
  height: 18px;
  top: 43px;
  left: 16px;
  font-size: 12px;
}

#login_go {
  left: 185px;
  top: 24px;
  width: 20px;
  height: 20px;
}

#login_load {
  color: #fff;
  font-weight: bold;
  font-style: italic;
  font-size: 35px;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  position: absolute;
  line-height: 100%;
  height: 35px;
  top: 50%;
  left: 50%;
  margin-left: 23px;
}

#login_version {
  color: #fff;
  position: absolute;
  right: 16px;
  bottom: 16px;
  font-size: 16px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* =====================
   BONZI CHAT WINDOW
   ===================== */

#bonzi_chat_window {
  width: 596px;
  height: 398px;
  background: url(/img/xp_window/chat.png) no-repeat;
  position: absolute;
  top: 50px;
  left: 50px;
}

.bonzi_chat_button {
  position: absolute;
  left: 347px;
  top: 295px;
  width: 66px;
  height: 66px;
  line-height: 22px;
  text-align: center;
  font-family: "Tahoma", sans-serif;
  color: #000000 !important;
  font-size: 12px;
  border: 2px outset #fff;
  background: #bfbfbf url(/img/xp_window/send.png) no-repeat;
}

#bonzi_chat_messages {
  position: absolute;
  width: 395px;
  height: 183px;
  left: 18px;
  bottom: 125px;
  border: 0;
  outline: none;
  resize: none;
  overflow-y: scroll;
  font-size: 12px;
  font-family: "Trebuchet MS";
}

#bonzi_chat_online {
  position: absolute;
  width: 142px;
  height: 273px;
  left: 440px;
  bottom: 35px;
  border: 0;
  outline: none;
  resize: none;
  overflow-y: scroll;
  font-size: 12px;
  font-family: "Trebuchet MS";
}

#bonzi_chat_text {
  position: absolute;
  width: 322px;
  height: 60px;
  left: 14px;
  bottom: 34px;
  border: 0;
  outline: none;
  resize: none;
  overflow-y: scroll;
  font-size: 12px;
}

/* =====================
   CONTEXT MENU
   ===================== */

.context-menu-icon.context-menu-hover:before {
  color: #FFF;
}
.context-menu-icon.context-menu-disabled::before {
  color: #8c8c8c;
}
.context-menu-icon.context-menu-icon--fa {
  display: list-item;
}
.context-menu-icon.context-menu-icon--fa.context-menu-hover:before {
  color: #FFF;
}
.context-menu-icon.context-menu-icon--fa.context-menu-disabled::before {
  color: #8c8c8c;
}
.context-menu-icon.context-menu-icon--fa span {
  font-family: sans-serif;
}

.context-menu-list {
  background: #FFF;
  border: 1px solid #aca899;
  border-radius: 0;
  box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.5);
  font-family: inherit;
  font-size: 11px;
  display: inline-block;
  list-style-type: none;
  margin: 0;
  padding: 2px;
  position: absolute;
}

.context-menu-item {
  background-color: #FFF;
  color: #000;
  padding: 5px 22px;
  position: relative;
  user-select: none;
}

.context-menu-separator {
  border-bottom: 1px solid #aca899;
  margin: 1px 2.5px;
  padding: 0;
}

.context-menu-item > label > input,
.context-menu-item > label > textarea {
  user-select: text;
}

.context-menu-item.context-menu-hover {
  background-color: #316ac5;
  color: #FFF;
  cursor: pointer;
}

.context-menu-item.context-menu-disabled {
  background-color: #FFF;
  color: #8c8c8c;
  cursor: default;
}

.context-menu-input.context-menu-hover {
  background-color: #EEE;
  cursor: default;
}

.context-menu-submenu:after {
  content: '';
  border-style: solid;
  border-width: .25em 0 .25em .25em;
  border-color: transparent transparent transparent #000;
  height: 0;
  position: absolute;
  right: .5em;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  z-index: 1;
}

.context-menu-item.context-menu-input {
  padding: .3em .6em;
}

.context-menu-input > label > * {
  vertical-align: top;
}

.context-menu-input > label > input[type="checkbox"],
.context-menu-input > label > input[type="radio"] {
  margin-right: .4em;
  position: relative;
  top: .12em;
}

.context-menu-input > label {
  margin: 0;
}

.context-menu-input > label,
.context-menu-input > label > input[type="text"],
.context-menu-input > label > textarea,
.context-menu-input > label > select {
  box-sizing: border-box;
  display: block;
  width: 100%;
}

.context-menu-input > label > textarea {
  height: 7em;
}

.context-menu-item > .context-menu-list {
  display: none;
  right: -.3em;
  top: .3em;
}

.context-menu-item.context-menu-visible > .context-menu-list {
  display: block;
}

.context-menu-accesskey {
  text-decoration: underline;
}
