@font-face {
    font-family: 'alagard';
    src: url("/fonts/alagard.ttf"),
}

@keyframes fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}

body {
    margin: 0;
    background-image: url("/images/bgdungeon.png");
    background-size: auto;
    background-repeat: repeat;
    background-attachment: scroll;
    font-family: 'alagard', serif;
}

.book {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 690px;
    height: 90%;

    background-image: url("/images/newbookcover.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;

    transform: translate(-50%, -50%);
    z-index: 1;
    animation: fadein 2s;

    display: block;            /* important for <a> */
}

.book:hover {
transform: translate(-50%, -50%) rotate(5deg);
}

.pagebutton a {
 color: #b02f00;
 font-size: 1.5em;
 bottom: 0;
 padding-bottom: 20px;
 position: fixed;
 left: 50%;
 transform: translateX(-50%);
 text-decoration: none;
}

.pagebutton a:hover{
color: #f24100;
text-decoration: underline;
}

.nav-left,
.nav-right {
    position: fixed;
    top: 20px;
    display: flex;
    gap: 15px;
}

.nav-left {
    left: 20px;
}

.nav-right {
    right: 20px;
}

.icon {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.icon.reverse {
    flex-direction: row;
}

.icon img {
    width: 40px;
    cursor: pointer;
    transition: filter 0.2s;
}

.icon:hover img {
    filter: brightness(0) saturate(100%) invert(100%);
}

.icon span {
    display: none;
    color: white;
    font-size: 24px;
    font-weight: bold;
    white-space: nowrap;
}

.nav-left .icon span {
    margin-left: 8px;
}

.nav-right .icon span {
    margin-right: 8px;
}

.icon:hover span {
    display: inline;
}