:root {
  --flipbook-width: 1142px;
  --flipbook-height: 690px;
}
body {
  overflow: hidden;
  background-color: #5e5e5e;
  margin: 0;
  padding: 0;
}

.flipbook-viewport {
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.flipbook-viewport .container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.flipbook-viewport .flipbook {
  width: var(--flipbook-width);
  height: var(--flipbook-height);
  /* position: absolute; */
  /* top: 50%; */
  /* left: 50%; */
  transform: translate(-50%, -50%);
}

.flipbook-viewport .page {
  width: calc(var(--flipbook-width) / 2);
  height: var(--flipbook-height);
  background-color: white;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.flipbook .page {
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.flipbook-viewport .page img {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  margin: 0;
}

.flipbook-viewport .shadow {
  transition: box-shadow 0.5s;
  box-shadow: 0 0 20px #ccc;
}

.loading-overlay {
  top: 0;
  left: 0;
  width: var(--flipbook-width);
  height: var(--flipbook-height);
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5em;
  color: #333;
  z-index: 1000;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #ccc;
  border-top-color: #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 1001;
  top: 50%;
  left: 50%;
  position: absolute;
  transform: translate(-50%, -50%);
}

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

.zoom-controls {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #f0f0f0;
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: sans-serif;
}

.zoom-controls #zoomInBtn,
.zoom-controls #zoomOutBtn {
  font-size: 20px;
  width: 30px;
  height: 30px;
  border: none;
  color: white;
  border-radius: 5px;
}
.zoom-controls #zoomInBtn img,
.zoom-controls #zoomOutBtn img {
  width: 30px;
  height: 30px;
}
#zoom-level {
  font-size: 14px;
  font-weight: 500;
}
.btn-zoom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #111; /* cor escura de fundo */
  color: #fff;            /* símbolo + branco */
  font-size: 26px;
  font-weight: bold;
  border-radius: 40px;    /* cantos arredondados */
  cursor: pointer;
  user-select: none;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.backhome {
  width: 50px;
  position: fixed;
  top: 20px;
  left: 20px;
  background: #f0f0f0;
  padding: 6px 10px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: sans-serif;
}
.download-controls {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #f0f0f0;
  padding: 6px 10px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: sans-serif;
  font-size: 14px;
  text-decoration: none;
  color: #333;
}
.download-controls:visited{
    color: #333;
}
