/* Offline Worlds — style.css */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial;
}

:root {
  --bg: #0b0b0f;
  --panel: #0f1720;
  --accent: #f3f4f6;
  --muted: #9ca3af;
  --sidebar-width: 380px;
  --crt-light: rgba(255, 0, 0, 0.05);
}

html, body, #app {
  height: 100%;
  background: var(--bg);
  color: var(--accent);
}

/* Center page layout */
body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 40px;
}

/* Title */
#titleBar {
  text-align: center;
  margin-bottom: 20px;
}

#titleBar h1 {
  font-size: 32px;
  letter-spacing: 2px;
  font-weight: 600;
  color: var(--accent);
}

/* Canvas container */
#canvasWrapper {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
}

#gameCanvas {
  display: block;
  margin: 0 auto;
  background: linear-gradient(#e7e7e7, #d0d0d0);
  border: 6px solid #484848;
  border-radius: 6px;
  image-rendering: pixelated;
}

/* HUD */
#hud {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 30;
  pointer-events: none;
}

#hud .hint {
  font-size: 12px;
  color: var(--muted);
}

/* Sidebar */
#sidebar {
  position: fixed;
  right: 0;
  top: 0;
  height: 100vh;
  width: var(--sidebar-width);
  background: #000;
  border-left: 3px solid #222;
  box-shadow: -8px 0 25px rgba(0,0,0,0.6);
  transform: translateX(100%);
  transition: transform .35s ease;
  z-index: 50;
  padding: 20px;
  overflow-y: auto;
  color: var(--accent);
}

#sidebar.open {
  transform: translateX(0);
}

#closeBtn {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  font-size: 22px;
  border: none;
  background: #111;
  color: white;
  cursor: pointer;
  margin-bottom: 15px;
}

#exhibitContent h2 {
  font-size: 20px;
  margin-bottom: 10px;
  color: rgb(255, 0, 0);
}

#exhibitContent p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

/* CRT EFFECT */
#crtOverlay {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 2px,
    var(--crt-light) 3px,
    transparent 4px
  );
  opacity: 0.15;
  z-index: 999;
}

/* Responsive */
@media (max-width: 1200px) {
  :root { --sidebar-width: 320px; }
  #gameCanvas { width: 95%; height: auto; }
}

#site-header {
  text-align: center;
  margin-top: -30px;
}

#header-image {
  width: 120%;
  max-width: 650px; /* adjust as you want */
}

