/*test on prod  test worked test*/ 
body {
    background-color: #3d4566 !important;
    color: white;
    background: url(/images/my-library-bg.webp), linear-gradient(180deg, #101010, #171a21, #3d4566);
    background-position: top 0px center, top center;
    background-repeat: no-repeat;
	background-attachment: fixed;
    background-size: 1920px, cover !important;
}

/* NPC */
p.armor-class {
    color: #5a0507;
}
p.hit-points {
    color: #5a0507;
}

/*==========================================
    Battles / Encounters
========================================*/

#fantasy-sidebar-content {
    color:white;
}

.main-reader-holder {

    .fantasy-battle {
        background: #FAFAFA;
        border: 1.5px solid maroon;
        corner-shape: bevel;
        border-radius: 8px;
        padding: 8px 16px;
        width: fit-content;
        margin-top: 24px;
        margin-bottom: 24px;
        font-family: 'Noto Sans';
    }
    
    p.battle-title {
        margin: 8px 0px !important;
        border-bottom: 1.5px solid maroon;
        padding-bottom: 4px;
    }
    
    .battle-metadata {
        display: flex;
        gap: 32px;
        justify-content: space-between;
        text-transform: uppercase;
        font-weight: bold;
        margin-top: 4px;
        margin-bottom: 12px;
    }
    
    ul.npc-list {
        padding-left: 24px;
    }
    

}



/*==========================================
    Beta Tag
========================================*/

   .page-title {
        position: relative;
    }
    
  .page-title:before {
      content: "BETA";
      position: absolute;
      font-size: 12px;
      font-family: Lato;
      background: #006a74;
      display: flex;
      height: 18px;
      width: 38px;
      justify-content: center;
      align-items: center;
      border-radius: 4px;
      border: 1px solid #00d740;
      right: -42px;
      top: 15px;
  }
  
  .page-title:hover.page-title:after {
      visibility: visible;
      opacity: 1;
  }
  
   .page-title:after {
        content: "The Online Reader is a work in progress - book displays will vary and are not final. We decided to make it available now because your feedback will help shape its future, and we thought it was useful even in its current early state, but there is much more to come!";
        position: absolute;
        font-size: 12px;
        font-family: Lato;
        text-transform: none;
        font-weight: 400;
        background: #101010;
        line-height: 1;
        display: flex;
        height: 100px;
        width: 268px;
        z-index: 9;
        justify-content: center;
        align-items: center;
        border-radius: 4px;
        border: 1px solid #838383;
        right: -43px;
        top: 40px;
        box-shadow: 2px 2px 6px rgba(0, 0, 0, .6);
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.3s;
}
  }



/*==========================================
    Fonts
========================================*/


  @font-face {
    font-family: 'Noto Sans';
    src: url('/fonts/NotoSans-Variable.ttf');
  }
  
  
/*==========================================
    Core Responsive
========================================*/


@media screen and (max-width: 1399px) {
  
  .main-reader-holder + .navigation-fab {
        right: 16px;
    }
    
    section.main-layout {
        max-width: calc(100% - 16px);
        width: 100%;
    }

    .content-header {
        overflow: hidden;
    }
    
    .breadcrumbs {
        display: none;
    }
    
    
    .left-ui-navigation.phoenix-container {
        display: none;
    }
    
    .breadcrumbs.expanded {
        display: block;
        position: fixed;
        bottom: 7px;
        z-index: 9999;
        background: #162e32;
        left: 200px;
        border: 1px solid #666666;
        width: 132px;
        border-radius: 0px 0px 8px 8px;
        height: 45px;
        
        .breadcrumbs-holder {
            flex-flow: nowrap;
            margin-top: 12px;
            
            .reader-breadcrumb:not(:first-of-type) {
                display: none;
            }
        }
        
        .reader-breadcrumb a:after {
            display: none;
        }
        
        .reader-breadcrumb a {
            color: white;
        }
        
    }
    
    
    .left-ui-navigation.phoenix-container.expanded {
        display: flex;
        position: fixed;
        bottom: 50px;
        top: unset;
        left: 32px;
        z-index: 999;
        max-height: calc(100% - 178px);
        
    }
    
/*==========================================
    Mobile Navigation
========================================*/

    .breadcrumbs.expanded + .main-layout .mobile-navigation-toggle {
        z-index: 999;
    }


    .mobile-navigation-toggle {
        position: fixed;
        height: 50px;
        width: 50px;
        background: #006a74;
        border-radius: 50%;
        bottom: 8px;
        left: 16px;
        border: 1px solid #666666;
        box-shadow: 2px 2px 6px rgba(0,0,0,.6);
        a {
            height: 50px;
            width: 50px;
            display: block;
        }
        
    }
    
    .mobile-navigation-toggle:before {
        content: "≡";
        font-size: 36px;
        font-weight: bold;
        position: absolute;
        display: flex;
        justify-content: center;
        align-items: center;
        top: -2px;
        height: 50px;
        width: 50px;
        pointer-events: none;
        
    }
  
  
}

