body {
  background-color: #eeeeee;
  padding: 0;
  margin: 0;
  overflow: hidden;
  user-select: none;
  background-image: none;
  background-attachment: fixed;
  background-position: center center;
  background-repeat: no-repeat;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

#anchor {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-width: 0;
}

#control {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-width: 0;
}

canvas {
  position: absolute;
}

.ctl-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 180px;
  height: 40px;
  background-color: rgba(238, 238, 238, .5);
}

.ctl-host {
  position: absolute;
  width: 0;
  height: 0;
  top: 5px;
}
#ctl-restart-host { left: 5px; }
#ctl-settings-host { left: 40px; }
#ctl-help-host { left: 75px; }
#ctl-home-host { left: 110px; }
#ctl-overview-host { left: 145px; }

.ctl-host img {
  position: absolute;
  top: 0;
  left: 0;
  width: 30px;
  height: 30px;
  cursor: pointer;
}

.ctl-menu {
  position: absolute;
  padding: 0;
  top: 33px;
  left: 0;
  display: none;
}

.ctl-menu div {
  white-space: nowrap;
  border: 1px solid #000;
  padding: 1px 10px;
  margin: 2px 0;
  border-radius: 2px;
  cursor: pointer;
  font: 16px sans-serif;
  background-color: rgba(238, 238, 238, .5);
}
.ctl-menu div:hover {
  color: #fff;
  background-color: #333;
}

.modal {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

.modal-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, .5);
  overflow: hidden;
}

.modal-frame {
  position: absolute;
  top: 40px;
  left: 20%;
  right: 20%;
  bottom: 40px;
  border: 1px solid #000;
  background-color: #fff;
  overflow: hidden;
}

.modal-body {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-width: 0;
  color: #000;
  font-family: sans-serif;
  overflow: auto;
  padding: 1em;
}

.modal-body span {
  background-color: #ccc;
  padding: 0 3px;
  margin: 0 2px;
  border-radius: 2px;
}

.modal-body h1 {
  font-size: 120%;
  margin: 0;
}

.modal-body p {
  margin: 0.5em 0;
}

.modal-body ul {
  margin: 0;
}

.modal-body fieldset {
  border: 1px solid #000;
  margin: .5em 0;
}

.modal-body legend {
  font-size: 80%;
}

.modal-body input[type="radio"] {
  margin-top: -1px;
  vertical-align: middle;
}

.modal-body button {
  background-color: #eee;
  border-color: #ccc;
  font-size: 80%;
  cursor: pointer;
  padding: .2em .8em;
}

.modal-body .button-red:hover {
  background-color: #f00;
  border-color: #c00;
}

.modal-body .button-green:hover {
  background-color: #0f0;
  border-color: #0c0;
}

.modal-body .button-black:hover {
  background-color: #000;
  border-color: #f00;
  color: #f00;
}

.modal-close {
  width: 20px;
  height: 20px;
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
}

#status {
  position: absolute;
  top: 0;
  right: 0;
  font: 10px sans-serif;
  font-variant: small-caps;
  background-color: rgba(238, 238, 238, .3);
  padding: 2px 10px;
}

#status div {
  text-align: right;
}

#status div:nth-child(2n) {
  font-size: 20px;
  font-weight: bold;
}

a#escape {
  display: none;
  position: absolute;
  bottom: 30px;
  left: 0px;

  font-size: 11px;
  font-family: sans-serif;

  padding: 0.2em 0.5em;
  border-radius: 0 0 3px 3px;
  transform-origin: 0 0;
  transform: rotate(-90deg);

  color: #999;
  text-decoration: none;
  white-space: nowrap;
}

a#escape:hover {
  background: #333;
}
