html, body{
    margin: 0;
    padding: 0;
    background-color: #000;
    color: #64f7fe;
}

.body.show{
    overflow: hidden;
}

.home-background{
  display: block;
  position: fixed;
  width: 100vw;
  height: 100vh;
  top:0;
  left: 0;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
}

.home-background img{
  width: calc(100vw - 80px);
  max-width: 900px;
}

h1{
  font-size: 24px;
}

h1, h2, h3, h4, h5{
  margin-top: 0;
  padding-top: 0;
  line-height: 1em;
  font-weight: normal;
}

body, p{
    font-family: "Open Sans", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

/* Prevent text selection on interactive elements */
.menu-item,
.index-links,
.select-item,
.menu-drop,
.back-btn,
.download-btn,
.info-btn,
.dl-link,
.zoom-fab,
.zoom-close,
button,
.slider-menu,
.book-menu,
.scroll-menu {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

/* Ensure all clickable elements don't trigger text selection */
[onclick] {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.loading-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  z-index: 1000;
}

.loading-spinner.show {
  display: block;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(100, 247, 254, 0.3);
  border-top: 5px solid #64f7fe;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.slide-image {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.slide-image[data-loaded="true"] {
  opacity: 1;
}

/* Prevent pinch zoom on main slider */
.slider {
  touch-action: pan-x pan-y;
}

.slide {
  touch-action: pan-x pan-y;
}

/* Zoom Floating Action Button */
.zoom-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  background-color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: all 0.3s ease;
  display: none;
}

.zoom-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.zoom-fab.show {
  display: flex;
}

/* Zoom Viewer Overlay */
.zoom-viewer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  display: none;
  overflow: auto;
}

.zoom-viewer.show {
  display: block;
}

.zoom-close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: rgba(0, 0, 0, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2001;
  transition: all 0.3s ease;
}

.zoom-close:hover {
  background-color: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
}

.zoom-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px 20px 20px;
  box-sizing: border-box;
  overflow: visible;
}

#zoom-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  touch-action: none;
  cursor: zoom-in;
  transition: none;
  transform-origin: center center;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

#zoom-image[style*="scale(1)"] {
  cursor: zoom-in;
}

#zoom-image[style*="scale("] {
  cursor: grab;
}

#zoom-image:active {
  cursor: grabbing;
}

::-webkit-scrollbar {
  width: 4px;
}
 
::-webkit-scrollbar-track {
  background-color: #253333;
}
 
::-webkit-scrollbar-thumb {
  background-color:  #64f7fe;
  border-radius: 2px;
}

.page-book{
  display: block;
  position: fixed;
  top:0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #000;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.slider {
    position: relative;
    overflow: hidden;
    transition: all 0.5s;
    transform: scale(1);
    opacity: 1;
    height: 100vh;
    width: 100%;
    overflow-y: scroll;
}

.slide {
    position: absolute;
    width: 100%;
    height:auto;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    z-index: 0;
    height: auto;
}
.slide.active {
    opacity: 1;
    z-index: 1;
    max-height: unset;
    height: auto;
    overflow-y:scroll;
}

.slider {
  &.zoom{
     & .slide{
       transition: all 0.5s ease-in-out;
       scale: 0.9;
       &.active{
         scale: 1;
       }
     }
  }
}
.slider {
  &.fade{
    & .slide{
      transition: all 0.5s ease-in-out;
      opacity: 0;
      &.active{
        opacity: 1;
      }
    }
  }
}

.slider {
  &.flip{
    & .slide{
      transition: all 0.5s ease-in-out;
      transform: translateX(-100%);
      &.active{
        transform: translateX(0);
      }
    }
  }
}

.slider {
  &.slide-up{
    & .slide{
      transition: all 0.5s ease-in-out;
      transform: translateY(-100%);
      opacity: 1;
      &.active{
        opacity: 1;
        transform: translateY(0);
      }
    }
  }
}


.slide img {
    width: 100%;
    height: auto;
}

/* The rest of the CSS remains the same */


#slider-nav {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    text-align: center;
}

.arrows{
    position: fixed;
    display: flex;
    width:36px;
    justify-content: center;
    align-items: center;
    top: 50%;
    height: calc(100vh - 80px);
    max-height: 360px;
    transform: translateY(-50%);
    background-color: #ddd;
    border: none;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.3);
    color: #fff;
    transition: all 0.5s;
}

.arrows:hover{
    background-color: rgba(0, 0, 0, 0.8);
}

#prev { left: 0; border-radius: 0 10px 10px 0;}
#next { right: 0; border-radius: 10px 0 0 10px;}


.arrows svg{
    fill:#64f7fe;
    width:20px;
    height: 20px;
}

.progress-box{
    position: fixed;
    bottom: 40px;
    height: 5px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #000;
    width: calc(100% - 80px);
    max-width: 600px;
    height: auto;
    border-radius: 6px;
    opacity: 0.6;
    box-shadow: 0 0 10px 0 #000;
}