@media screen and (max-width: 856px) {
  
  .left-ui-navigation + .main-reader-holder{
      max-width: 100%;
  }
  
  .content-header .content-header-block {
      max-width: 25%;
  }
  
  .content-header .content-header-center {
      max-width: 50%;
  }
  
  .content-header-left .previous-chapter {
      padding-right: 24px;
      
  }
  
  .content-header-right .next-chapter {
      padding-left: 24px;
  }
  
    div#main-reader-content.reader-content {
        width:-webkit-fill-available;
        padding: 8px 16px;
    }
  
  
}

@media screen and (max-width: 599px) {
    
    div#fantasy-sidebar {
        max-width: 100%;
        height: 100vh;
    }
  
    .content-header.content-header-center {
          max-width: 60%;
      }
  
  .content-header-left .previous-chapter a {
      color: transparent !important;
      text-overflow: none;
      
  }
  
  .content-header-right .next-chapter a {
      color: transparent !important;
      text-overflow: none;
  }
  
  .content-header-left .previous-chapter {
      color: transparent !important;
      text-overflow: none;
      
  }
  
  .content-header-right .next-chapter {
      color: transparent !important;
      text-overflow: none;
  }
  
  .content-header-left:before {
      right: -16px !important;
      pointer-events: none;
  }
  
  .content-header-right:after {
      left: -16px !important;
      pointer-events: none;
  }
  
  .content-header-center .previous-chapter a {
      font-size: 12px;
      text-overflow: ellipsis;
      padding-left: 8px !important;
  }
  
  .content-header-block.content-header-center .previous-chapter:before {

    left: 0px !important;
  }
  
    .library-search-container .input-group .form-horizontal {
        display: flex;
        flex-direction: column;
    }
    
    .library-search-container .input-group .form-horizontal .form-control#sys {
        max-width: unset;
    }
    
    .book-meta-holder {
        flex-flow: column;
        
    }
    
    
    .book-image-holder {
        display: flex;
        justify-content: center;
    }
    
    .dualtext-block {
        grid-template-columns: 1fr !important;
    }
    
    .dualtext-right {
        padding-left: 0px !important;
        border-top: 1px dashed #666666;
    }
    
    .dualtext-right.daultext-right-image {
        margin: auto !important;
    }
  
}

  
/*==========================================
    Back to Top FAB
========================================*/


    .navigation-fab {
        position: fixed;
        height: 50px;
        width: 50px;
        background: #006a74;
        border-radius: 50%;
        right: calc(50% - 680px);
        border: 1px solid #666666;
        bottom: -60px;
        transition: bottom 0.3s ease;
        box-shadow: 2px 2px 6px rgba(0,0,0,.6);
        a {
            height: 50px;
            width: 50px;
            display: block;
        }
        &.visible {
            bottom:8px;
        }
    }
    
    .navigation-fab:before {
        content: "▲";
        font-size: 24px;
        font-weight: bold;
        position: absolute;
        display: flex;
        justify-content: center;
        align-items: center;
        top: -2px;
        height: 50px;
        width: 50px;
        pointer-events: none;
        
    }
    
  
    
/*==========================================
    Library Home & System
========================================*/

.no-books p {
    text-transform: uppercase;
    font-style: italic;
    color: goldenrod;
    font-size: 16px;
}

