@font-face {
  font-family:'nyt-karnak';
  src:url("../fonts/karnak-normal-700.woff2") format("woff2");
  font-style:normal;
  font-weight:700;
  font-display:swap;
}

/* Estilos para el visor de flipbooks */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
	/*overflow: hidden;*/
	font-family: 'Arial', sans-serif;
	font-size: 15px;
	line-height: 20px;
	background: #333;
	overflow: hidden;
	position: fixed;
	top: 0px;
	height: 100%;
	width: 100%;
}

/* body {
  font-family: 'Arial', sans-serif;
  background: #1a1a1a;
  color: white;
  overflow-x: hidden;
} */



.flipbook-viewer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  height: calc(100vh - 75px);
  overflow: hidden;
}

.flipbook-controls {
  
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  height: 100%;
}

.flipbook-controls button {
  background: transparent;
  color: #4d2f2f;
  text-shadow: 1px 1px 0 #f3bb9b;
  border: 2px solid #9B7067;
  padding: 7px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;
}
.inset-text {
  color: #4d2f2f;
  text-shadow: 1px 1px 0 #f3bb9b;
  font-weight: bold;
}

.breadcrumb a {
  display: flex;
  gap: .5em;
}

.breadcrumb svg {
  width: 20px;
  transform: rotate(0deg);
  filter: drop-shadow(1px 1px 0 #f3bb9b);
}

#prevBtn svg {
  width: 20px;
  transform: rotate(180deg);
  filter: drop-shadow(1px 1px 0 #f3bb9b);
}

#nextBtn svg {
  width: 20px;
  transform: rotate(0deg);
  filter: drop-shadow(1px 1px 0 #f3bb9b);
}
/* .flipbook-controls button:hover {
  background: #5a6fd8;
  transform: scale(1.05);
} */

.flipbook-controls button:disabled {
  background: #F0B696;
  cursor: not-allowed;
  transform: none;
  opacity: .25;
  pointer-events: none;
}



.page-info {
  color: #4d2f2f;
  text-shadow: 1px 1px 0 #f3bb9b;
  font-size: 16px;
  font-weight: bold;
  min-width: 50px;
  text-align: center;
}

/* StPageFlip Canvas container */
#flipbook {
  margin: 0 auto;
  transition: transform 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 95%;
  max-height: calc(100vh - 150px);
  overflow: hidden;
}

/* StPageFlip parent container */
.stf__parent {
  margin: 0 auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  max-width: 100%;
  max-height: 100%;
}


/* StPageFlip book container */
.stf__book {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  border-radius: 0;
}

/* StPageFlip canvas styles */
.stf__canvas {
  display: block;
  margin: 0 auto;
}

/* Fallback for HTML mode (if needed) */
.my-page {
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.my-page img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* Botones adicionales */
.additional-controls {
  margin-top: 20px;
  display: flex;
  gap: 15px;
}

/* .control-btn {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
} */
.flipbook-controls button:hover,
.control-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Breadcrumb */
.breadcrumb {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 100;
}

.breadcrumb a {
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

/* .breadcrumb a:hover {
  color: #667eea;
} */




/* Responsive */
@media (max-width: 768px) {
  .flipbook-controls {
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 20px;
  }
  .control-panel {
  height: 54px !important;
}
  .bottom-logo-link {
    display: none;
  }
  .shortcuts-info {
    display: none;
  }
  
  .flipbook-controls button {
    padding: 8px 16px;
    font-size: 12px;
  }
  
  .flipbook-title h1 {
    font-size: 1.8em;
  }
  
  .flipbook-viewer {
    padding: 10px;
    height: calc(100vh - 102px);
  }
  
  #flipbook {
    max-width: 95vw;
    max-height: calc(100vh - 150px);
  }
}

/* Zoom controls */
.zoom-controls {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 200;
}

.zoom-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

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

/* Loading spinner */
.loading {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
}

.spinner {
  width: 200px;
  height: 200px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #40AD48;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  position: relative;
}

.spinner::after {
  content: 'Cargando...';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  color: #40AD48;
}


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

/* Fullscreen styles */
.fullscreen-active {
  background: #000;
}

.fullscreen-active #flipbook {
  width: 100vw !important;
  height: 100vh !important;
}

/* Keyboard shortcuts info */
.shortcuts-info {
  position: fixed;
  bottom: 60px;
  left: 20px;
  background: rgba(255, 255, 255, 0.8);
  padding: 15px;
  border-radius: 0;
  font-size: 12px;
  color: black;
  width: 200px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  user-select: none;
}

.shortcuts-info:hover {
  opacity: 1;
}

.shortcuts-info h4 {
  margin-bottom: 8px;
  color: black;
}

.shortcuts-info p {
  margin-bottom: 4px;
}
.shortcuts-info ul li {
  display: flex;
  justify-content: space-between;
}

