.paragraph-row {
  display: flex;
  align-items: flex-start;
}

.paragraph-content {
  padding: 15px;
  border: 1px solid #ccc;
  min-height: 100%;
}

.paragraph-content p {
  margin-bottom: 0;
}

.chapter-title {
  font-weight: bold;
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.chapter-heading {
  width: 100%;
  background-color: #f0f0f0;
  padding: 10px;
  margin-bottom: 10px;
}

.paragraph-wrapper {
  width: 100%;
}

/* Add this to control the visibility of columns 
.hidden {
  display: none;
}*/

/* Add this to control the visibility of columns */
.hidden {
  display: none !important;
}

/* Flex container and items */
.flex-container {
  display: flex;
  align-items: flex-start;
  width: 100%;
}

.flex-item {
  flex: 1;
  padding: 0;
}

/* Scroll-to-Top Button Styling */
#scrollTopBtn {
  position: fixed;
  bottom: 80px;  /* Increased to accommodate audio control */
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
  display: none; /* Hidden by default */
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

#scrollTopBtn:hover {
  background-color: #555;
}

/* Audio Control Styling */
.audio-control {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000; /* Ensure it appears above other elements */
}

.play-pause-button {
  width: 70px; /* Adjust size as needed */
  height: 70px;
  background-color: #333;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.play-pause-button i {
  font-size: 30px;
}

@media (max-width: 767px) {
  .play-pause-button {
    width: 50px;
    height: 50px;
  }

  .play-pause-button i {
    font-size: 24px;
  }
}

/* Buttons container styling */
.buttons-container .btn {
  margin-right: 10px; /* Space between buttons when in a row */
}

.buttons-container .btn:last-child {
  margin-right: 0; /* Remove right margin from the last button */
}

/* Adjustments for smaller screens */
@media (max-width: 576px) {
  .buttons-container {
    flex-direction: column; /* Stack buttons vertically */
    align-items: flex-end;  /* Align buttons to the right */
  }
  .buttons-container .btn {
    margin-right: 0;       /* Remove right margin */
    margin-bottom: 10px;   /* Add bottom margin between buttons */
    width: 100%;           /* Make buttons take full width */
  }
  .buttons-container .btn:last-child {
    margin-bottom: 0;      /* Remove bottom margin from last button */
  }
}

/* Note Icon Styling */
.paragraph-content {
  position: relative; /* Ensure positioning context for the note icon */
}

.note-icon {
  position: absolute;
  bottom: 10px; /* Changed from top: 10px; to bottom: 10px; */
  right: 10px;
  cursor: pointer;
  color: #007bff; /* Bootstrap primary color */
  font-size: 1.2em; /* Adjust icon size as needed */
}
.note-icon:hover {
  color: #0056b3; /* Darker color on hover */
}