.book-listing {
    padding-bottom: 40px;
    
    .pagination-container {
        max-width: fit-content;
        margin: auto;
        margin-top: 48px;
    }
    
    span.library-pagination-button.w-button {
        background-color: #006a74;
        background-image: none;
        justify-content: center;
        align-items: center;
        width: 76px;
        padding: 0px;
        display: flex;
        border-radius: 8px;
        background-position: 50%;
        background-size: 24px;
        border: 1px solid #00a3b3;
        height: 42px;
        font-size: 12px;
        font-weight: bold;
        font-family: 'Poppins';
        text-transform: uppercase;
    }
    
    span.library-pagination-button.w-button a {
        font-size: 12px;
        font-weight: bold;
        font-family: 'Poppins';
        text-transform: uppercase;
        color: white;
        height: 100%;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    span.library-pagination-button.w-button.disabled {
        background: gray;
        color: #CFCFCF;
        border-color: #838383;
        
    }

}


.book-listing-items {
    grid-column-gap: 24px;
    grid-row-gap: 24px;
    flex-flow: wrap;
    justify-content: center;
    align-items: flex-start;
    max-width: 1500px;
    display: flex;
    margin: 0px auto;
    
    .product-card.library-product-card {
        height: 240px;
        background-size: cover;
    }
    
    .product-sysystem-badge {
        color: #fff;
        text-transform: uppercase;
        background-color: #3b4363;
        border: 1px solid #838383;
        border-radius: 0px 8px 0px 0px;
        padding: 2px 8px;
        font-family: Lato, sans-serif;
        font-size: 11.5px;
        font-weight: 700;
        position: absolute;
        top: 140px;
        left: 0px;
    }
    
    .product-card-content-block {
        height: 74px;
        background-image: none;
        background: #000000d5;
        border-top: 1px solid #838383 !important;
    }
    
    .product-title-text {
        bottom: 10px;
    }
    
    .product-title-text.line-clamp-3 {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        height: fit-content;
        max-height: 56px;
        position: relative;
        bottom: auto;
    }
    
    a.product-card-cover-block.w-inline-block {
        height: 240px;
        z-index: 99;
    }

}

.library-search-container {
    display:flex;
    flex-direction: column;
    width:1000px;
    max-width: calc(100% - 32px);
    margin:20px auto;
    
    input::-webkit-input-placeholder {
        font-family: 'Poppins';
        text-transform: uppercase;
        font-weight: bold;
    }
    
    .library-subtitle {
        font-family: 'Poppins';
        font-size: 20px;
        color: #7ac5cc;
        text-align: center;
        text-transform: uppercase;
        text-wrap: balance;
        margin-bottom: 24px;
    }

    a.btn.btn-link {
        font-family: 'Poppins';
        text-transform: uppercase;
        font-weight: bold;
        color: #7ac5cc;
    }
    
    .input-group-append {
        text-align: center;
        padding:5px;
    }
    
    #sys {
        max-width:200px;
        border-radius: 4px;
        font-family: 'Poppins';
        font-weight: bold;
        text-transform: uppercase;
    }
    #sys option {
        font-family: 'Lato';
        font-weight: normal;
        text-transform: none;
    }
    .search-wrapper {
        width:100%;
    }
    .input-group form{
        display:flex;
        gap: 16px
    }
    .search-wrapper {
        display:flex;
    }
}


/*==========================================
    Book Page Style
==========================================*/

.book-body .breadcrumbs-holder {
    width: 1000px;
    max-width: calc(100% - 32px);
    padding-left: 0px;
}

.breadcrumbs-holder {
    max-width: 1180px;
    margin: 16px auto;
    padding-left: 24px;
    margin-bottom: 16px;
    text-transform: uppercase;
    font-family: Lato, sans-serif;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    gap: 32px;
    grid-row-gap: 8px;
    flex-flow: wrap;
    justify-content: flex-start;
    
    .reader-breadcrumb  {
        text-transform: uppercase;
 
        a {
            font-size: 15px !important;
            color: #7ac5cc;
        }
        a:hover {
            color: #ffd300;
        }
    }
}

    .reader-breadcrumb a:after  {
        content:"|";
        color: goldenrod;
        position: relative;
        right: -16px;
        
    }
            
