@charset "utf-8";
#loadingOverlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  font-family: Arial, sans-serif;
  color: #555;
  font-size: 18px;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 6px solid #ccc;
  border-top-color: #333;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 12px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.ebook_wrap {
  position: relative;
  max-width: 100%;
  margin: auto;
  overflow: hidden;
}

#book {
  width: 100%;
  max-width: 1140px;
  height: 840px;
  margin: auto;
  box-shadow: 1px 3px 15px rgba(5,5,5,0.7);
}

.page {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
.controls {
  pointer-events: none; /* 버튼은 드래그에 간섭 안 함 */
}
.controls .nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgb(183 183 183 / 50%);
    color: white;
    border: none;
    padding: 5px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 10px;
    height: 40px;
    width: 40px;
    pointer-events: auto;
}

.controls .prev {
  left: 10%;
  z-index: 300;
}

.controls .next {
  right: 10%;
  z-index: 300;
}

.page-info {
  position: absolute;
  bottom: 10px;
  right: 50%;
  transform: translateX(50%);
  color: #333;
  background: rgb(203 203 203 / 80%);
  padding: 5px 15px;
  border-radius: 15px;
  font-weight: bold;
  font-size: 16px;
  z-index: 500;
}
.lang_content{
    overflow: hidden;
    background: rgb(105 105 105 / 70%);
}
.book_home_btn{padding: 8px;box-sizing: border-box;border-radius: 20px;background: #000;padding-left: 40px;}
@media screen and (max-width: 768px) {
  #book {
    width: 100%;
    height: 500px;
  }
.controls .prev {
  left: 0;
  z-index: 300;
}

.controls .next {
  right: 0;
  z-index: 300;
}  
}