@font-face {
  font-family: "nudicamono-regular";
  src:
    url("../../nudicamono-regular-webfont.woff2") format("woff2"),
    url("../../nudicamono-regular-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #000000;
  color: #f1f1f1;
  font-family: "nudicamono-regular", "Courier New", Courier, monospace;
}

.noscript-fallback {
  padding: 40px;
  text-align: center;
  color: #f1f1f1;
  font-family: "nudicamono-regular", "Courier New", Courier, monospace;
}

#loading {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  color: #f1f1f1;
  z-index: 9999;
}

#canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
}

canvas {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  image-rendering: auto;
}

/* For very low resolution displays, use pixelated rendering */
@media (max-resolution: 1dppx) {
  canvas {
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
  }
}

#version-badge {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1001;
  font-size: 13px;
  color: #f1f1f1;
  pointer-events: none;
}

#site-footer {
  position: fixed;
  bottom: 10px;
  left: 10px;
  z-index: 1001;
  font-size: 12px;
  color: rgba(241, 241, 241, 0.7);
  pointer-events: none;
}

#site-footer p {
  margin: 0;
}

.qide-ui-panel {
  font-family: "nudicamono-regular", "Courier New", Courier, monospace !important;
}

/* UI toggle (shown in Clean UI mode) */
#ui-toggle {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 1002;
  display: none;
  background: transparent;
  border: 1px solid rgba(241, 241, 241, 0.15);
  color: #f1f1f1;
  font-family: inherit;
  font-size: 11px;
  padding: 6px 12px;
  cursor: pointer;
  text-transform: uppercase;
}

#ui-toggle:hover,
#ui-toggle:focus {
  background: rgba(241, 241, 241, 0.08);
  border-color: rgba(241, 241, 241, 0.35);
  outline: none;
}

body.ui-hidden .qide-ui-panel,
body.ui-hidden #version-badge,
body.ui-hidden #site-footer,
body.ui-hidden #loading {
  display: none !important;
}

body.ui-hidden #ui-toggle {
  display: block;
}
