body {
  font-family: Arial, sans-serif;
  text-align: center;
  background: #8fa2ff;
  margin: 0;
  padding: 20px;
}

#comic-container {
  max-width: 880px;
  margin: auto;
  background: #ffffff;
  padding: 20px;
  box-sizing: border-box;
}

#series-header-link {
  display: block;
  margin: 0 auto 16px;
}

#series-header-image {
  display: block;
  height: auto;
  max-width: 100%;
}

.comic-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  margin: 16px 0;
}

.nav-image-button {
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-image-button:disabled {
  cursor: default;
}

.nav-image-button img {
  display: block;
  width: 48px;
  height: 48px;
  pointer-events: none;
}

#page-info {
  font-weight: bold;
  font-size: 1.1rem;
  margin: 0 10px;
  white-space: nowrap;
}

#comic-image-wrapper {
  margin: 20px 0;
}

#comic-image {
  display: block;
  width: 100%;
  max-width: 800px;
  height: auto;
  border: 1px solid #ccc;
  cursor: pointer;
  margin: 0 auto;
}

#keyboard-hint {
  margin-top: 6px;
  font-size: 0.85rem;
  color: #555;
}

.hint-mobile {
  display: none;
}

#social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.social-image-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  line-height: 0;
  text-decoration: none;
}

.social-image-link img {
  display: block;
  width: 34px;
  height: 34px;
}

#copyright {
  margin-top: 18px;
  font-size: 0.8rem;
  color: #555;
}

@media (max-width: 950px) {
  #comic-image {
    max-width: 100%;
  }
}

/* MOBILE ADJUSTMENTS */

@media (max-width: 500px) {
  body {
    padding: 12px;
  }

  #comic-container {
    padding: 12px;
  }

  .comic-nav {
    gap: 6px;
  }

  .nav-image-button {
    width: 36px;
    height: 36px;
  }

  .nav-image-button img {
    width: 36px;
    height: 36px;
  }

  #page-info {
    font-size: 1rem;
    margin: 0 4px;
  }

  #keyboard-hint {
    font-size: 0.8rem;
  }

  .hint-desktop {
    display: none;
  }

  .hint-mobile {
    display: inline;
  }

  #social-links {
    gap: 8px;
    margin-top: 10px;
  }

  .social-image-link {
    width: 30px;
    height: 30px;
  }

  .social-image-link img {
    width: 30px;
    height: 30px;
  }

  #copyright {
    font-size: 0.75rem;
  }
}

#copy-feedback {
  font-size: 0.85rem;
  color: #008800;
  height: 18px;
  margin-top: 4px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

#copy-feedback.visible {
  opacity: 1;
}

#book-buy-section {
  display: none;
  max-width: 760px;
  margin: 18px auto 20px;
  text-align: left;
}

#book-buy-section.visible {
  display: block;
}

.book-buy-item {
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid #999;
  background: #fff;
  padding: 10px 14px;
  margin-bottom: 10px;
  box-sizing: border-box;
}

.book-buy-thumb {
  width: 150px;
  height: auto;
  flex: 0 0 auto;
  border: 1px solid #ccc;
}

.book-buy-info {
  flex: 1 1 auto;
  font-size: 1rem;
  line-height: 1.25;
  color: #000;
}

.book-buy-title {
  margin-bottom: 2px;
}

.book-buy-description {
  margin-bottom: 14px;
}

.book-buy-links a {
  color: #306191;
  text-decoration: none;
}

.book-buy-links a:hover {
  text-decoration: underline;
}

.book-buy-links a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {

  .book-buy-thumb {
    width: 90px;
  }

  .book-buy-info {
    font-size: 0.85rem;
  }

}

#series-header-image {
  cursor: pointer;
}

#copyright a {
  color: inherit;
  text-decoration: none;
}

#copyright a:hover {
  text-decoration: underline;
}