body {
  height: 100%;
  margin: 0;
  background: #ddd;
}
#gameport {
  background: var(--glkote-page-bg);
  bottom: 0;
  left: 0;
  margin: 0 auto;
  max-width: 900px;
  overflow: hidden;
  position: absolute;
  right: 0;
  top: 0;
}
:root {
  --glkote-mono-family: "Source Code Pro", Monaco, Courier, monospace;
  --glkote-prop-family: "Lora", Georgia, serif;
  --glkote-buffer-bg: #fff;
  --glkote-buffer-fg: #222;
  --glkote-buffer-reverse-bg: #222;
  --glkote-buffer-reverse-fg: #ddd;
  --glkote-grid-bg: #fff;
  --glkote-grid-fg: #222;
  --glkote-grid-reverse-bg: #222;
  --glkote-grid-reverse-fg: #ddd;
}
#windowport {
  width: 100%;
  height: 100%;
}
#errorpane {
  position: absolute;
  top: 0;
  width: 100%;
  background: #ffa0a0;
  border-bottom: 3px solid #ff4040;
}
#errorpane.WarningPane {
  background: #b0b0ff;
  border-bottom: 3px solid #6060ff;
}
#errorpane:hover {
  background: rgba(255, 160, 160, 0.5);
  border-bottom: 3px solid rgba(255, 64, 64, 0.3);
}
#errorpane.WarningPane:hover {
  background: rgba(176, 176, 255, 0.5);
  border-bottom: 3px solid rgba(96, 96, 255, 0.3);
}
#errorcontent {
  font-size: 1.1em;
  padding: 1em;
  text-align: center;
}
#loadingpane {
  position: absolute;
  width: 100%;
  text-align: center;
  top: 20%;
}
.WindowFrame {
  position: absolute;
  margin: 0;
  background: var(--glkote-buffer-bg);
}
.BufferWindow {
  color: var(--glkote-buffer-fg);
  overflow: scroll;
  overflow-x: hidden;
  font-family: var(--glkote-prop-family);
  font-size: 15px;
  line-height: 1.4;
  padding: 6px 10px 6px 10px;
}
.BufferWindow .reverse {
  background: var(--glkote-buffer-reverse-bg);
  color: var(--glkote-buffer-reverse-fg);
}
.BufferLine {
  white-space: pre-wrap;
}
.GridWindow {
  background: var(--glkote-grid-bg);
  color: var(--glkote-grid-fg);
  overflow: hidden;
  font-family: var(--glkote-mono-family);
  font-size: 14px;
  padding: 6px 10px 6px 10px;
}
.GridWindow.reverse {
  background: var(--glkote-grid-reverse-bg);
}
.GridWindow .reverse {
  background: var(--glkote-grid-reverse-bg);
  color: var(--glkote-grid-reverse-fg);
}
.GridLine {
  white-space: pre;
}
.InvisibleCursor {
  position: relative;
}
.MorePrompt {
  font-weight: 700;
  position: absolute;
  background: #603010;
  color: #ffc;
  opacity: 0.5;
  padding: 2px 6px;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
}
.PreviousMark {
  position: absolute;
  background: #b09888;
  height: 2px;
  width: 12px;
  top: 0;
  right: 0;
}
.Input {
  border: none;
  margin: 0;
  padding: 0;
  outline-width: 0;
  outline-style: none;
  background: 0 0;
  font-weight: 700;
}
.BufferWindow .Input {
  font-family: var(--glkote-prop-family);
  font-size: 15px;
}
.GridWindow .Input {
  font-family: var(--glkote-mono-family);
  font-size: 14px;
}
.ImageMarginLeft {
  float: left;
  margin-right: 0.5em;
}
.ImageMarginRight {
  float: right;
  margin-left: 0.5em;
}
.ImageInlineDown {
  vertical-align: text-top;
}
.ImageInlineUp {
  vertical-align: text-bottom;
}
.ImageInlineCenter {
  vertical-align: middle;
}
.FlowBreak {
  clear: both;
}
.GraphicsWindow canvas {
  display: block;
  background-color: var(--glkote-buffer-bg);
}
span.Style_emphasized {
  font-style: italic;
}
span.Style_preformatted {
  font-family: var(--glkote-mono-family);
}
span.Style_header {
  font-weight: 700;
}
.BufferWindow span.Style_header {
  font-size: 17px;
}
span.Style_subheader {
  font-weight: 700;
}
span.Style_alert {
  font-weight: 700;
}
span.Style_note {
  font-style: italic;
}
span.Style_blockquote {
  background: #fff0c0;
}
span.Style_input {
  font-weight: 700;
  color: #300000;
}
#dialog_screen {
  position: absolute;
  width: 100%;
  height: 100%;
  background: grey;
  opacity: 0.5;
}
#dialog_frame {
  position: absolute;
  width: 100%;
  height: 100%;
}
#dialog {
  position: relative;
  width: 400px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 100px;
  background: #fff;
  border: 4px solid #aaa;
  -webkit-box-shadow: 1px 1px 15px #222;
  -moz-box-shadow: 1px 1px 15px #222;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
}
#dialog .DiaCaption {
  margin: 16px;
}
#dialog .DiaWarning {
  margin: 16px;
  font-size: 14px;
  font-style: italic;
}
#dialog .DiaInput {
  margin: 16px;
}
#dialog input {
  width: 100%;
}
#dialog .DiaBody {
  margin: 16px;
  clear: both;
}
#dialog select {
  width: 100%;
}
#dialog button {
  margin-left: 8px;
}
#dialog .DiaButtons {
  margin: 16px;
  text-align: right;
}
#dialog .DiaButtonsFloat {
  margin-left: 16px;
  margin-right: 16px;
  float: right;
}
#dialog .DiaDisplayText {
  font-family: inherit;
  height: 200px;
  padding: 4px 8px;
  overflow: scroll;
  overflow-x: hidden;
  font-size: 14px;
  white-space: pre-wrap;
  background: #fed;
}
