/* GOOGLE FONTS */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600&display=swap');

/* RESET + GENERAL */
body {
  background-color: rgb(52, 52, 52);
  margin: 0;
  padding: 0;
  font-family: 'Space Grotesk', sans-serif;
  color: #ffffff;
}

header {
  background-color: black;
  color: white;
}

/* NAVIGATION BAR */
nav ul {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 20px;
  list-style: none;
  margin: 0;
}

.logo img {
  height: 50px;
  width: auto;
  display: block;
}

.links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.links img {
  height: 40px;
  width: auto;
  display: block;
  cursor: pointer;
}

/* GALLERY TITLE */
.gallery_title {
  display: flex;
  justify-content: center;
  margin: 20px auto;
  width: fit-content;
}

.gallery_title img {
  width: 500px;
  height: auto;
  display: block;
  /* Shadow only for the cover image */
  filter: drop-shadow(0px 10000px #ab1717);
  transform: translateY(-10000px);
}

/* COMIC VIEWER */
.comic-viewer {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 20px;
}

.comic-viewer img {
  width: 100%;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* NAVIGATION BUTTONS */
.navigation {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  flex-shrink: 0;
  flex-grow: 0;
}

.navigation button {
  padding: 10px 16px;
  background-color: #000000;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  white-space: nowrap;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
}

.navigation button:hover {
  background-color: #333333;
}

#page-indicator {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  white-space: nowrap;
}

/* FOOTER */
footer {
  background-color: black;
  color: white;
  padding: 10px 20px;
  text-align: center;
}

footer img {
  width: 200px;
  height: auto;
}

/* RESPONSIVE DESIGN */
@media (max-width: 600px) {
  .gallery_title img {
    width: 90%;
  }

  .navigation {
    gap: 8px;
    padding: 0 8px;
  }

  .navigation button {
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  #page-indicator {
    font-size: 1rem;
  }
}

/* PRINT STYLES */
@media print {
  @page :first {
    counter-reset: page 0;
  }

  body {
    counter-increment: page;
  }

  body::after {
    content: "Page " counter(page);
    position: fixed;
    bottom: 10px;
    right: 10px;
    font-size: 14px;
  }
}