#progress-bar {
    width: 100%;
    bottom: 0;
    left: 0;
    transition: all 0.5s;
    width: inherit;
    height: 6px;
    border-radius: 6px;
    background-color: #64f7fe;
}

.slider-menu{
    position: fixed;
    left: -270px;
    width: calc(100% - 40px);
    max-width: 260px;
    height: calc(100vh - 80px);
    z-index: 999;
    top: 50%;
    transform: translatey(-50%);
    transition: all 0.5s;
    border-radius: 0 10px 10px 0;
    background-color: #253333;
    box-shadow: 0 0 10px #000;
}

.book-count{
  font-size: 14px;
  box-sizing: border-box;
  color: #64f7fe;
  text-align: center;
  height: 52px;
  display: flex;
  text-align: center;
  justify-content: space-between;
  align-items: center;
  border-style: solid;
  border-width: 0 0 1px 0;
  border-color: #666;
  position: absolute;
  top:0;
  left: 0;
  padding: 0 10px 0 10px;
  width: 100%;
}

.menu-scroll{
  position: relative;
  width: calc(100% - 8px);
  height: calc(100vh - 145px);
  overflow-y: auto;
  top:2px;
  z-index: 999;
  transition: all 0.5s;
  border-radius: 0 10px 10px 0;
  background-color: #000;
  box-shadow: 0 0 10px #000;
} 


.scroll-menu{
  margin-top: 53px;
  display: block;
  position: relative;
  height: auto;
  overflow: hidden;
  width: calc(100% - 15px);
  height: calc(100vh - 135px);
  border-radius: 0 0 10px 0;
  overflow-y:scroll;
  padding: 0 10px 0 0;
}

.scroll-menu.book{
  margin-top: unset;
  height: calc(100vh - 145px);
  border-radius: 0 0 6px 0;
  overflow-y:scroll;
}

.menu-title{
  display: flex;
  border-radius: 0 6px 0 0;
  justify-content: space-between;
  align-items: center;
  color: #64f7fe;
  text-transform: uppercase;
  padding: 20px;
  z-index: 999;
  text-align: center;
  font-size: 10px;
  background-color: #3b484d
}

.slider-menu.show{
    left: 0;
}

.menu-item {
    cursor: pointer;
    padding: 20px;
    color: #64f7fe;
    background-color: #253333;
    transition: all 0.5s;
    font-weight: 700;
    width: calc(100% - 20px);
    border-style: solid;
    border-width: 0 0 1px 0;
    border-color: #666;
}

.scroll-menu .menu-item:last-child{
  border: none;
}

.menu-separator{
    padding: 20px;
    color: #64f7fe;
    background-color: #333;
    transition: all 0.5s;
    text-transform: uppercase;
    font-size: 12px;
}

.menu-item.index-links{font-size: 14px; font-weight: normal; line-height: 1.25em;}

.menu-item:hover {
    color: #64f7fe;
    background-color: rgba(0, 0, 0, 0.6);
}

.menu-item.active {
   color: #64f7fe;
   background-color: rgba(0, 0, 0, 0.5);
}

.menu-toggle{
    width: 24px;
    height: 20px;
    padding: 8px;
    border-radius: 6px;
    position: fixed;
    left: 20px;
    top: 20px;
    z-index: 999;
    display: flex;
    gap:7px;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: #253333;
    transition: all 0.5s;
    cursor: pointer;
}

.back-btn{
  cursor: pointer;
  width: 24px;
  height: 24px;
}

.back-btn svg{
  fill:#64f7fe;
  width: 40px;
  height: 40px;
}

.menu-toggle.show{
    left: 270px;
    top: 40px;
}

.menu-toggle span{
    width: 100%;
    height: 3px;
    background-color: #64f7fe;
}

.left-buttons{
  display: flex;
  position: fixed;
  width: auto;
  top: 20px;
  right: 20px;
  gap:20px;
  z-index: 999;
}
.download-btn{
  overflow: hidden;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  padding: 3px;
  border-radius: 6px;
  background-color: #253333;
  transition: all 0.5s;
  &:hover{
    background-color: #3b484d;
  }
}

.download-btn svg{
  fill:#64f7fe;
  width: 24px;
  height: 24px;
}

