#flipbook-container {
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
  position: relative;
}

#flipbook {
  position: relative;
}

.page {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center top;
}

#simple-viewer {
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

#simple-viewer img {
  display: block;
  margin: 0 auto;
  width: auto;
  max-width: 100%;
}

.controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 8px 0 30px 0;
  flex-wrap: wrap;
}

.controls button {
  background-color: #012169;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
}

.controls button:hover:not(:disabled) {
  background-color: #c8102e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.3);
}

.controls button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#page-info {
  font-size: 16px;
  color: #012169;
  font-weight: bold;
  min-width: 100px;
  text-align: center;
}

@media (max-width: 768px) {
  .controls {
    gap: 10px;
  }

  .controls button {
    padding: 10px 16px;
    font-size: 14px;
  }
}
