body {
  background: #000;
  font-family: sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

.container {
  text-align: center;
}

#flipbook {
  display: none; /* Hide while loading */
  width: 1600px;
  height: 565px;
  margin: 0 auto;
}

#flipbook .page {
  width: 800px; /* Half of flipbook width */
  height: 565px;
  background: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.controls {
  margin-top: 20px;
}

button {
  width: 120px;              /* Same width for both buttons */
  padding: 10px;
  margin: 0 10px;
  font-size: 16px;
  cursor: pointer;
  background-color: #222;    /* Black background */
  color: #fff;               /* White text */
  border: none;
  border-radius: 6px;        /* Slightly rounded corners */
  transition: background-color 0.3s;
  text-align: center;
}

button:hover {
  background-color: #444;    /* Darker on hover */
}



/* Spinner Styles */
#spinner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,1);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loader {
  border: 8px solid #eee;
  border-top: 8px solid #3498db;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

#page-number {
    position: absolute;
    bottom: 10px;
    right: 20px;
    font-family: sans-serif;
    font-size: 14px;
    color: #444;
}
