@font-face {
  font-family: Bayer;
  src: url(Bayer TypeArchiType Regular.otf);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #fff;
  font-family: 'Bayer', serif;
  display: flex;
  justify-content: center;
}

.chapter-wrapper {
  max-width: 800px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}


.chapter-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto 20px auto;
}

.chapter-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Shared styling for both links */
.chapter-container a {
  position: absolute;
  color: #000;
  font-size: 1.2rem;
  padding: 4px 8px;
  border-radius: 4px;
  text-decoration: none;
  transform: translate(-50%, -50%);
}

/* Independent positions */
.contact-whatsapp {
  top: 72%;  /* adjust to fit your design */
  left: 23.5%; /* adjust to fit your design */
}

.contact-instagram {
  top: 88%;  /* adjust to fit your design */
  left: 25%; /* adjust to fit your design */
}

/* Optional: scale font on smaller screens */
@media (max-width: 500px) {
  .chapter-container a {
    font-size: 0.6rem;
    padding: 3px 6px;
  }
}