.book-meta-holder {
    margin:0px auto;
    margin-top: 24px;
    width:1000px;
    max-width: calc(100% - 32px);
    gap: 16px;
    display:flex;
    .book-image-holder img {
        max-width: 300px;
    }
    
    .book-description-holder {
        padding-left:20px;
  
        overflow:hidden;
        
        button#readMoreBtn {
            width: 100%;
            border-top: 1px solid goldenrod;
            background: transparent;
            text-transform: uppercase;
            padding-top: 8px;
            font-size: 14px;
            font-family: 'Poppins';
            font-weight: bold;
            color: #7ac5cc;
        }
        
        button#readMoreBtn:hover {
            color: #ffd300;
        }
        
        button#readMoreBtn:before {
            content: "";
            display: block;
            height: 24px;
            background: transparent;
            position: relative;
            top: -24px;
            margin: -9px -6px;
            width: calc(100% + 12px);
        }
        
        .book-description.expanded + button#readMoreBtn:before {
            content: "";
            display: block;
            height: 24px;
            background: transparent;
            position: relative;
            top: -24px;
            margin: -9px -6px;
            width: calc(100% + 12px);
        }
    }
    
    .book-description {
        color: #fff;
        font-family: Lato, sans-serif;
        font-size: 16px;
        line-height: 1.5;
        height:320px;
         overflow: hidden;
        transition: height 0.3s ease;
    }
    .book-description.expanded {
      height: auto;
      overflow: visible;
    }
    h1 {
        margin-top:0px;
        text-transform: uppercase;
        font-family: Poppins;
        font-size: 28px;
        line-height: 1.2;
    }
    h2 {
        margin-top:24px;
        margin-bottom: 8px;
        text-transform: uppercase;
        font-family: Poppins;
        font-size: 18px;
        line-height: 1.2;
        color: goldenrod;
    }
}
.toc-section {
    margin-top:16px;
    
    h2 {
        text-transform: uppercase;
        text-align: center;
        font-size: 24px;
        color: goldenrod;
        width: 1000px;
        max-width: calc(100% - 32px);
        margin: auto;
        background: #101010;
        border: 1px solid goldenrod;
        border-radius: 8px 8px 0px 0px;
        padding: 4px;
    }
}

.book-toc h3:first-child:before {
   display: none;
}

.book-toc h3:first-child {
   margin-top: 0px;
}
    
.book-toc {
    columns: 300px;
    background-color: #FCFCFC;
    border: 1px solid goldenrod;
    width:1000px;
    max-width: calc(100% - 32px);
    padding:24px;
    margin: 36px auto;
    margin-top: 0px;
    border-radius:0px 0px 8px 8px;
    color: black;
    column-rule: 1px double #838383;
    column-gap: 24px;

   h3 {
       
       font-size: 16px;
       line-height: 1;

        a {
            font-family: 'Poppins';
            font-weight: 700;
            font-size: 16px;
            color: #006a74;
            text-transform: uppercase;
        }

        a:hover {
            color: #67c1f5;
        }
        
       &:before {
           content:'';
           display:block;
           border:1px solid goldenrod;
           margin-bottom:16px;
       }
   }
   
   ul {
       column-gap:24px;
       color:black;
       display:block;

   }
  
   
   li a{
       color: #010101;
       font-family: 'Noto Sans';
   }

   li a:hover{
       color: #67c1f5;
       font-family: 'Noto Sans';
   }

}

ul.nested {
    margin-bottom: 8px;
}

   ul.nested li {
        list-style-type: disc;
        margin-left: 10px;
    }
    
   ul.nested ul.nested li {
        list-style-type: none;
        margin-left: -8px;
    }

   ul.nested ul.nested li:before {
        content: "-";
        font-weight: bold;
        font-size: 16px;
        margin-right: -6px;
        position: relative;
        left: -16px;
    }