.control-btn.zoom {
  padding: 0;
  aspect-ratio: 1/1;
  font-size: 22px;
  line-height: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 35px;
  height: 35px;
}








/* .loading {
    background: url("/bookcase/img/loading.gif") no-repeat 50% 50% !important;
    background: white;
	width: 30px;
	height: 30px;
	border-radius: 5px;
	text-align: center;
	box-shadow: 0px 1px 3px rgb(87, 87, 87);
	margin-top: 39px;
	opacity: 0.85;
	position: absolute;
	top: 50%;
	left: 50%;
	margin-left: -15px;
	margin-top: -15px;
} */

.main-container {
	width: 100%;
	height: 100%;
	top: 0;
	left:0;
	bottom:0;
	right:0;
	min-height: 214px;
	min-width: 310px;
	margin:auto;
	position: absolute;
	/*display: table;*/
}

.bookcase-panel {
	position: relative;
	overflow: hidden;
	height: 100%;
	/*display: table-cell;*/
	/*vertical-align: middle;*/
}

.nav-container {
	height: 60px;
	width: 100%;
	position: relative;
	  box-shadow: 0 -2px 12px rgba(0,0,0,.8);
	  z-index: 2;
	transition: all 0.2s;
}



.nav-left {
	width: 9px;
	height: 100%;
	position: absolute;
	left: 0;
	top: 0;
}

.nav-middle {
	height: 100%;
	position: absolute;
	left: 9px;
	right: 9px;
	top: 0;
	background-position: 0px -2px !important;
}

.nav-right {
	width: 9px;
	height: 100%;
	position: absolute;
	right: 0px;
	top: 0;
}

.nav-branding-container {
	position: absolute;
	left: 255px;
	right: 255px;
	text-align: center;
	margin: 0;
	overflow: hidden;
	height: 100%;
	z-index: 999;
}

.nav-branding-container > span {
	line-height: 60px;
	margin: 0;
	font-size: 2em;
	font-weight: bold;
    user-select: none;
	letter-spacing: -1px;
  font-family: 'nyt-karnak';
}

.search-container {
	position: absolute;
	left: 20px;
	top: 50%;
	margin-top: -15px;
}

.search-container > input {
	position: relative;
	width: 215px;
	padding: 4px 50px 4px 20px;
}

.search-cancel-icon,
.search-icon {
	top: 50%;
	position: absolute;
	margin-top: -11px;
	right: 10px;
	z-index: 1;
	opacity: 0.9;
	cursor: pointer;
	height: 24px;
	width: 24px;
}




.nav-right-button-container {
	position: absolute;
	right: 20px;
	top: 13px;
	z-index: 9999;
}

.sort-panel {
	float: left;
	margin-left: 20px;
}

.sort-button {
	width: 77px;
	height: 36px;
	display: inline-block;
	cursor: pointer;
}

.share-button {
	float: left;
	width: 41px;
	height: 31px;
	cursor: pointer;
	margin-top: 3px;
	margin-left: 20px;
}

.shoppingCart{
	float: left;
	width: 40px;
	height:30px;
	cursor: pointer;
	margin-top :4px;
	z-index: 99999;
}

.control-panel {
	  height: 42px;
	  position: absolute;
	  text-align: center;
	  bottom: 0;
	  width: 100%;
      user-select: none;
}



.bottom-logo-link {
	position: absolute;
	left: 20px;
	top: 6px;
	height: 30px;
    filter: grayscale(100%) brightness(10) invert(1);
}

.bottom-logo-link > img {
	height: 100%;
}



/*red skin*/
body.red {
	/*background: #4d2f2f;*/
}

body.red .input-style {
	background: #4d2f2f;
	border-color: #f3bb9b;
	color: #f3bb9b;
	/*box-shadow: inset 1px 1px 2px #4d2f2f, 0px 1px 3px #f3bb9b;*/
	box-shadow: inset 1px 2px 3px #1A1A1A, 0px 1px 3px #f3bb9b;
}

body.red .font-style {
	color: #4d2f2f;
	text-shadow: 1px 1px 0 #f3bb9b;
}

body.red .nav-left {
	background: url("../img/skin.png") no-repeat -5px -247px;
}

body.red .nav-middle {
	background: url("../img/red-1.png");
}

body.red .nav-right {
	background: url("../img/skin.png") no-repeat -19px -247px;
}

body.red .control-panel {
	background: url("../img/red-3.png");
}

body.red .search-icon {
	background: url("../img/skin.png") no-repeat -400px -301px;
}

body.red .sort-date-button {
	background: url("../img/skin.png") no-repeat -803px -215px;
}

body.red .share-button {
	background: url("../img/skin.png") no-repeat -897px -222px;
}

body.red .shoppingCart-button {
	background: url("../img/skin.png") -102px -846px no-repeat
}