html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  background: #0d1013;
}

@font-face {
  font-family: "JetBrainsMono Nerd Font Mono";
  src: url("./JetBrainsMonoNerdFontMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

body {
  box-sizing: border-box;
  overflow: hidden;
}

canvas {
  display: block;
}

#grid {
  overflow: hidden;
}

#grid > pre {
  width: 100%;
  height: 19px !important;
  line-height: 20px !important;
}

pre {
  margin: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  overflow: hidden;
  font-family: "JetBrainsMono Nerd Font Mono";
  font-variant-ligatures: none;
}

.keyboard-capture-hint {
  position: fixed;
  right: 10px;
  bottom: 8px;
  padding: 3px 7px;
  border: 1px solid rgba(100, 116, 139, 0.45);
  border-radius: 999px;
  background: rgba(5, 7, 11, 0.54);
  color: rgba(205, 214, 244, 0.72);
  font: 11px "JetBrainsMono Nerd Font Mono";
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.ratatui-demo-root[data-keyboard-active="true"] .keyboard-capture-hint {
  opacity: 0.72;
}