/*==============================================
   CHAPTER STYLES
   =============================================*/
   
   
   .main-layout {
       display: flex;
       justify-content: center;
       width: fit-content;
       gap: 36px;
       margin: auto;
       font-family: 'Noto Sans';
       padding-bottom: 48px;
       position: relative;
   }
   
   .main-reader-holder {
       line-height: 1.5;
       max-width:840px;
       margin:0px auto;
       display: flex;
       flex-direction: column;
       justify-content: center;
       align-items: flex-start;
       gap: 16px;
       
       
       p {
           margin-top: 16px;
           margin-bottom: 16px;
       }
       
       h2 + p, h3 + p, h4 +p {
           margin-top: 0px;
       }
       
       h2, h3, h4 {
           margin-bottom: 8px;
           line-height: 1;
       }
       
       li {
           margin-left: 0px;
           margin-top: 6px;
           margin-bottom: 6px;
       }
       
       
       h1 {
           margin-top: 8px;
           line-height: 1;
       }
       
       h2 {
           margin-top: 24px;
           margin-bottom: 8px;
           padding-bottom: 6px;
       }
       
       h3 {
           margin-top: 24px;
           margin-bottom: 8px;
           padding-bottom: 2px;
           border-bottom: 1px solid goldenrod;
       }
       
       .table-wrapper {
           overflow: auto;
           overflow-y: hidden;
           scrollbar-color: #999 transparent;
       }
       
    
    /* Track */
    .table-wrapper::-webkit-scrollbar-track {
      background: transparent;
    }
    
    /* Handle */
    .table-wrapper::-webkit-scrollbar-thumb {
      background: #666;
    }
    
    /* Handle on hover */
    .table-wrapper::-webkit-scrollbar-thumb:hover {
      background: #101010;
    }
       
       table {
           border: 1px solid #999999;
           width: 100%;
           margin-bottom: 24px;
           
           td {
               padding: 8px;
               line-height: 1.2;
           }
           
           th {
               padding: 4px 8px;
               background: #242424;
               color: white;
           }
           
            tr:nth-child(even) {
               background: #E0E0E0;
           }
           
       }
       
       
       .dualtext-block {
            display: grid;
            grid-template-columns: 1fr 1fr;
            margin: 24px 0px;
            border-top: 1px solid #838383;
            border-bottom: 1px solid #838383;
            
            .dualtext-left {
                padding-right: 16px;
                margin: 8px 0px;
            }
            
            .dualtext-right {
                padding-left: 24px;
                margin: 8px 0px;
            }
        }
        
        .fantasy-yellow.fantasy-block {
            background: #fff7e3;
            padding: 16px 24px;
            margin-top: 36px;
            margin-bottom: 36px;
        }
        
        .fantasy-brown.fantasy-block {
            background: #e9dacb;
            padding: 16px 24px;
            margin: 36px 0px;
            position: relative;
        }
        
        .fantasy-block.fantasy-brown > p:first-of-type {
            margin-top: 0px;
        }
        
        .inline-chat-frame {
            border: 1px solid black;
            border-radius: 2px;
            padding: 4px 8px;
            margin-top: 16px;
            margin-bottom: 16px;
            background: #FAFAFA;
            
            frameid {
                font-weight: bold;
                margin-right: 4px;
                
                &:before {
                    content: " ";
                    height: 16px;
                    width: 16px;
                    display: inline-block;
                    background: url('/images/charlist_typing.png');
                    background-repeat: no-repeat;
                    background-size: contain;
                    position: relative;
                    top: 4px;
                    margin-right: 4px;
                    filter: drop-shadow(1px 0px 1px gray);
                    
                }
                
                &:after {
                    content: ":";
                }
            }
        }
        
        
   }
   
   .content-header {
    
           display:flex;
           justify-content: space-between;
           background-color: #101010;
           color: #CFCFCF;
           top: 0px;
           position: sticky;
           padding:16px;
           border: 1px solid #666666;
           width: 100%;
           font-weight: bold;
           z-index:100;
           
           a {
               color:#67c1f5;
           }
           
           .content-header-block {
               display: flex;
               justify-content: center;
               align-items: center;
           }
           
           .content-header-block.content-header-center {
                justify-content: center;
                text-align: center;
                padding-left: 0px;
            }   
           
           .previous-chapter {
               width: 260px;
               max-width: 260px;
               padding-left: 06px;
               text-overflow: ellipsis;
               white-space: nowrap;
               overflow: hidden;
               
               a {
                   color: white;
               }
               
               a:hover {
                   color: #ffd300;
               }
           }
           
           .content-header-block.content-header-center .previous-chapter {
               padding-left: 0px;
           }
           
            .next-chapter {
               width: 260px;
               max-width: 260px;
               text-align: right;
               padding-right: 6px;
               text-overflow: ellipsis;
               white-space: nowrap;
               overflow: hidden;
               
               a {
                   color: white;
               }
               
               a:hover {
                   color: #ffd300;
               }
           }
           
           .content-header-block.content-header-center .previous-chapter:before {
                content: "";
                background-image: url(https://www.fantasygrounds.com/images/toc-icon.png);
                position: relative;
                height: 14px;
                width: 14px;
                display: inline-block;
                left: -8px;
                top: 2.5px;
                background-size: contain;
           }
           
   }
   
    .content-header-left:has(a):before {
        content: "➤";
        position: relative;
        color: white;
        display: inline-block;
        right: 2px;
        top: 0px;
        transform: scale(-1, 1);
   }
   
    .content-header-right:has(a):after {
        content: "➤";
        position: relative;
        color: white;
        display: inline-block;
        left: 2px;
        top: 0px;
   }
   
   .reader-content {
        background: #FCFCFC;
        border: 1px solid #666666;
        color: #010101;
        padding: 8px 36px;
        padding-bottom: 48px;
        max-width: 100%;
        
            img {
               margin: 12px 0px;
           }
           
    .fantasy-page.fantasy-block.\35 e-monster-holder h4:first-of-type {
        font-size: 28px;
    }

           
.fantasy-page.fantasy-block.\35 e-monster-holder.legacy-5e-monster {
        margin: 0px;
        box-shadow: none;
        border: none;
        border-radius: 0px;
        background: url('/images/legacy-statblock-bg.jpg');
        
        &:before {
            content:"";
            background: url('/images/legacy-statblock-bar.png');
            display: block;
            height: 4px;
            width: calc(100% + 46px);
            position: relative;
            left: -23px;
            background-size: cover;
            
        }
        
        &:after {
            content:"";
            background: url('/images/legacy-statblock-bar.png');
            display: block;
            height: 4px;
            width: calc(100% + 46px);
            position: relative;
            left: -23px;
            background-size: cover;
            
        }
        
        p {
            color: #7a3c2f;
        }
        
        h3.npc-header ~ p {
            color: black !important;
        }
        
        table.ability-table {
            background: transparent !important;
            width: 100%;
            border-top: 2px solid #bc0f0f;
            border-bottom: 2px solid #bc0f0f;
            border-collapse: separate;
            padding-top: 8px;
            padding-bottom: 8px;
            
        }
        

        table.ability-table tr, table.ability-table th {
            color: black !important;
            background-color: transparent !important;
        }

        table.ability-table td {
            color: #7a3c2f !important;
        }
        
        p.npc-challenge {
            border-bottom: 2px solid #bc0f0f;
            padding-bottom: 8px;
            margin-bottom: 16px;
        }
        
        p.npc-challenge ~ p {
            color: black;
        }
        
        p.meta {
            color: black;
        }
        
        h2:first-of-type {
            margin-top: 8px;
        }
        
        h3 {
            border-color: #bc0f0f;
            border-width: 1.5px;
        }
        
        table {
            background: transparent !important;
            width: 100%;
            border-top: 2px solid #bc0f0f;
            border-bottom: 2px solid #bc0f0f;
            border-collapse: separate;
            padding-top: 8px;
            padding-bottom: 8px;
            margin: 0px;
            
            b {
                color: black;
            }
            
                 tr {
                    background-color: transparent !important;
                    text-align: center;
                }
                
                th {
                    background-color: transparent !important;
                    text-align: center;
                }
        
        }
        
    }

   }
   
   a.inpage-link {
        cursor: pointer;
    }
   
   linklist a {
        display: block;
        font-weight: bold;
        cursor: url(/images/fg-sidebar-cursor.png), auto;
        
        &[data-type="npc"] {
            color: #bc0f0f;
        }
    }
   
   
/*======================================
   Navigation
===============================================*/

   .left-ui-navigation {
    width: 300px;
    display: flex;
    flex-direction: column;
    padding: 10px;
    top: 0;
    position: sticky;
     align-self: flex-start;
    float: left;
    background-color: #101010;
    color: #CFCFCF;
    border: 1px solid #666666;
    overflow: hidden; /* Keep scrollbar only on the inner container */
    
    
    li a{
        color: #CFCFCF;
    }
    
    ul {
        color: goldenrod;
        list-style-type: none;
        padding-left: 16px;
    }
}

.left-ui-navigation a.active {
    font-weight: bold;
    color: goldenrod;
}

.left-ui-navigation .nav-title {
    font-size: 14px;
    font-weight: bold;
    padding: 8px 14px 14px 14px;
    margin-bottom: 8px;
    border-bottom: 1px solid #444;
    text-transform: uppercase;
    color: #fff;
    width: 280px;
    text-overflow: ellipsis;
    overflow: hidden;
    display: block;
    white-space: nowrap;
}

.left-ui-navigation .nav-links-container {
    overflow-y: auto;
    flex: 1;
    max-height: calc(100vh - 200px); /* Limits scrolling area */
    padding-right: 6px;
    
    li a:hover {
        color: #ffd300;
        font-weight: bold;
    }
    
}

.left-ui-navigation {
    /* width */
    div::-webkit-scrollbar {
      width: 6px;
    }
    
    /* Track */
    div::-webkit-scrollbar-track {
      background: #101010;
    }
    
    /* Handle */
    div::-webkit-scrollbar-thumb {
      background: #666;
    }
    
    /* Handle on hover */
    div::-webkit-scrollbar-thumb:hover {
      background: #101010;
    }

}


.nav-links-container > ul > li {
    padding: 6px 0px;
}

.nav-links-container > ul > li:not(:last-child) {
    border-bottom: 1px solid #555555;
}


/*==========================================
    Sidebar
========================================*/


#fantasy-sidebar {
    z-index:1000;
    width: 100%;     
    max-width: 400px;  
    position:fixed;
    height:fit-content;
    max-height: 100vh;
    border-left:1px solid black;
    background-color: #101010;
    top: 0px;
    right:-800px;
    transition: right 0.8s ease;
    
    display: flex;
    flex-direction: column; 
    
    color: #CFCFCF;
    border: 1px solid #666666;
    
    
    
    table.ability-table {
        margin-top: 8px;
        margin-bottom: 16px;
        
        tr {
            border-bottom: none;
            
            td:has(strong) {
                background: #d2d7d0;
                border-left: 4px solid #f6f3ee;
                padding-right: 4px;
                
                & + td {
                    background: #d2d7d0;
                }
            }
            
            td:has(strong):first-of-type {
                background: #efe2da;
                border-left: none;
                
                & + td {
                    background: #efe2da;
                    
                    & + td {
                        background: #e5dad5;
                    }
                    
                    & + td + td {
                        background: #e5dad5;
                    }
                }
            }
        }
        
        td {
            text-align: center;
            padding: 0px;
            background: #d9d4d5;
        }
    }
    
    .legacy-5e-monster {
        td {
            background: transparent !important;
        }
    }
    
    

}

