body {
  font-family: "Open Sans", "Helvetica", "Arial", sans-serif;
  font-size: 10pt;
  color: #334;
  background-color: #eef;
}

.wrapper {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.canvas {
  position: absolute;
  top: 0;
  left: 0;
  right: 25%;
  bottom: 0;
  padding: 1em;
  background-color: #445;
}

.status {
  position: absolute;
  top: 0;
  left: 75%;
  right: 0;
  bottom: 0;
  border-left: 1px solid #223;
  padding: 1em;
}

.status > ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

#clients {
  max-height: 100px;
  overflow-y: auto;
}

#messages_box {
  max-height: 150px;
  overflow-y: auto;
  background-color: white;
  border: 1px solid darkgrey;
  padding: 0 0.5em;
}

#messages_box ul {
  list-style-type: none;
  padding-left: 0;
}

#messages_box ul li {
  margin-top: 1em;
}

#messages_box .from {
  font-weight: bold;
}

#messages_box .time {
  font-weight: bold;
  color: #99a;
}

#messages_box .time::before {
  content: '(';
  padding-left: 1em;
}

#messages_box .time::after {
  content: ')';
}

#messages_box .message {
  display: block;
}

@media (max-width: 850px) {
  .canvas {
    right: 0;
    bottom: 25%;
  }

  .status {
    left: 0;
    top: 75%;
  }

  .status ul li.section {
    display: inline-block;
    width: 30%;
    vertical-align: top;
  }
}

#txtaMessages {
  width: 100%;
  font-size: 0.7em;
}

#canv {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  width: 100%;
  height: 100%;
  border: 1px solid #223;
  cursor: crosshair;
}

#alert {
  display: none;
  position: fixed;
  right: 1em;
  bottom: 1em;
  background-color: #cec;
  border: 1px solid darkgrey;
  padding: 1em;
}

.modal_bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
}

#modal_options, #modal_loading {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
}

.modal_content {
  position: fixed;
  top: 4em;
  left: 4em;
  right: 4em;
  bottom: 4em;
  background-color: #fff;
  border: 1px solid #223;
  padding: 1em;
}

#modal_loading .modal_content {
  position: fixed;
  top: 4em;
  left: 4em;
  right: 4em;
  bottom: initial;
  text-align: center;
}
