body {
  background-color: #fff;
  margin: 0px;
  text-rendering: geometricprecision;
  height: calc(var(--vh, 1vh) * 100);
}
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
  height: 100vh; /* Fallback for browsers that do not support Custom Properties */
  height: calc(var(--vh, 1vh) * 100);
  justify-content: space-between;
}

.header {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 8px 8px 2px 8px;
  z-index: 100;
  position: relative;
  width: 365px;
}
.closebtn {
  position: absolute;
  left: 0px;
}
.share,
.closebtn,
.comments,
.chaptersbtn {
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  outline: none;
  border: none;
  -webkit-tap-highlight-color: transparent;
}
.reader {
  width: 375px;
  height: 540px;
  overflow-x: scroll;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  display: flex;
  border-radius: 20px;
  background-color: #fff;
}
.reader::-webkit-scrollbar {
  display: none;
}
.page {
  min-width: 100%;
  width: 100%;
  height: 540px;
  scroll-snap-align: start;
  flex-shrink: 0;
  background-color: #fff;
  overflow: hidden;
}
.textcontainer {
  padding-left: 34px;
  padding-right: 34px;
  /* height: 540px; */
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.chaptername {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  text-align: center;
  text-rendering: geometricprecision;
  color: rgb(107, 114, 128);
  font-weight: 600;
  font-style: normal;
  margin: 0;
  line-height: 1.6em;
  font-size: 16px;
  user-select: none;
}
.preheading,
.postheading {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  text-align: center;
  text-rendering: geometricprecision;
  color: #a06dff;
  color: #24272e;
  font-weight: 400;
  font-style: normal;
  margin: 0;
  line-height: 1.6em;
  font-size: 16px;
  text-transform: uppercase;
  user-select: none;
}
.postheading {
  padding-top: 8px;
}

.heading {
  font-family: "Crimson Pro", serif;
  font-optical-sizing: auto;
  text-align: center;
  text-rendering: geometricprecision;
  color: #24272e;
  font-weight: 400;
  font-style: normal;
  margin: 0;
  line-height: 86px;
  font-size: 100px;
  user-select: none;
  z-index: 100;
}
.headingsmall {
  font-family: "Crimson Pro", serif;
  font-optical-sizing: auto;
  text-align: center;
  text-rendering: geometricprecision;
  color: #24272e;
  font-weight: 400;
  font-style: normal;
  margin: 0;
  line-height: 48px;
  font-size: 52px;
  user-select: none;
  font-style: italic;
  padding: 14px 0px;
}

.outrotext {
  font-family: "Crimson Pro", serif;
  font-optical-sizing: auto;
  text-rendering: geometricprecision;
  color: #24272e;
  font-weight: 400;
  font-style: normal;
  margin: 0;
  line-height: 46px;
  font-size: 38px;
  padding-bottom: 8px;
  user-select: none;
  z-index: 100;
}
.normaltext {
  font-family: "Crimson Pro", serif;
  font-optical-sizing: auto;
  text-rendering: geometricprecision;
  color: #1e2125;
  font-weight: 400;
  font-style: normal;
  margin: 0;
  line-height: 35px;
  font-size: 26px;
  user-select: none;
}

.interactions {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  padding: 8px 16px;
  max-width: 375px;
  box-sizing: border-box;
}
.interactions button {
}

.progress-container {
  width: 100%;
  height: 4px; /* Increased height for better visibility */
  background-color: #e0e0e0; /* Lighter background for better contrast */
  border-radius: 3px;
  margin: 8px 0;
  position: relative; /* Ensure proper positioning context */
  overflow: hidden; /* Clip the progress bar to the container */
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); /* Add subtle inset shadow */
}

.progressbar {
  position: absolute; /* Absolute positioning within container */
  top: 0;
  left: 0;
  height: 100%;
  background-color: #24272e; /* Purple bar to match design */
  width: 0%; /* Start at 0% */
  transition: width 0.2s ease-out;
  border-radius: 3px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset; /* Add subtle highlight */
}

.pagecounter {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: #939496;
  text-align: center;
  margin: 4px 0;
  display: block; /* Ensure it's displayed as block */
}

