/* Global */
body {
  background-color: #121212;
  color: #e0e0e0;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
  font-family: sans-serif;
}

/* Top Navigation */
.top-nav {
  position: absolute;
  top: 30px;
  left: 30px;
  display: flex;
  gap: 20px;
  z-index: 20;
}

.nav-button {
  color: #ffffff;
  opacity: 0.6;
  transition: opacity 0.2s ease;
  position: relative;
  display: flex;
  justify-content: center;
  text-decoration: none;
}

.nav-button:hover {
  opacity: 1;
}

.nav-button svg {
  transform-origin: center;
  pointer-events: none;
}

.nav-button:hover svg {
  animation: shake 0.4s ease-in-out 1;
}

@keyframes shake {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(-15deg); }
  50% { transform: rotate(15deg); }
  75% { transform: rotate(-15deg); }
  100% { transform: rotate(0deg); }
}

/* Tooltips */
.nav-button::after {
  content: attr(data-tooltip);
  position: absolute;
  top: 100%;
  margin-top: 12px;
  background-color: #ffffff;
  color: #000000;
  border: 1px solid #000000;
  padding: 4px 8px;
  font-size: 14px;
  font-family: inherit;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.nav-button:hover::after {
  opacity: 1;
}

/* Layout */
.zine-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100vh;
}

.zine-page-wrapper {
  flex-grow: 1;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  height: 100%;
  max-width: calc(100vw - 200px);
}

/* Images */
.zine-page-wrapper img {
  height: 100vh;
  max-width: 50%;
  object-fit: contain;
  transition: opacity 0.15s ease-in-out;
  opacity: 1;
}

#zineImageLeft {
  object-position: right center;
}

#zineImageRight {
  object-position: left center;
}

.zine-page-wrapper img.fade {
  opacity: 0;
}

/* Navigation Controls */
#prevBtn, #nextBtn {
  background-color: transparent;
  color: #ffffff;
  border: none;
  cursor: pointer;
  font-size: 64px;
  margin: 30px;
  padding: 0;
  z-index: 10;
  transition: opacity 0.2s ease;
}

#prevBtn:hover:not(:disabled), #nextBtn:hover:not(:disabled) {
  opacity: 0.6;
}

#prevBtn:disabled, #nextBtn:disabled {
  visibility: hidden;
  cursor: default;
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Modal Content Box */
.modal-content {
  background-color: #121212;
  border: 1px solid #e0e0e0;
  padding: 40px;
  position: relative;
  color: #e0e0e0;
  max-width: 600px;
  width: 90%;
  font-family: sans-serif;
  height: 80vh;
  overflow-y: auto;
}

.modal-content h2 {
  margin: 0;
  font-size: 18px;
  font-weight: normal;
  letter-spacing: 1px;
}

.dashed-divider {
  border: none;
  border-top: 1px dashed #e0e0e0;
  margin: 20px 0;
}

.modal-content h3 {
  font-size: 14px;
  margin: 0 0 10px 0;
  font-weight: normal;
}

.modal-content p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* Close Button */
.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: #121212;
  color: #e0e0e0;
  border: 1px solid #e0e0e0;
  cursor: pointer;
  font-family: sans-serif;
  font-size: 14px;
  padding: 4px 8px;
  margin: 0;
  transition: background-color 0.2s, color 0.2s;
}

.close-btn:hover {
  background-color: #e0e0e0;
  color: #121212;
}