.sidebar-open {
    right:0px !important;
}

.fantasy-sidebar-top {
    background-color: transparent;
    color: white;
    max-height: 100px;
    padding: 0px;
    margin-left: 10px;
    margin-top: 10px;
    margin-right: 10px;
    flex-shrink: 0; 
    display: flex;
    justify-content: space-between; 
    align-items: center;
    border-bottom: 1px solid #444;
}

#fantasy-sidebar-header {
    font-size: 14px;
    font-weight: bold;
    padding: 0px 10px 0px 10px;
    margin-bottom: 8px;
    margin-top: 0px;
    text-transform: uppercase;
    color: #fff;
    width: 280px;
    text-overflow: ellipsis;
    overflow: hidden;
    display: block;
    white-space: nowrap;
}

#fantasy-sidebar-close {
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Lato';
    font-weight: bold;
    font-size: 15px;
}

.fantasy-sidebar-bottom {
    flex: 1;                
    overflow-y: auto;       
    padding: 16px;
}

div#fantasy-sidebar-content {
    padding: 0px;
    background: transparent;
    border: none;
    
           .table-wrapper {
               overflow: auto;
               overflow-y: hidden;
               scrollbar-color: #999 transparent;
           }
    
    .fantasy-page.fantasy-block.\35 e-monster-holder.legacy-5e-monster {
        margin: 0px;
        box-shadow: none;
        border: none;
        border-radius: 0px;
        background: url('/images/legacy-statblock-bg.jpg');
        
        &:before {
            content:"";
            background: url('/images/legacy-statblock-bar.png');
            display: block;
            height: 4px;
            width: calc(100% + 46px);
            position: relative;
            left: -23px;
            background-size: cover;
            
        }
        
        &:after {
            content:"";
            background: url('/images/legacy-statblock-bar.png');
            display: block;
            height: 4px;
            width: calc(100% + 46px);
            position: relative;
            left: -23px;
            background-size: cover;
            
        }
        
        p {
            color: #7a3c2f;
        }
        
        h3.npc-header ~ p {
            color: black !important;
        }
        
        table.ability-table {
            background: transparent !important;
            width: 100%;
            border-top: 2px solid #bc0f0f;
            border-bottom: 2px solid #bc0f0f;
            border-collapse: separate;
            padding-top: 8px;
            padding-bottom: 8px;
            
        }

        table.ability-table tr, table.ability-table th {
            color: black !important;
            background-color: transparent !important;
        }

        table.ability-table td {
            color: #7a3c2f !important;
        }
        
        p.npc-challenge {
            border-bottom: 2px solid #bc0f0f;
            padding-bottom: 8px;
            margin-bottom: 16px;
        }
        
        p.npc-challenge ~ p {
            color: black;
        }
        
        p.meta {
            color: black;
        }
        
        h2:first-of-type {
            margin-top: 8px;
            line-height: .75;
        }
        
        h3 {
            border-color: #bc0f0f;
            border-width: 1.5px;
        }
    }
    
}

