Fix print to pdf

Change-Id: I27f134c1ee74fe06a7f4579f9f4845da5d5c7ef1
diff --git a/inst/reveal.js-5.2.1/dist/theme/ids.css b/inst/reveal.js-5.2.1/dist/theme/ids.css
index bc3301d..d3cc7ed 100644
--- a/inst/reveal.js-5.2.1/dist/theme/ids.css
+++ b/inst/reveal.js-5.2.1/dist/theme/ids.css
@@ -35,9 +35,9 @@
   --r-heading4-size: 0.7em;
   --r-code-font: Fira Code, Fira Mono, DejaVu Sans Mono, Source Code Pro, monospace;
   --r-link-color: #2a76dd;
-  --r-link-color-dark: rgb(12.0674763833%, 39.0418353576%, 75.5991902834%);
-  --r-link-color-hover: rgb(42.3410335794%, 62.9141859173%, 90.7962213225%);
-  --r-selection-background-color: rgb(59.5879971422%, 74.0073033262%, 93.5492577598%);
+  --r-link-color-dark: rgb(30.7720647773, 99.5566801619, 192.7779352227);
+  --r-link-color-hover: rgb(107.9696356275, 160.4311740891, 231.5303643725);
+  --r-selection-background-color: rgb(151.9493927126, 188.7186234818, 238.5506072874);
   --r-selection-color: #fff;
   --r-overlay-element-bg-color: 240, 240, 240;
   --r-overlay-element-fg-color: 0, 0, 0;
@@ -360,7 +360,7 @@
     background-color: var(--r-background-color);
   }
 }
-.reveal .slides section:not(.stack) {
+html .reveal .slides section:not(.stack) {
   box-sizing: border-box !important;
   padding-left: calc(calc(var(--slide-height) * 0.05) + 24px) !important;
   padding-right: calc(calc(var(--slide-height) * 0.05) + 24px) !important;
@@ -632,6 +632,39 @@
   transition: opacity 800ms ease-in-out;
 }
 
+/* In print, the footer's negative stacking drops it behind the .pdf-page
+ * backgrounds (z-index 1); lift it above them. position: fixed repeats it at
+ * the bottom of every printed page. */
+html.reveal-print #ids-footer {
+  z-index: 100 !important;
+}
+
+html.reveal-print .reveal .slides .pdf-page {
+  z-index: auto !important;
+}
+
+html.reveal-print div.slide-number-pdf {
+  z-index: 200 !important;
+  bottom: 15px !important;
+}
+
+html.reveal-print .reveal .slides section:not(.title-frame) > h1:first-child::before,
+html.reveal-print .reveal .slides section:not(.title-frame) > h2:first-child::before {
+  left: 0 !important;
+}
+
+html.reveal-print .reveal .slides section:not(.title-frame) > h2:first-child + h3::before {
+  left: calc(-1 * calc(calc(var(--slide-height) * 0.05) + 24px)) !important;
+}
+
+html.reveal-print .reveal .slides section.level1:not(.title-frame)::before {
+  left: 0 !important;
+}
+
+html.reveal-print .reveal .slides section.title-frame {
+  background-position: right 8px bottom 55px;
+}
+
 .reveal .slides section.title-frame {
   background-image: url("https://corpora.ids-mannheim.de/slides/reveal.js.ids/images/Mitglied_WGL_transparent.svg");
   background-repeat: no-repeat;