.info-btn{
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  padding: 3px;
  border-radius: 6px;
  background-color: rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

.info-btn svg{
  fill:#64f7fe;
  width: 24px;
  height: 24px;
}

.download-window{
  display: block;
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 220px;
  height: auto;
  top:65px;
  right: -340px;
  padding: 3px;
  border-radius: 10px;
  overflow: hidden;
  background-color: #253333
  transition: all 0.5s;
  opacity: 0;
}

.download-window.show{
  top:65px;
  right: 17px;
  opacity: 1;
}

.download-window .dl-link{
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 30px;
  gap: 15px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  width: 100%;
  color: #64f7fe;
  text-decoration: none;
  padding: 10px 0 10px 0;
  transition: all 0.5s;
  background-color: #253333;
}

.download-window .dl-link:hover{
  background-color: #3b484d;
}

.dl-link svg{
  fill:#64f7fe;
  width: 14px;
  height: 14px;
}

.download-window .dl-link:first-child{
  border-radius: 6px 6px 0 0;
}

.download-window .dl-link:last-child{
  border: none;
  border-radius: 0 0 6px 6px;
}

.download-window .dl-link:only-child {
  border-radius: 6px;
}

.info-window{
  display: block;
  position: fixed;
  top: -100vh;
  transition: all 0.5s;
  z-index: 999;
  max-width: 960px;
  width: calc(100% - 80px);
  background-color: rgba(0, 0, 0, 0.6);
  height: auto;
  transform: translateX(-50%);
  left: 50%;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
  color: #64f7fe;
  opacity: 0;
}

.info-contents{
  display: flex;
  flex-direction: column;
  gap:15px;
  max-height: calc(100vh - 80px);
  overflow-y: scroll;
  
  & img{
    max-width: 100%;
    height: auto;
  }
}

.info-window.show{
  top:20px;
  opacity: 1;
}

.info-window .close-info{
  fill:#64f7fe;
  width: 22px;
  height: 22px;
  position: fixed;
  top: 2px;
  right: 0;
  cursor: pointer;
}
.info-title{
  margin: 0;
  padding: 0;
  font-size: calc(18px + (28 - 18) * ((100vw - 300px) / (1600 - 300)));
}

/* Homepage Navigation */


.home-content{
  display: flex;
  position: relative;
  width: 100%;
  height: 100vh;
  justify-content: center;
  align-items: center;
  color: #64f7fe;
}


.blb-logo{
  max-width: 1200px;
  width: calc(100% - 80px);
  max-height: calc(100vh - 80px);
  opacity: 1;
}

.menu-item.home{
 font-size: 12px;
}


.menu-select{
  display: block;
  position: absolute;
  top:15px !important;
  left: 10px;
  cursor: pointer;
}

.menu-drop span{
  color: #64f7fe;
  font-size: 14px;
  border-style: solid;
  border-width: 1px;
  border-color: #ffffff80;
  padding: 5px 10px;
  border-radius: 6px;
  transition: all 0.5s;
  cursor: pointer;
}
.menu-drop span:hover{
  background-color: #64f7fe;
  color: #000;
}

.book-menu{
  display: none;
  top: 10px;
}

.book-menu.show{
  position: relative;
  display: flex;
  flex-direction: column;
  margin-top:10px;
  box-shadow: 0 0 10px 0 #000
}
.menu-select {
   & ul {
     font-size: 14px;
      list-style: none;
      margin: 0;
      padding: 10px;
      border-radius: 6px;
      background-color: #172020;
      min-width: 200px;
      gap:10px;
     & li{
       width: 100%;
       box-sizing: border-box;
       color: #64f7fe;
       padding: 5px;
       border-radius: 3px;
       &:hover{
            background-color: #000;
            color: #64f7fe;
        }
     } 
   }
  
} 
.select-item.current{
  background-color: #64f7fe;
  color: #000;
  &:hover{
    border-color: transparent;
    background-color: #64f7fe;
    color: #000;
  }
}

/* Chapter Reader Styles */
.chapter-reader {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.chapter-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.chapter-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out;
  overflow-y: auto;
  padding: 20px;
  box-sizing: border-box;
}

.chapter-slide.active {
  opacity: 1;
  visibility: visible;
}

.chapter-title {
  font-size: 24px;
  font-weight: bold;
  color: #64f7fe;
  margin-bottom: 20px;
  text-align: left;
}

.chapter-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.8;
  color: #e0e0e0;
  padding-bottom: 40px;
}

.chapter-content p:first-child{
  font-family: 'Oswald', sans-serif;
  text-align: center;
  letter-spacing: 0.075em;
  border-style: solid;
  border-width: 0 0 1px 0;
  border-color: rgba(255, 255, 255, 0.337);
  text-transform: uppercase;
  padding-bottom: 10px;
}

.chapter-content p {
  margin-bottom: 1.2em;
}

.chapter-content p:first-of-type {
  text-indent: 0;
}

/* Text mode specific adjustments */
.text-mode .chapter-content {
  background: rgba(0, 0, 0, 0.8);
  padding: 30px;
  border-radius: 10px;
}

.text-mode .chapter-content strong {
  color: #64f7fe;
  font-weight: 600;
}

.text-mode .chapter-content em {
  color: #a0d0ff;
  font-style: italic;
}

.text-mode .chapter-content u {
  text-decoration: underline;
  text-decoration-color: #64f7fe;
}

.text-mode .arrows {
  background: rgba(37, 51, 51, 0.9);
}

/* Hide zoom FAB in text mode */
.text-mode .zoom-fab {
  display: none;
}
