@font-face {
  font-family: 'Stempel-Garamond-W01-Roman';
  font-style: normal;
  font-weight: normal;
  src: url('../fonts/Stempel-Garamond-W01-Roman.woff') format('woff');
}

body, ul, table, form {
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.animated {
  -webkit-transition: margin-left 0.2s ease-in-out;
  transition: margin-left 0.2s ease-in-out;
}

#canvas {
  width: 1200px;
  height: 800px;
  margin: 50px auto;
}

#book-zoom {
  -webkit-transition: -webkit-transform 1s;
  transition: transform 1s;
}

.jn-buch {
  width: 1200px;
  height: 800px;
}

.jn-buch h1 {
  font-family: "Stempel-Garamond-W01-Roman";
  font-size: 38px;
  font-weight: lighter;
  margin: 20px 0;
  color: #333;
  -webkit-text-fill-color: #333;
  -webkit-text-stroke-color: white;
  -webkit-text-stroke-width: 0.005em;
}

.jn-buch h2 {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #444;
  font-size: 16px;
  letter-spacing: 2px;
  font-weight: 400;
}

.jn-buch .book-content {
  font-family: "Stempel-Garamond-W01-Roman";
  font-size: 16px;
  margin: 70px 40px;
}

.jn-buch blockquote {
  color: #586078;
  margin: 10px 0;
  font-style: italic;
}

.jn-buch blockquote:before {
  content: "\201C";
  color: #333D53;
  font-size: 20px;
}

.jn-buch blockquote:after {
  content: "\201D";
  color: #333D53;
  font-size: 20px;
}

.jn-buch cite {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 200;
  font-style: normal;
  color: #666;
}

.jn-buch .book-content .center-pic {
  margin: 0;
  text-indent: 0;
  text-align: center;
}

.jn-buch .zoom-this:hover {
  opacity: 0.9;
  cursor: pointer;
}

.jn-buch .book-content p {
  text-indent: 18px;
  margin: 20px 0;
  line-height: 22px;
}

.jn-buch .left-pic {
  float: left;
  margin-top: 15px;
  margin-right: 15px;
  margin-bottom: 15px;
}

.jn-buch .shadow {
  -webkit-transition: -webkit-box-shadow 0.5s;
  transition: box-shadow 0.5s;
  -webkit-box-shadow: 0 0 10px #999;
  box-shadow: 0 0 10px #999;
}

.jn-buch .page {
  -webkit-box-shadow: 0 0 10px rgba(0,0,0,0.2);
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

.zoom-pic {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.2);
  z-index: 999;
}

.zoom-pic img {
  -webkit-box-shadow: 0 0 20px #999;
  box-shadow: 0 0 20px #999;
}

.jn-buch .p1,
.jn-buch .p2,
.jn-buch .p3,
.jn-buch .p111,
.jn-buch .p112 {
  background-color: white;
  background-image: url(../pics/book-covers.jpg) !important;
}

.jn-buch .p1 {
  background-position: 0 0;
}

