:root {
  --bg: #eef2f7;
  --panel: #ffffff;
  --text: #1f2937;
  --border: #d7dee8;
  --green: #16a34a;
  --red: #dc2626;
  --accent: #0b6ecb;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}

/* To kolonner, fylder hele 16:9-skærmen */
.projektor {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: minmax(0, 1fr);
  gap: 1.2vw;
  height: 100vh;
  padding: 1.2vw;
}

.kolonne {
  min-height: 0;
  border-radius: 12px;
  overflow-y: auto;
}

/* Venstre kolonne */
.venstre {
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
  padding: 1.2vw 1.6vw;
}

.venstre h1 {
  margin: 0 0 1vw;
  font-size: clamp(1.6rem, 2.4vw, 2.7rem);
  color: var(--accent);
  line-height: 1.15;
}

.regler {
  list-style: none;
  margin: 0;
  padding: 0;
}

.regler li {
  font-size: clamp(1rem, 1.4vw, 1.5rem);
  padding: .4vw 0;
  border-bottom: 1px solid #eef2f7;
  line-height: 1.35;
}

.regler li:last-child { border-bottom: none; }

code {
  background: #e6edf5;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .05em .35em;
  font-family: Consolas, "Courier New", monospace;
  font-size: .95em;
  color: #0a4f8f;
  white-space: nowrap;
}
/* Rød markering af forbudte tegn/værdier */
.forbudt {
  color: var(--red);
  font-weight: 700;
}

/* Underrubrikker og ekstra indhold i venstre kolonne */
.underrubrik {
  margin: .8vw 0 .3vw;
  font-size: clamp(1.1rem, 1.4vw, 1.45rem);
  color: var(--accent);
  line-height: 1.2;
}

.enheder {
  margin: 0;
  font-size: clamp(.9rem, 1.2vw, 1.25rem);
  line-height: 1.4;
}

.formater {
  list-style: none;
  margin: 0;
  padding: 0;
}

.formater li {
  font-size: clamp(.95rem, 1.3vw, 1.4rem);
  padding: .25vw 0;
  line-height: 1.3;
}

/* Højre kolonne – scrollbar */
.hojre {
  display: flex;
  flex-direction: column;
  gap: 1.2vw;
  padding: 0;
  background: transparent;
  scrollbar-width: thin;
  scrollbar-color: #b6c2d0 transparent;
}

.hojre::-webkit-scrollbar { width: 12px; }
.hojre::-webkit-scrollbar-thumb { background: #b6c2d0; border-radius: 6px; }
.hojre::-webkit-scrollbar-track { background: transparent; }

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
  overflow: hidden;
}

.panel h2 {
  margin: 0;
  padding: .6vw 1.2vw;
  font-size: clamp(1.3rem, 1.8vw, 2.1rem);
  color: #fff;
  line-height: 1.2;
}

.panel.lovligt h2 { background: var(--green); }
.panel.ulovligt h2 { background: var(--red); }

.panel ul {
  list-style: none;
  margin: 0;
  padding: .7vw 1.2vw .9vw;
}

.panel li {
  font-size: clamp(1.05rem, 1.5vw, 1.6rem);
  padding: .4vw 0;
  line-height: 1.25;
}

.panel.lovligt li::before {
  content: "✓";
  color: var(--green);
  font-weight: 700;
  margin-right: .6em;
}

.panel.ulovligt li::before {
  content: "✗";
  color: var(--red);
  font-weight: 700;
  margin-right: .6em;
}

/* Fuldskærm-knap */
.fuldskaerm {
  position: fixed;
  right: .9vw;
  bottom: .9vw;
  z-index: 10;
  background: rgba(11, 110, 203, .9);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: .5em 1em;
  font-size: clamp(.9rem, 1vw, 1.1rem);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}

.fuldskaerm:hover { background: #0a4f8f; }

/* Tilbage-link (diskret, nederst til venstre) */
.tilbage {
  position: fixed;
  left: .9vw;
  bottom: .9vw;
  z-index: 10;
  background: rgba(255, 255, 255, .7);
  color: #0a4f8f;
  border: 1px solid #d7dee8;
  border-radius: 8px;
  padding: .35em .8em;
  font-size: clamp(.75rem, .85vw, .95rem);
  text-decoration: none;
  opacity: .7;
}
.tilbage:hover {
  opacity: 1;
}