.page-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Bottom Sheet Styles */
.bottom-sheet-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.bottom-sheet-overlay.active {
  opacity: 1;
  visibility: visible;
}

.bottom-sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80vh;
  background-color: #fff;
  border-radius: 20px 20px 0 0;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  touch-action: pan-y;
}

.bottom-sheet-overlay.active .bottom-sheet {
  transform: translateY(0);
}

.bottom-sheet-handle {
  width: 40px;
  height: 4px;
  background-color: #e0e0e0;
  border-radius: 2px;
  margin: 12px auto 8px;
  cursor: grab;
}

.bottom-sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px 0px;
  /* border-bottom: 1px solid #f0f0f0; */
}

.bottom-sheet-title {
  font-family: "Inter", sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: #24272e;
  margin-top: 0;
  margin-bottom: 10px;
}
.buy-title {
  font-family: "Inter", sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #24272e;
  margin-top: 0;
  margin-bottom: 10px;
}

.bottom-sheet-close {
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.bottom-sheet-close:hover {
  background-color: #f0f0f0;
}

.bottom-sheet-content {
  flex: 1;
  padding: 10px 16px 16px 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.lastpage-content {
  /* flex: 1; */
  padding: 0px 16px 16px 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-around;
  height: 100%;
}

.subscribe-content {
  border-radius: 16px;
  background-color: #f0f0f0;
  padding: 20px 14px 16px 14px;
  /* display: flex;
  flex-direction: column; */
}
.signupwrapper {
  padding-top: 16px;
  display: flex;
  flex-direction: row;
  gap: 4px;
}
.signuptext {
  font-family: "Crimson Pro", serif;
  font-optical-sizing: auto;
  text-rendering: geometricprecision;
  color: #1e2125;
  font-weight: 400;
  font-style: normal;
  margin: 0;
  line-height: 32px;
  font-size: 24px;
  user-select: none;
}
.phoneinput {
  padding: 8px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #939496;
  flex: 1;
  font-family: "Inter", sans-serif;
}
.signupbutton {
  background-color: #24272e;
  font-family: "Inter", sans-serif;
  color: white;
  font-size: 16px;
  font-weight: 700;
  border: none;
  outline: 0;
  border-radius: 8px;
  padding: 10px 16px;
}

.adimage {
  width: 100%;
  border-radius: 8px 8px 0px 0px;
}
.buy_image {
  height: 300px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.buy_ad {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.readmorelink {
  border-radius: 16px;
  /* background-color: #1e2125; */
  background-color: #f0f0f0;

  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}
.linktext {
  text-align: center;
  color: #1e2125;
  font-family: "Inter", sans-serif;
  margin: 0;
  padding: 12px 0px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
}
.plick_buybtn {
  background-color: #24272e;
  font-family: "Inter", sans-serif;
  color: white;
  width: 100%;
  font-size: 16px;
  font-weight: 700;
  border: none;
  outline: 0;
  border-radius: 8px;
  padding-top: 12px;
  padding-bottom: 12px;
  text-align: center;
  text-decoration: none;
  /* margin-top: 4px; */
}
.ad_details {
  display: flex;
  gap: 10px;
  flex-direction: row;
  font-size: 16px;
  font-family: "Inter", sans-serif;
  align-items: center;
  line-height: 7px;
  color: #24272e;
}
.ad_details p {
  font-weight: 500;
  margin: 8px 0px 0px 0px;
}

.bringlogo {
  height: 32px;
}

.sample_ad {
  border-radius: 16px;
  /* background-color: #f0f0f0; */
  /* padding: 32px 0px 0px 0px; */
}

/* Like button styles */
.likebtn {
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  outline: none;
  border: none;
  -webkit-tap-highlight-color: transparent;
}

.likebtn:hover {
  background-color: rgba(255, 107, 157, 0.1);
}

.likebtn:active {
  transform: scale(0.95);
}

.heart-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  transition: all 0.2s ease;
}

.heart-icon svg {
  transition: all 0.2s ease;
}

.likebtn:hover .heart-icon {
  color: #ff6b9d;
  transform: scale(1.1);
}
