* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: #FFFFFF;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

.header {
  width: 100%;
  background: linear-gradient(135deg, #FFFFFF 0%, #f5f5f5 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 30px;
  box-shadow: 0 8px 32px rgba(151, 75, 140, 0.3);
}

.center-section { text-align: center; }
.logo { height: 60px; width: auto; filter: drop-shadow(0 0 20px rgba(151, 75, 140, 0.3)); }

.back-button-container { width: 100%; padding: 10px 30px; }
.back-button-container button {
  padding: 8px 16px;
  font-size: 14px;
  background: linear-gradient(135deg, #974B8C 0%, #1A0A40 100%);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(151, 75, 140, 0.4);
}
.back-button-container button:hover {
  background: linear-gradient(135deg, #1A0A40 0%, #974B8C 100%);
  transform: translateY(-2px);
}

/* ====== FLIPBOOK WRAPPER — full width, arrows overlaid ====== */
#flipbook-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
}

/* The album fills the full width */
#album {
  width: 100%;
  position: relative;
  box-shadow: 0 15px 40px rgba(151, 75, 140, 0.3);
  border-radius: 8px;
  visibility: hidden;
}

#album > div {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

/* ====== STICKY OVERLAY ARROWS ====== */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  width: 44px;
  height: 70px;
  font-size: 20px;
  cursor: pointer;
  border: none;
  background: linear-gradient(135deg, rgba(151, 75, 140, 0.85) 0%, rgba(26, 10, 64, 0.85) 100%);
  color: white;
  border-radius: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(151, 75, 140, 0.5);
  backdrop-filter: blur(4px);
}

#prev { left: 8px; }
#next { right: 8px; }

.nav-arrow:hover {
  background: linear-gradient(135deg, rgba(26, 10, 64, 0.95) 0%, rgba(151, 75, 140, 0.95) 100%);
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 12px 30px rgba(26, 10, 64, 0.6);
}

.nav-arrow:active { transform: translateY(-50%) scale(0.97); }

/* Bottom nav buttons */
#bottom-nav {
  display: flex;
  justify-content: center;
  margin: 16px auto 30px;
  gap: 20px;
}

.button {
  width: 80px;
  height: 40px;
  font-size: 13px;
  cursor: pointer;
  border: none;
  background: linear-gradient(135deg, #974B8C 0%, #1A0A40 100%);
  color: white;
  border-radius: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(151, 75, 140, 0.4);
}

.button:hover {
  background: linear-gradient(135deg, #1A0A40 0%, #974B8C 100%);
  transform: translateY(-2px);
}

/* Branding */
.branding-corner {
  position: fixed;
  bottom: 10px;
  right: 10px;
  z-index: 9999;
}
.branding-corner img { width: 50px; height: auto; }

/* Responsive */
@media (max-width: 768px) {
  .header { flex-direction: column; gap: 10px; padding: 10px 15px; }
  .logo { height: 50px; }
  .nav-arrow { width: 32px; height: 55px; font-size: 16px; }
  #prev { left: 4px; }
  #next { right: 4px; }
}

@media (max-width: 480px) {
  .nav-arrow { width: 26px; height: 44px; font-size: 13px; }
  #prev { left: 2px; }
  #next { right: 2px; }
  .button { width: 65px; height: 34px; font-size: 11px; }
}
