:root {
  --r-background-color: #000;
  --r-main-font-size: 50px;
}

@font-face {
    font-family: 'KarioDuplexVar';
    src: URL('Kario39C3Var-Roman/Kario39C3Var-Roman.ttf') format('truetype');
    src: URL('Kario39C3Var-Roman/Kario39C3VarWEB-Roman.woff') format('woff');
    src: URL('Kario39C3Var-Roman/Kario39C3VarWEB-Roman.woff2') format('woff2');
}

@font-face {
    font-family: 'OfficerSansCond';
    src: URL('fonts/OfficerSansCondWeb-Regular.woff') format('woff');
    src: URL('fonts/OfficerSansCondWeb-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'OfficerSansCond';
    font-weight: bold;
    font-style: italic;
    src: URL('fonts/OfficerSansCondWeb-BoldItalic.woff') format('woff');
    src: URL('fonts/OfficerSansCondWeb-BoldItalic.woff2') format('woff2');
}

@font-face {
    font-family: 'OfficerSansCond';
    font-weight: bold;
    src: URL('fonts/OfficerSansCondWeb-Bold.woff') format('woff');
    src: URL('fonts/OfficerSansCondWeb-Bold.woff2') format('woff2');
}

@font-face {
    font-family: 'OfficerSansCond';
    font-style: italic;
    src: URL('fonts/OfficerSansCondWeb-RegularItalic.woff') format('woff');
    src: URL('fonts/OfficerSansCondWeb-RegularItalic.woff2') format('woff2');
}

@font-face {
    font-family: 'OfficerSans';
    src: URL('fonts/OfficerSansWeb-Regular.woff') format('woff');
    src: URL('fonts/OfficerSansWeb-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'OfficerSans';
    font-weight: bold;
    font-style: italic;
    src: URL('fonts/OfficerSansWeb-BoldItalic.woff') format('woff');
    src: URL('fonts/OfficerSansWeb-BoldItalic.woff2') format('woff2');
}

@font-face {
    font-family: 'OfficerSans';
    font-weight: bold;
    src: URL('fonts/OfficerSansWeb-Bold.woff') format('woff');
    src: URL('fonts/OfficerSansWeb-Bold.woff2') format('woff2');
}

@font-face {
    font-family: 'OfficerSans';
    font-style: italic;
    src: URL('fonts/OfficerSansWeb-RegularItalic.woff') format('woff');
    src: URL('fonts/OfficerSansWeb-RegularItalic.woff2') format('woff2');
}

:root {
    --color-dark: #141414;
    --color-neutral: #faf5f5;
    --color-primary: #00ff00;
    --color-secondary: #9673ff;
    --color-additional-01: #ff3719;
    --color-additional-02: #66f2ff;

    --color-primary-tint-01: #009900;
    --color-primary-tint-02: #00be00;
    --color-primary-tint-03: #00d300;
    --color-primary-tint-04: #00ea00;
    --color-primary-tint-05: #a3ff90;
    --color-primary-tint-06: #ccffbe;
    --color-primary-tint-07: #ebffe5;

    --color-secondary-tint-01: #4d2eed;
    --color-secondary-tint-02: #5c33f4;
    --color-secondary-tint-03: #7952fe;
    --color-secondary-tint-04: #b69dfe;
    --color-secondary-tint-05: #d4c4fe;
    --color-secondary-tint-06: #efe7ff;
}


.container{
  display: flex;
}

.logo-wrapper {
  display: flex;
  flex-wrap: wrap;
}

.logo-wrapper > div {
  width: 10rem !important;
  height: 10rem !important;
  background: white;
  margin: .5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-wrapper > div > img {
  width: 90% !important;
  vertical-align: middle;
  margin: 0;
}

.col {
  flex: 1;
}

.pt {
  padding-top: 3rem;
}

/* About Us overlay arrows and caption */
.about-us {
  position: relative;
  align-items: flex-start;
}

.about-wrap {
  position: relative;
}

.about-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.about-arrows {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.about-arrows .arrow {
  stroke: #ffffff;
  stroke-width: 2;
  stroke-linecap: round;
  filter: drop-shadow(1px 1px 1px rgba(0,0,0,0.6));
}

.about-caption {
  position: relative;
  z-index: 2;
  margin-top: 10vh;
  text-align: center;
  font-size: 0.9em;
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
}

.about-skill {
  position: relative;
}

.about-key {
  display: inline-block;
}

.reveal .about-key-fragment.fragment {
  opacity: 1;
  visibility: visible;
}

.reveal .about-key-fragment.fragment.visible {
  background: #0f0;
  margin: -2px -4px;
  padding: 2px 4px;
  color: #141414;
  border-radius: 0em;
}

.comment { font-family: OfficerSans; opacity: 100%; font-style: italic; }

.reveal mark,
.reveal .green-highlight {
  background: #0f0;
  margin: -2px -4px;
  padding: 2px 4px;
  color: #141414 !important;
  border-radius: 0em;
}


@font-face { 
    font-family: "inter"; 
    src: url("Inter/static/Inter-Regular.ttf"); 
}

@font-face { 
    font-family: "inter-bold"; 
    src: url("Inter/static/Inter-Bold.ttf") format("truetype"); 
}

@font-face {
    font-family: "Luckiest Guy";
    src: url("Luckiest_Guy/LuckiestGuy-Regular.ttf") format("truetype");
    font-style: normal;
    font-display: swap;
}

.reveal h1 {
    font-family: "KarioDuplexVar";
}


.noluck {
    font-family: 'OfficerSans'
}

.reveal h2 {
    font-family: "KarioDuplexVar", cursive;
}

.reveal h3, .reveal h4, .reveal h5, .reveal h6, .reveal, #footnote {
    font-family: 'OfficerSans'
}

.about-face {
    border-radius: 50%;
    height: 300px;
}

.reveal .undertitle {
    font-family: 'OfficerSans';
}

.shadowed {
   text-shadow: 2px 2px black !important;
}

.overlay-card {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(3px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.55);
  padding: 1.25rem 1.5rem;
  max-width: 80vw;
  margin: 0 auto;
  text-align: left;
  color: #f6f6f6;
}

.overlay-card h2 {
  margin-top: 0;
}

.overlay-card ul {
  margin: 0.5rem 0 0 1.2rem;
}

.overlay-card p {
  margin: 0.25rem 0 0.75rem;
}

#footnote {
  position: absolute;
  bottom: .5rem;
  left: .5rem;
  color: black;
}

.two-column-wrapper {
  position: relative;  /* Needed for absolute-positioned SVG lines */
  width: 80%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start; /* Start columns at top alignment */
  padding: 1em 0;
  font-size: .6em;
}

.aacolumn {
  width: 45%;
  display: flex;
  flex-direction: column;
  gap: 1em;
}

/* --- Authors and Affiliations text styling --- */
.author,
.affiliation {
  position: relative; /* So we can easily find element positions in JS */
}

/* Align text in each column for clarity */
.column-authors {
  text-align: right;
}
.column-affiliations {
  text-align: left;
}

/* --- The SVG lines container --- */
.connectors {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* So clicks pass through */
}

.reveal .slide-number {
  font-size: 1em !important;
  color: #ffffff;
}

.reveal strong {
    font-weight: 1000;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* ==== Layers slide styling ==== */

.layer-col {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.layer-col-title {
  margin: 0 0 .25rem 0;
  font-size: .9em;
  letter-spacing: .02em;
  opacity: .9;
}

.layer-box {
  position: relative;
  border-radius: 14px;
  padding: 1.1rem;
  border: 2px solid rgba(255,255,255,0.15);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.04);
  backdrop-filter: blur(2px);
}

.layer-title {
  position: absolute;
  top: -12px;
  left: 14px;
  padding: .2rem .55rem;
  border-radius: 999px;
  font-size: .55em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,0.15);
}

.layer-content ul.tight { margin: 0; }
.tight { margin: .2rem 0 0 1rem; }
.tight li { margin: .15rem 0; }
/* Hide bullets inside layered graphic */
.layers-outer ul { list-style: none; padding-left: 0; }

/* Color themes for layers */
.layer-outer {
  background: rgba(138, 43, 226, 0.14); /* blueviolet */
  border-color: rgba(138, 43, 226, 0.8);
}

.layer-mid {
  background: rgba(0, 188, 212, 0.14); /* cyan */
  border-color: rgba(0, 188, 212, 0.85);
}

.layer-inner {
  background: rgba(255, 152, 0, 0.14); /* orange */
  border-color: rgba(255, 152, 0, 0.85);
}

/* Tweaks for readability on black theme */
.layer-box, .layer-col-title {
  color: #fff;
}

/* ===== Terminal typing demo ===== */
.term-sim {
  width: 100%;
  max-width: none;
  height: 75vh;
  background: #1b1f26;
  color: #e6e6e6;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.04);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: 1rem auto 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
.term-sim .titlebar {
  height: 42px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 0 12px;
  background: linear-gradient(#1a1a1a, #141414);
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: 16px;
  color: #9aa0a6;
}
.term-sim .traffic-lights { display: inline-flex; gap: 6px; margin-right: 10px; }
.term-sim .dot { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.28); }
.term-sim .dot.red { background: #ff5f56; }
.term-sim .dot.yellow { background: #ffbd2e; }
.term-sim .dot.green { background: #27c93f; }
.term-sim .titlebar-spacer { width: 1px; height: 1px; }
.term-sim .title { justify-self: center; color: #cfd3d7; font-weight: 500; }
.term-sim .screen {
  flex: 1;
  padding: 14px;
  overflow: auto;
  line-height: 1.45;
  font-size: 30px;
  tab-size: 4;
  white-space: pre-wrap;
  text-align: left; /* ensure left-aligned inside slides */
}
.term-sim .cursor {
  display: inline-block;
  width: 14px;
  height: 1.1em;
  background: #e6e6e6;
  vertical-align: -0.2em;
  margin-left: 2px;
  animation: term-blink 1s steps(1) infinite;
}
@keyframes term-blink { 50% { opacity: 0; } }
.term-sim .prompt { color: #5bbd68; }
.term-sim .cmd { color: #ffffff; }
.term-sim .out { color: #e6e6e6; }
.term-sim .ok  { color: #00d1b2; }

/* Hard override: anything inside the terminal should be left-aligned */
.reveal .slides section .term-sim,
.reveal .slides section .term-sim * {
  text-align: left !important;
}

/* Grid layout for comparing signature types side by side */
.signature-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: flex-start;
  margin-top: 1rem;
}

.signature-col h3 {
  margin: 0 0 .5rem 0;
}

.signature-col .term-sim {
  height: 55vh;
  margin: 0;
  max-width: none;
}

/* Slightly smaller terminal text only on the signature comparison slide */
#slide-signature-types .term-sim .screen {
  font-size: 23px;
}

@media (max-width: 1200px) {
  .signature-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .signature-columns {
    grid-template-columns: 1fr;
  }

  .signature-col .term-sim {
    height: 50vh;
  }
}

/* Ensure nested boxes have breathing room */
.layer-box .layer-box { margin-top: .6rem; }

.no-numbers-code .hljs-ln-numbers {
  display: none;
}

.no-numbers-code .hljs-ln-code {
  padding-left: 0.75em;
}

.slide-full-code pre,
.slide-full-code pre code,
.code-slide-full pre,
.code-slide-full pre code {
  max-height: none;
}

pre {
  font-size: 30px !important;
}

.code-marker-slide {
  height: 100%;
  display: flex !important;
  flex-direction: column;
  justify-content: flex-start;
}

.code-marker-slide > pre {
  flex: 0 0 auto;
  margin: 0 0 0.6rem 0;
}

.code-marker-slide > img {
  flex: 1 1 auto;
  min-height: 0;
  object-fit: contain;
}

.reveal blockquote {
  background: rgba(255, 255, 255, 0.12);
}

.reveal .hljs .highlight-line-part {
	background: #0f0;
	margin: -2px -4px;
	padding: 2px 4px;
	color: #141414;
	border-radius: 0em;
}

.reveal pre code {
  max-height: 810px;
}

/* Overview table styling */
.overview-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 28px;
}

.overview-table th,
.overview-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  text-align: left;
}

.overview-table th {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85em;
  color: #d1d1d1;
}

.overview-table tbody tr:last-child td {
  border-bottom: none;
}

.overview-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}

.overview-table tbody tr.overview-divider td {
  background: rgba(255, 255, 255, 0.06);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.9em;
  color: #d1d1d1;
}

.pill {
  display: inline-block;
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-size: 0.75em;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.status-patched { color: #8ef3a0; }
.status-unpatched { color: #ffb185; }
.status-wontfix { color: #ffd166; }
.severity-high { color: #ff6f6f; }
.severity-low { color: #7fc7ff; }
.severity-moderate { color: #ffd166; }