.jn-buch .p1 .side {
  width: 5px;
  height: 600px;
  position: absolute;
  top: 0;
  left: 575px;
  background-image: linear-gradient(to right, #bbb, #ddd, #bbb);
  transform: rotateY(-90deg);
  transform-origin: top right;
  z-index: 100000;
}

.jn-buch-transform div[page="1"] > div,
.jn-buch-transform div[page="2"] > div {
  overflow: visible !important;
}

.jn-buch .depth {
  background-image: url(../pics/pages-depth.png);
  position: absolute;
  top: 7px;
  width: 16px;
  height: 800px;
}

.jn-buch .front-side .depth {
  left: 4px;
  background-position: 0 0;
}

.jn-buch .p2 {
  background-position: -600px 0 !important;
}

.jn-buch .p3 {
  background-position: -2400px 0 !important;
}

.jn-buch .p111 {
  background-position: -1200px 0 !important;
}

.jn-buch .p112 {
  background-position: -1800px 0 !important;
}

.jn-buch .hard {
  width: 600px;
  height: 800px;
  background-color: white;
  box-shadow: none;
}

.jn-buch .page-wrapper {
  perspective: 2000px;
}

.jn-buch .page {
  width: 580px;
  height: 782px;
  position: relative;
  background-color: white;
  background-size: cover;
  background-repeat: no-repeat;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.jn-buch .even {
  background-image: linear-gradient(to left, #fff 95%, #dadada 100%);
}

.jn-buch .odd {
  background-image: linear-gradient(to right, #fff 95%, #cacaca 100%);
}

.jn-buch .loader {
  background-image: url(../pics/loader.gif);
  width: 22px;
  height: 22px;
  position: absolute;
  top: 280px;
  left: 219px;
}

.jn-buch .page-number {
  color: #999;
  width: 100%;
  bottom: 25px;
  position: absolute;
  display: block;
  text-align: center;
  line-height: 30px;
  font-size: 11px;
}

.jn-buch .table-contents {
  font-size: 16px;
  width: 500px;
  margin: 80px auto;
  color: #ccc;
}

.jn-buch .table-contents li {
  list-style: none;
  line-height: 25px;
}

.jn-buch .table-contents span {
  float: right;
}

.jn-buch .table-contents a {
  float: left;
  width: 100%;
  clear: both;
  text-decoration: none;
  color: #333;
  margin: 2px 0;
  padding: 0 10px;
}

.jn-buch .table-contents a:hover {
  background: #CAD1EE;
  border-radius: 10px;
}

.jn-buch .book-content .capital,
.jn-buch .book-content .no-indent {
  text-indent: 0;
}

.jn-buch .capital:first-letter {
  display: block;
  float: left;
  font-size: 300%;
  line-height: 70%;
  margin-right: 6px;
  margin-top: 7px;
  margin-left: 18px;
}

.jn-buch .book-inner {
  width: 1200px;
  height: 760px;
  margin: auto;
  position: absolute;
  top: 20px;
  left: 150px;
  background-color: #fefefe;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  z-index: 1;
}

.seite {
  background: radial-gradient(#fdf6e3, #e8dcc2);
  border: 4px solid #d4b93b;
  font-family: 'Stempel-Garamond-W01-Roman', serif;
  padding: 40px;
  box-sizing: border-box;
  overflow: auto;
  height: 100%;
  width: 100%;
  color: #5a4a2d;
  line-height: 1.8;
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  #canvas {
    height: 70vh;
  }
}

.dummy-seite {
  background-image: url('../pics/vergilbte-seiten.jpg');
  background-size: cover;
  background-repeat: repeat;
  background-position: center;
  padding: 1em;
  font-style: italic;
  color: #000;
  border-radius: 8px;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
  font-family: 'Georgia', serif;
  font-size: 1em;
}

.fraktur-rahmen {
  border: 4px double #3b3b3b;
  padding: 2em;
  margin: 2em auto;
  max-width: 800px;
  background-color: rgba(255, 255, 240, 0.9);
  font-family: 'UnifrakturCook', cursive;
  font-size: 1.4em;
  color: #111;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  text-align: center;
  line-height: 1.6;
}

.mini-rahmen {
  border: 2px solid #3b3b3b;
  padding: 1em;
  margin: 2em auto;
  max-width: 600px;
  background-color: rgba(255, 255, 240, 0.85);
  font-family: 'UnifrakturCook', cursive;
  font-size: 1.3em;
  color: #111;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  text-align: center;
  line-height: 1.5;
  border-radius: 8px;
}

.text-mit-rahmen {
  display: inline-block;
  border: 1px solid #444;
  padding: 0.5em 1em;
  font-family: 'UnifrakturCook', cursive;
  font-size: 1.2em;
  color: #111;
  line-height: 1.5;
}

/* Manchmal stehen Dinge einfach nebeneinander, weil sie es wollen */
.bild-links {
  display: flex;
  gap: 2em;
  flex-wrap: wrap;
  align-items: flex-start;
}

/* Und manchmal drehen sie sich um, weil die Welt eben rückwärts läuft */
.bild-rechts {
  display: flex;
  gap: 2em;
  flex-wrap: wrap;
  flex-direction: row-reverse;
  align-items: flex-start;
}

/* Manche Bilder lehnen sich einfach an den Rand und lassen den Text tanzen */
.bild-umflossen img {
  float: left;
  width: clamp(180px, 25vw, 300px);
  margin: 0 1.5em 1.5em 0;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

/* Und wenn der Raum zu eng wird, dann stellen sich alle in die Mitte */
@media (max-width: 768px) {
  .bild-links,
  .bild-rechts {
    flex-direction: column;
    align-items: center;
  }

  .bild-links img,
  .bild-rechts img,
  .bild-umflossen img {
    float: none;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 1.5em auto;
    display: block;
  }
}

/* Und wenn niemand hinsieht, flüstert die Seite: Ich bin ein Pergament, kein Container */
.seite {
  background: radial-gradient(#fdf6e3, #e8dcc2);
  padding: 3em;
  font-family: 'Stempel-Garamond-W01-Roman', serif;
  font-size: 1.2rem;
  line-height: 1.8;
  color: #5a4a2d;
  border: 4px solid transparent;
}