li .sidebar-link {
    display:inline-block;
}

.fantasy-sidebar-bottom {
  scrollbar-width: thin; /* auto | thin | none */
  scrollbar-color: #666666 #101010; /* thumb color track color */
}

.sidebar-loading {
    font-size: 0px;
    background: url(/images/loading-image.gif);
    height: 60px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.rule-not-found {
    color: #999999;
    font-family: 'Lato';
    text-transform: uppercase;
    font-style: italic;
    text-align: center;
    margin-top: 24px;
}


.does-not-own {
    
    img.book-image {
        float: left;
        max-width: 120px;
        margin-right: 20px;
    }
    
    p.not-own-description {
        color: #CFCFCF;
        font-family: 'Lato';
        margin-top: 24px;
    }
    
    a.to-store-button {
        display: block;
        width: fit-content;
        background: #006a74;
        margin-left: calc(50% - 42px);
        padding: 8px 16px;
        border-radius: 4px;
        font-family: 'Poppins';
        text-transform: uppercase;
        color: white;
        font-weight: bold;
        margin-top: 16px;
        
        &:hover {
            filter: brightness(1.2);
        }
    }
    
    h2.book-title {
        color: #fff;
        text-align: left;
        text-transform: uppercase;
        margin-top: 0;
        margin-bottom: 0;
        font-family: Poppins, sans-serif;
        font-size: 20px;
        width: 100%;
        clear: both;
        line-height: 32px;
        display: inline-block;
    }
    
}

/* Table popout card */
.table-wrapper {
    background: radial-gradient(circle at top, #f7f3e7 0, #eee5d2 45%, #e2d5bd 100%);
    color: #241b14;
    border-radius: 10px;
    border: 2px solid #7a4a20;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.7);
    padding: 18px;
    max-width: 520px;
    margin: 12px auto;
    box-sizing: border-box;
    font-family: "Georgia", "Times New Roman", serif;
}

/* Table title */
.table-wrapper h2 {
    margin: 20px 0 12px;
    color: #6f1111;
    text-shadow: 0 1px 1px rgba(0,0,0,0.6);
    font-size: 1.7rem;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-variant: small-caps;
    border-bottom: 2px solid #7a4a20;
    padding-bottom: 8px;
}

/* Main table */
.sidebar_table {
    width: 100%;
    border-collapse: collapse;
    color: #241b14;
    font-size: 1rem;
    line-height: 1.35;
}

.sidebar_table_head th {
    background: linear-gradient(90deg, #4a2510 0, #7a4a20 50%, #4a2510 100%);
    color: black;
    text-shadow: 0 1px 1px rgba(0,0,0,0.6);
    text-align: left;
    padding: 8px 10px;
    font-weight: 800;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 2px solid #2a160a;
}

/* Body cells */
.sidebar_table_body td {
    padding: 8px 9px;
    vertical-align: top;
    border-bottom: 1px solid rgba(80, 55, 30, 0.25);
}

/* Alternating row colors */
.sidebar_table_body tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.35);
}

.sidebar_table_body tr:nth-child(even) {
    background: rgba(122, 74, 32, 0.10);
}

/* First column: Roll/result */
.sidebar_table_body td:first-child,
.sidebar_table_head th:first-child {
    width: 72px;
    text-align: center;
    font-weight: 700;
    white-space: nowrap;
}

/* Hover polish */
.sidebar_table_body tr:hover {
    background: rgba(122, 74, 32, 0.20);
}

/* Clean up odd custom label tags inside table headers */
.sidebar_table labelcol1 {
    font: inherit;
    color: inherit;
}

a.sidebar-link[data-type="table"] {
    color: #b45309;
    text-decoration: none;
    border-bottom: 1px dotted #b45309;
    font-weight: 600;
    transition: all 0.2s ease;
}

a.sidebar-link[data-type="table"]::before {
    content: "▦ ";
    color: #b45309;
}

a.sidebar-link[data-type="table"]:hover {
    color: #ffffff;
    border-bottom: 1px solid #ffffff;
    text-shadow: 0 0 6px #b45309;
}

.sidebar_table_body td:first-child,
.sidebar_table_head th:first-child {
    width: 80px;
    text-align: center;
    font-weight: 800;
    font-size: 1.25rem;
    color: #3b2613;
}

.sidebar_table {
    font-size: 1.25rem;
}
