body {
    background-color: black;
    color: white;
    margin: 0;
    font-family: GrenzeGothic;
    font-size: large;
}

#snackbar {
    opacity: 0;
    min-width: 250px;
    margin-left: -125px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 2px;
    padding: 16px;
    position: fixed;
    z-index: 5;
    left: 50%;
    bottom: 30px;
    font-size: 17px;
    transition: all 0.4s;
} #snackbar.show {
    opacity: 1;
    transition: all 0.4s;
}

h1, h2, h3, h4,
p {
    margin: 0;
}

p {
    font-family: Grenze;
}

.titel {
    grid-column: span 2;
}

.previewMini {
    width: 60px;
    height: 60px;
} .previewMini:hover {
    filter: brightness(1.2);
    cursor: pointer;
}

#homeBtn {
    animation-name: rotating;
    animation-duration: 8s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    margin: auto;
}

#logo {
    width: 400px;
    height: 400px;
    margin: auto;
    cursor: pointer;
}

#navBar {
    display: grid;
} nav {
    cursor: pointer;
    margin: auto;
    border: solid white 1px;
    transition: all 0.2s;
} nav.active {
    cursor: default;
    transition: all 0.2s;
} nav:hover {
    background-color: #1a1a1a;
}

#book {
    position: fixed;
    width: 100%;
    height: 100%;
    margin: 0;
    display: grid;
}

#page-cover,
#page-current,
#page-previous,
#page-next {
    transform-origin: left;
    padding: 20px;
    border: solid gray 2px;
    border-top-left-radius: 25px;
    border-bottom: double gray 4px;
    border-right: double gray 4px;
    display: grid;
    grid-template-rows: 100%;
    gap: 20px;
    overflow: hidden;
    background-image: linear-gradient(to left, black, #0d0d0d);
}

#page-cover {
    text-align: center;
    padding-top: 5%;
    grid-template-rows: auto;
    z-index: 3;
} #page-previous {
    visibility: hidden;
    z-index: 2;
} #page-next {
    z-index: -1;
}

#page-cover.next,
#page-current.next {
    animation-name: next;
    animation-duration: 0.4s;
    animation-timing-function: linear;
} 

#page-cover.previous,
#page-previous.previous {
    visibility: visible;
    animation-name: previous;
    animation-duration: 0.4s;
    animation-timing-function: linear;
}
  

::-webkit-scrollbar {
      background-color: #0d0d0d;
      width: 4px;
} ::-webkit-scrollbar-thumb {
      background-color: #1a1a1a;
}

.frame {
    overflow-y: scroll;
    scrollbar-width: thin;
}
  
.content {
    font-family: Grenze;
    position: relative;
    padding: 10px;
    border: 1px solid darkgray;
    display: grid;
    gap: 20px;
    z-index: 1;
} .content::after {
    content:'';
    position: absolute;
    z-index: -1;
    top:-1px; left:-1px;
    border: 1px solid black;
    height: 100%;
    width: 100%;
    border-radius: 25px;
}

.navSymbol {
    display: block;
    margin: auto;
} .navText {
    display: none;
    margin: auto;
}

footer {
    grid-row: 3;
    grid-column: 2;
    text-align: center;
    cursor: pointer;
    z-index: 5;
    transition: all 0.4s;
    display: grid;
    gap: 10px;
    padding: 0 30px 0 30px;
} footer p {
    display: none;
} footer.dropdown {
    background-color: black;
    padding: 30px;
    top: 0;
    bottom: 0;
    position: fixed;
    border: 1px solid white;
} footer.dropdown p {
    display: block;
} footer hr {
    display: none;
} footer.dropdown hr {
    display: block;
}

@keyframes next {
    from { transform: perspective(   0px) rotateY(   0deg); }
    to   { transform: perspective(1000px) rotateY(-180deg); }
}

@keyframes previous {
    from { transform: perspective(   0px) rotateY(-180deg); }
    to   { transform: perspective(1000px) rotateY(   0deg); }
}

@keyframes rotating {
    from { transform: rotate(  0deg); }
    to   { transform: rotate(360deg); }
}

img.article {
    max-width: 80%;
}