body {
    font-family: 'Palatino', 'Palatino Linotype', 'Book Antiqua', 'serif';
    background-color: #787676a6;
  }



h1 {
    font-family: 'Optima', 'Segoe UI', 'Arial', 'sans-serif';
    font-size: 24px !important;
    /* Increased from 13pt */
    font-weight: 560 !important;
    text-align: center;
    letter-spacing: 1.2px;
    padding-top: 20px;
    position: -webkit-sticky;
    /* Safari */
    position: sticky;
    background: white;
    box-shadow:         0 8px 6px -6px #fff; 

    top: 55px;
    z-index: 81;
}

h2 {

    font-family: 'Optima', 'Segoe UI', 'Arial', 'sans-serif';
    font-size: 24px !important;
    /* Increased from 12pt */
    font-weight: 545 !important;
    padding: 11px;
    padding-top: 20px;
    letter-spacing: 0.8px;
    position: -webkit-sticky;
    /* Safari */
    position: sticky;
    background: white;
    top: 100px;
    z-index: 71;
    box-shadow: 0 8px 6px -6px #fff;


}

h3 {
    font-family: 'Optima', 'Segoe UI', 'Arial', 'sans-serif';
    font-size: 23px !important;
    /* Increased from 10pt */
    font-style: italic;
    font-weight: 500 !important;
    padding: 11px;
    padding-top: 20px;
    position: -webkit-sticky;
    /* Safari */
    position: sticky;
    background: white;
    top: 150px;
    z-index: 61;
    box-shadow: 0 8px 6px -6px #fff;

}


h4 {
    font-family: 'Optima', 'Segoe UI', 'Arial', 'sans-serif';
    font-size: 22px;
    /* Increased from 10pt */
    font-weight: 480 !important;
}

p {
    font-family: 'Palatino', 'Palatino Linotype', 'Book Antiqua', 'serif' !important;
    font-size: 18px !important;
    /* Assuming the increased font size */
    line-height: 3 !important;
    /* Adds more space between lines */
    text-align: justify !important;
    /* Justifies the text, spreading lines evenly */
    text-indent: 30px !important;
    /* This should match the padding-left value of 'ol' */

}


.page-container {
    display: flex;
    /* Continue to use Flexbox */
    flex-wrap: wrap;
    /* Allows items to wrap if needed */
    background-color: #787676a6;
    /* Background color of the container */
    position: relative;
    /* Establishes a positioning context */
    width: 100%;
    /* Ensure the container spans the full width */
}



.main-content {

    position:relative;
    border: 1px solid #dadada;
    background-color: white; 


    /* Background color of the container */
    width: 90vh;
    padding: 60px;
    height: 100vh;
    /* Example height to force scrolling */
    overflow-y: auto;
    /* Allows scrolling within the main content */
    scroll-behavior: smooth; /* Smooth scrolling */

    margin-left: auto;
    /* Centers the div on the page horizontally */
    margin-right: auto;
    /* Centers the div on the page horizontally */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    /* Adds a subtle shadow around the div */

    opacity: 0;
    visibility: hidden; /* Use visibility instead of display */
    transition: opacity 0.5s ease-in, visibility 0.5s ease-in; /* Add transition for visibility */
}


.main-content.is-visible {
    opacity: 1;
    visibility: visible; /* Make element visible */
}



.toc-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    /* Width of the sidebar */
    height: 2000px;
    background: #f0f0f0;
    transition: transform 0.3s ease;
    transform: translateX(-100%);
    border-right: 1px solid #dadada;
}

.toc-sidebar.active {
    transform: translateX(0);
}

.toc-toggle {
    position: absolute;
    right: -30px;
    top: 20px;
    cursor: pointer;
    background: #f0f0f0;
    border: 1px solid #dadada;
    border-radius: 50%;
    /* Adjust size as necessary */
}


#toc-content .nav-item {
    font-family: 'Palatino', 'Palatino Linotype', 'Book Antiqua', 'serif' !important;
    display: block;
    line-height: 1.5;
    padding-bottom: 10px;
}

#toc-content .nav-item a {
    padding-left: 10px;
    font-size: 18px;
    color: #3f4143 !important; /* Use "color" instead of "font-color" */
    transition: font-weight 0.3s linear;

}

#toc-content .nav-item.h1 a {
    font-size: 20px;
    font-weight: 600; /* Additional font weight for h1 */
}

#toc-content .nav-item.h2 a {
    padding-left: 25px;
    font-size: 16px;
    font-weight: 500; /* Additional font weight for h2 */
}

#toc-content .nav-item.h3 a {
    padding-left: 35px;
    font-size: 16px;
    font-style: italic;
    font-weight: 400; /* Additional font weight for h3 */
}

#toc-content .nav-item a:hover {
    font-weight: bolder;
    transition: font-weight 0.3s linear;
}

.nav-link {
    position: relative; /* Set the positioning context for the pseudo-element */
    background-color: transparent;
    border-radius: 0;
    margin: 0;
    box-shadow: none;
}

.nav-link.spy-active:before {
    content: ''; /* Required for pseudo-elements */
    position: absolute; /* Absolute position relative to the nav-link */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e7e7e8; /* Your desired background color */
    border-radius: 4px; /* Your desired border-radius */
    z-index: -1; /* Sit behind the content */
}




.nav-link.spy-active {
    padding: 5px 2px; /* Padding to ensure the text does not touch the edges */
     margin: 2px;
    margin-top: 11px;
    margin-bottom: 5px;
    font-weight: bolder;
    padding-left: 56px !important;
    position: relative;
    display: block;
    margin-left: -52px;
    margin-right: -46px;
    padding-top: 3px;
}




.image-reference{
    text-decoration: none;
    color: gray;
    
}

@font-face {
    font-family: "Serpentine W04 Bold";
    src: url("../fonts/serpentine/8ba7e86e0989d57a1614f289df027815.eot");
    src: url("../fonts/serpentine/8ba7e86e0989d57a1614f289df027815.eot?#iefix")format("embedded-opentype"),
        url("../fonts/serpentine/8ba7e86e0989d57a1614f289df027815.woff")format("woff"),
        url("../fonts/serpentine/8ba7e86e0989d57a1614f289df027815.woff2")format("woff2"),
        url("../fonts/serpentine/8ba7e86e0989d57a1614f289df027815.ttf")format("truetype"),
        url("../fonts/serpentine/8ba7e86e0989d57a1614f289df027815.svg#Serpentine W04 Bold")format("svg");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Industry Demi';
    src: url('../fonts/Industry-Demi.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

::cue {
    background: rgba(0, 0, 0, 0.8); /* Optional: Adds a background to make text easier to read */
    color: white;
    font-family: 'Industry Demi', sans-serif;
    letter-spacing: 1px;
    font-size: 28px;
    line-height: 1.5;
     letter-spacing: 3px    ;
    font-weight: 300; 
    text-align: justify;

}


.chapter-banner {
    width: 100%;
    height: 50px;
    /* Adjust the height as needed */
    background: linear-gradient(to left, #231f20, rgba(255, 255, 255, 0));
    /* Gradient from dark grey to transparent */
    border-radius: 0 25px 25px 0;
    /* Rounded corners on the left side */
    display: flex;
    align-items: center;
    /* Align content vertically */
    /* justify-content: flex-end; */
    /* Align content horizontally to the right */
    position: -webkit-sticky;
    /* Safari */
    position: sticky;
    top: 0;
    z-index: 110 !important;
}

.chapter-banner-content {
    color: #fff;
    /* White text color */
    padding: 10px 30px;
    /* Top and bottom padding of 10px, left and right padding of 20px */
    position: absolute;
    /* Absolute positioning to place the content */
    right: 0;
    /* Align to the right side */
    font-weight: bold;
    /* Bold font */
    font-family: "Serpentine W04 Bold";
    letter-spacing: 1px;
    /* Adjust as needed for more space between characters */
    font-stretch: expanded;
    /* Only works if the font supports it */
    font-size: 28px;
}


.main-banner-text {
    font-family: 'Industry Demi', Arial, sans-serif;
    color: #A82C2C;
    text-transform: uppercase;
    text-shadow: -1px -1px 0 #403E3B, 1px -1px 0 #403E3B, -1px 1px 0 #403E3B, 1px 1px 0 #403E3B, 4px 8px 10px #000;
    font-size: 140px;
    -webkit-text-stroke: 3px #8988878f;
    /* Dark outline for Webkit browsers */
    text-stroke: 3px #8988878f;
    /* Standard property for text-stroke if supported */
    display: block;
    text-align: center;
    letter-spacing: 0.2px;
    scale: 1.6 0.75;
}

.main-banner-paragraph {
    font-family: 'Industry Demi', Arial, sans-serif;
    font-size: 55px;
    /* Adjust font size as needed */
    color: white;
    /* Adjust text color as needed */
    text-shadow: 4px 4px 6px rgba(0, 0, 0, 0.6);
    /* Optional text shadow for better readability */
    line-height: 1.2;
    letter-spacing: 0.2px;

    -webkit-text-stroke: 2px #9a84848f;
    /* Dark outline for Webkit browsers */
    text-stroke: 2px #9a84848f;
    /* Standard property for text-stroke if supported */
    display: inline-block;
    text-align: center;
    text-transform: uppercase;

}


.main-banner-paragraph::first-letter {
    font-size: 65px;
}


.chapter-title {
    font-family: 'Optima', sans-serif;
    text-transform: uppercase;
    /* Make the text uppercase */
    font-size: 24px;
    /* Default font size for the whole title */
    font-weight: bold;
    /* If you want it bold */
    display: inline-block;
    color: black !important;
    text-decoration: none !important;

    /* Makes it possible to apply ::first-letter */
    letter-spacing: 1.5px;
    /* Adjust as needed for more space between characters */
    z-index: 89;
    position: relative;

}

.chapter-title::first-letter {
    font-size: 30px;
    color: black !important;
    text-decoration: none !important;
    /* Larger font size for the first letter */
}


.search-title {
    font-family: 'Palatino', 'Palatino Linotype', 'Book Antiqua', 'serif' !important;
    font-size: 18px;
    /* Default font size for the whole title */
    /* If you want it bold */
    display: inline-block;
    color: black;
    /* Makes it possible to apply ::first-letter */
    letter-spacing: 1.5px;
    /* Adjust as needed for more space between characters */
    z-index: 89;
    position: relative;

}

.index-page .chapter-title {
    font-size: 18px;
}


.index-page .chapter-title::first-letter {
    font-size: 22px;
}


.chapter-hr {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
    padding: 0.5em 1em;
    position: relative;
}

.chapter-hr::before,
.chapter-hr::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 2.5px;
    width: 50%;
}

.chapter-hr::before {
    left: 0;
    background-color: #333;
}

.chapter-hr::after {
    right: 0;
    background-color: #333;
}

.chapter-hr-text {
    color: #fff;
    letter-spacing: 0.8px;
    font-size: 18px;
    /* Adjust size as needed */
    font-family: 'Optima', 'Segoe UI', 'Arial', 'sans-serif';
    font-weight: 540;
    padding: 0.4em 0.8em;
    padding-top: 8px;
    background: #333;
    /* A darker shade for the oval background */
    border-radius: 50px;
    z-index: 1;
    justify-content: center;
    align-items: center;
    transition: padding-left 0.3s ease-in, padding-right 0.3s ease-in;
}


.dropdown {

    font-family: 'Palatino', 'Palatino Linotype', 'Book Antiqua', 'serif' !important;
    font-stretch: expanded;
    font-size: 18px !important;
    font-style: italic;
    line-height: 2;

}

.btn {
    font-style: italic !important;
    font-weight: 450 !important;
    font-weight: 200;
    font-size: 26pxx
}

.rhoton_annotations_title {
    display: inline-block;
    /* Ensures ::first-letter works properly */
    font-family: 'Palatino', 'Palatino Linotype', 'Book Antiqua', 'serif' !important;
    font-style: italic;
    font-weight: 560;
    /* Note: The actual value will be rounded to the nearest 100 in many browsers */
    letter-spacing: 0.8px;
    line-height: 2;
    text-align: justify;

}

.rhoton_annotations_title::first-letter {
    text-transform: uppercase;
    /* Capitalizes the first letter */
}


/* Styles for the offcanvas and its components */
.offcanvas {
    width: 820px;
}


 .offcanvas-backdrop.show {
    z-index: 1055; /* Ensure this is above the modal's z-index */
  }
  .offcanvas.show {
    z-index: 1060; /* This brings the offcanvas itself above the modal */
  }


  .offcanvas-backdrop.show.custom-offcanvas {
    z-index: 1055;
}
.offcanvas.show.custom-offcanvas {
    z-index: 1060;
}



.container {
    display: flex;
    padding-left: 16px;
    height: 90px;
}

.image-container {
    position: relative;
    height: 600px;
    background-color: #d5d3d3;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;

}


#anatomyImage {
    max-width: 100%;
    max-height: 100%;
    z-index: 10;
    mix-blend-mode: multiply;
}

#anatomyImageContainer {
    display: flex;
    justify-content: center;
    align-items: center;
}

.annotations-container {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(100vh - 830px);
    /* Adjust max-height as necessary */
}

/* Other styles for dropdown and controls */
.dropdown-toggle {
    cursor: pointer;
}

.combined-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-left: 20px;
    padding-right: 20px;
}


ol.in-chapter-list {
    counter-reset: item;
    list-style-type: none;
    font-family: 'Palatino', 'Palatino Linotype', 'Book Antiqua', 'serif' !important;
    font-size: 17px !important;
    /* Assuming the increased font size */
    line-height: 2.5 !important;
    /* Adds more space between lines */
    text-align: justify !important;

    /* Justifies the text, spreading lines evenly */
}

ol.in-chapter-list>li {
    display: block;
}

ol.in-chapter-list>li:before {
    content: counter(item, upper-roman) ". ";
    counter-increment: item;
}

ol.in-chapter-list>li>ol {
    counter-reset: subitem;
    list-style-type: none;
}

ol.in-chapter-list>li>ol>li:before {
    content: counter(subitem, upper-alpha) ". ";
    counter-increment: subitem;
}

ol.in-chapter-list>li>ol>li>ol {
    counter-reset: subsubitem;
    list-style-type: none;
}

ol.in-chapter-list>li>ol>li>ol>li:before {
    content: counter(subsubitem) ". ";
    counter-increment: subsubitem;
}


.custom-audio-player {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 20px auto;
    padding: 10px;
}

#playPauseBtn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    /* Or any color that fits your design */
}



.modal-header{
    box-shadow: 0px 1px 6px 2px #dee2e6;  
    border-bottom-color: #80808080;
}

.modal-footer{
    box-shadow: 0px 1px 6px 2px #dee2e6;  
    border-bottom-color: #80808080;
}



.card-text {
        font-family: 'Palatino', 'Palatino Linotype', 'Book Antiqua', 'serif' !important;
    font-size: 14px !important;
    /* Assuming the increased font size */
    line-height: 2 !important;
    /* Adds more space between lines */
    text-align: justify !important;
    letter-spacing: 0.35px;
    /* Justifies the text, spreading lines evenly */
}


.carousel-control-next, .carousel-control-next:focus {
    color: #e91a1a;
    opacity: .5;
}

.carousel-control-prev, .carousel-control-prev:focus {
    color: #e91a1a;
    opacity: .5;


}


.carousel-control-next:hover, .carousel-control-prev:hover {
    color: #e91a1a;
    opacity: .9;    
}

.carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    color: #e91a1a;
    background-color: #c50505;
}


.custom-tooltip {
        font-family: 'Palatino', 'Palatino Linotype', 'Book Antiqua', 'serif' !important;
    font-size: 13px !important;
    line-height: 2 !important;
    tooltip-max-width: 320px;

}


.tooltip-inner {
    max-width: var(--bs-tooltip-max-width);
    padding: var(--bs-tooltip-padding-y) var(--bs-tooltip-padding-x);
    color: #2a2828;
    text-align: center;
    font-variant: all-small-caps;
    font-size: 16px;
    background-color: #e6e6e6d9;
    border-radius: var(--bs-tooltip-border-radius);
    /* border-color: #43fefe; */
    border: solid;
    border-style: ridge;
    /* --bs-box-shadow-sm: 0, 0, 0, 0; */
}


.tooltip {
    --bs-tooltip-zindex: 1080;
    --bs-tooltip-max-width: 400px;
    --bs-tooltip-padding-x: 0.5rem;
    --bs-tooltip-padding-y: 0.25rem;
    --bs-tooltip-margin: ;
    --bs-tooltip-color: var(--bs-body-bg);
    --bs-tooltip-bg: #f0f0f0;
    --bs-tooltip-border-radius: var(--bs-border-radius);
    --bs-tooltip-opacity: 0.9;
    --bs-tooltip-arrow-width: 0.8rem;
    --bs-tooltip-arrow-height: 0.4rem;
    z-index: var(--bs-tooltip-zindex);
    display: block;
    margin: var(--bs-tooltip-margin);

    font-size: 14px;
    line-height: 2 ;
    text-align: justify;
    letter-spacing: 0.35px;

    font-family: 'Palatino', 'Palatino Linotype', 'Book Antiqua', 'serif';
    font-style: normal;
    border-color: #575754 !important;
    border: 1px;
    font-weight: 400;
    /* line-height: 1.5; */
    /* text-align: left; */
    /* text-align: start; */
    text-decoration: none;
    /* --bs-box-shadow: 0 0 antiquewhite; */
    word-break: normal;
    white-space: normal;
    word-spacing: normal;
    line-break: auto;
    word-wrap: break-word;
    opacity: 0;
    border-radius: var(--bs-tooltip-border-radius);

    /* border-color: #43fefe; */
    /* border: solid; */
}

.video-card{
    --bs-card-border-color: rgb(0 0 0 / 42%);
    cursor: pointer;
    transition: box-shadow 0.3s ease-out; /* Add transition for visibility */

}

.video-card:hover{
    box-shadow: 0px 0px 6px 1px rgb(0 0 0 / 37%)
}


.btn-link{
    --bs-btn-close-color: #000;
    --bs-btn-close-opacity: 0.5;
    --bs-btn-close-hover-opacity: 0.75;
    --bs-btn-close-focus-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    --bs-btn-close-focus-opacity: 1;
    --bs-btn-close-disabled-opacity: 0.25;
    --bs-btn-close-white-filter: invert(1) grayscale(100%) brightness(200%);
    box-sizing: content-box;
    width: 1em;
    height: 1em;
    padding: 0.25em 0.25em;
    color: gray !important;

    background: transparent var(--bs-btn-close-bg) center / 1em auto no-repeat;
    border: 0;
    border-radius: 0.375rem;
    opacity: 0.5;

}



.btn-video{
    padding: 10px;
    margin-left: 5px;
    margin-right: 5px;
    color: #212529;
    background: url('data:image/svg+xml, <svg xmlns="http://www.w3.org/2000/svg" height="14" width="14" viewBox="0 0 576 512"><!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M336.2 64H47.8C21.4 64 0 85.4 0 111.8v288.4C0 426.6 21.4 448 47.8 448h288.4c26.4 0 47.8-21.4 47.8-47.8V111.8c0-26.4-21.4-47.8-47.8-47.8zm189.4 37.7L416 177.3v157.4l109.6 75.5c21.2 14.6 50.4-.3 50.4-25.8V127.5c0-25.4-29.1-40.4-50.4-25.8z"/></svg>');
    background-position-x: center;
    background-position-y: center;
    background-repeat: no-repeat;
    opacity: 0.5;

}




.btn-table{
    padding: 10px;
    color: #212529;
    background: url('data:image/svg+xml, <svg xmlns="http://www.w3.org/2000/svg" height="14" width="14" viewBox="0 0 512 512"><!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M64 256V160H224v96H64zm0 64H224v96H64V320zm224 96V320H448v96H288zM448 256H288V160H448v96zM64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64z"/></svg>');
    background-position-x: center;
    background-position-y: center;
    background-repeat: no-repeat;
    opacity: 0.5;

}





.centered-div {
  border: 3px solid black;
  width: 80%;
  height: 80%;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.rhotonTableClass {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px; /* Space for the headline */
}

.rhotonTableClass thead th {
  border-bottom: 2px solid black;
  font-family: 'Palatino', 'Palatino Linotype', 'Book Antiqua', 'serif';
  font-size: 16px;
  line-height: 2;
  text-align: center;
  font-weight: 700;
}

.rhotonTableClass td {
    font-family: 'Palatino', 'Palatino Linotype', 'Book Antiqua', serif;
    font-size: 15px;
    line-height: 2;
    text-align: center;
    font-weight: 400;
    padding: 8px;
    /* vertical-align: middle; */
    width: fit-content;
}

.rhotonTableClass tfoot td {
  border-top: 2px solid black;
}

.table-headline {
  font-weight: bold;
  font-family: 'Palatino', 'Palatino Linotype', 'Book Antiqua', 'serif';
  font-size: 18px;
  width: 100%;
  text-align: left;
}

.table-caption {
  text-align: left !important;
  font-size: 15px;
  width: 100%;
  margin-top: 10px; /* Space between table and caption */

}

.inChapterTable {
  font-family: "Palatino", "Palatino Linotype", "Book Antiqua", "serif" !important;
  font-size: 16px !important;
  line-height: 2 !important;
  text-align: justify !important;
  margin-left: 30px;
  margin-bottom: 16px;

}

.inChapterTable td {
  vertical-align: top;
  padding-top: 10px;
}



.speech-icon {
  position: absolute;
  top: 20px; /* Aligns the image to the top of the container */
  left: -40px; /* Aligns the image to the left of the container */
  width: 20px; /* Optional: Specify width */
  height: 20px; /* Optional: Specify height */
  opacity: 0;
  transition: opacity 0.3s ease-in; /* Add transition for visibility */
  cursor: pointer;
  z-index: 2;

}

.speech-icon:hover {
    opacity: 1;

}

.p-container {
  position: relative; /* Makes the container a reference for absolutely positioned child elements */
  z-index: 2;
}


.p-container p {
  transition: background-color 0.8s linear, box-shadow 0.8s linear, scale 0.8s linear;
  border-radius: 10px;

}


.highlight-text {
  background-color: #ebebeb; /* or any color you use for <mark> */
  box-shadow: 0px 0px 20px 20px #ebebeb;
  scale: 1.02 1.02;
  /* Other styles to mimic <mark>, if needed */
}

.btns-media {
  justify-content: right;
  cursor: pointer;
}

.media-player {
  position: fixed;
  bottom: 10px;
  right: 100px;
  background: white;
  border: 1px solid #000;
  border-radius: 8px; /* Rounded corners */
  padding: 10px;
  height: 180px; /* Adjust as needed */
  width: 300px; /* Adjust as needed */
  transition:
    transform 0.4s ease-in-out,
    box-shadow 0.4s ease-in-out,
    opacity 0.4s ease-in-out; /* Transition for transform and box-shadow */
  transform: translateX(5) rotateX(0deg); /* Initial transform */
  transform-style: preserve-3d; /* Preserve 3D transform styles */
  box-shadow:
    1px 1px 0 1px #f9f9fb,
    -1px 0 28px 0 rgba(34, 33, 81, 0.01),
    28px 28px 28px 0 rgba(34, 33, 81, 0.25); /* Initial box shadow */
  cursor: move;
  z-index: 400;
  opacity: 0; /* Make the player initially invisible */
  display: flex; /* Use flexbox for alignment */
  flex-direction: column; /* Stack children vertically */
  justify-content: space-between; 
  transform: translate3d(0, 0, 0) rotateX(0deg) rotateZ(0deg); /* Reset translation when visible */
  pointer-events: auto;
}

.media-player.hidden{
  visibility: hidden; /* Hide the player */
  pointer-events: none;
}

.media-header {
  display: flex; /* Flexbox for inner alignment */
  justify-content: space-between; /* Push items to opposite ends */
  align-items: top; /* Center items vertically */
  border-bottom: 1px solid #ccc; /* Optional: add a border below the header */
}

.media-info {
  flex-direction: column; /* Stack chapter title and paragraph count vertically */
}

.btn-close-player {
    cursor: pointer;
  margin-left: auto;
  position: relative;
  display: grid;
  justify-content: center;
  justify-items: stretch;
  align-items: center;
}

.media-chapter-title {
  font-family: "Industry", sans-serif;
  font-size: 20px;
  font-weight: bold;
  align-self: flex-start;
}

.media-controls #seekSlider {
    cursor: pointer;
  flex-grow: 1;
  margin: 0 10px;
}

#currentTime,
#totalTime {
  margin: 0 5px;
}

#speakerIcon {
  position: fixed;
  bottom: 20px; /* Adjust as needed */
  right: 20px; /* Adjust as needed */
  font-size: 24px;
  cursor: pointer;
}

.media-controls {
    cursor: pointer;
    display: flex; /* Use flexbox */
    justify-content: space-between; /* Align children with space between */
    align-items: center; /* Center children vertically */
    padding: 10px; /* Add padding for aesthetics */
}

.media-controls > div {
    cursor: pointer;
    /* Apply this to direct children divs of .media-controls,
       which are the left, center, and right control groups */
    flex: 1; /* Each div takes equal space */
    display: flex; /* Use flexbox for alignment within each group */
    justify-content: center; /* Center items horizontally */
}


.media-controls > div:first-child {
    cursor: pointer;
    justify-content: flex-start; /* Align leftmost button to the start */
}

.media-controls > div:last-child {
    justify-content: flex-end; /* Align rightmost button to the end */
}

.center-controls {
    cursor: pointer;
    justify-content: center; /* Ensure the five central buttons are centered */
    gap: 5px; /* Optional: add a gap between the buttons */
}

.media-controls button {
  background: none;
  border: none;
  cursor: pointer;
}

.media-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
}

.paragraph-count {
  font-family: "Industry", sans-serif;
  font-size: 18px;
  align-self: flex-start;
  margin-bottom: 5px;
}

.media-timeline {
  width: 100%;
  padding-top:15px;
  padding-bottom:8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-slider {
  width: 60%; /* Adjust as needed */
  margin: 0 10px;
}
#currentTime,
#totalTime {
  margin: 0 5px;
}

.audio_time{
  font-family: 'Serpentine W04 Bold';
  font-size: 12px;
  
  
}

.slider-container {
    position: absolute;
    bottom: 35px;
    padding: 10px;
    border-radius: 10px;
    transition: opacity 0.3s ease;
    opacity: 1;
    /* transform: rotate(270deg); /* Rotate the slider to vertical */

}


.slider-container :hover{

}

.slider-container.hidden {
   opacity: 0;
  display: none;
}




.vertical-slider {
    -webkit-appearance: slider-vertical; /* Older WebKit browsers */
    writing-mode: bt-lr; /* Older standards */
    width: 8px;
    height: 100px; /* Adjust based on your design */
    outline: none;
    border-radius: 5px;
    background: #e4e4e4;
    cursor: pointer;
    position: absolute;
    bottom: 20px; /* Adjust these positions as needed */
    right: 10px;
}



ol.ref-list {
    counter-reset: item; /* Resets the list counter for nested lists */
    list-style-type: decimal; /* Changes the list style to decimal */
    font-family: 'Palatino', 'Palatino Linotype', 'Book Antiqua', 'serif';
    font-size: 15px; /* Changes font size to 15px */
    line-height: 2.2; /* Changes line height to 2 */
    padding-left: 15px;
    padding-top: 20px;
    text-align: justify; /* Justifies the text, spreading lines evenly */
}


ol.ref-list>li {
    padding-left: 10px;
    padding-bottom: 12px;
}








ol.ref-list-pop {
    font-family: 'Palatino', 'Palatino Linotype', 'Book Antiqua', 'serif';
    font-size: 15px; /* Changes font size to 15px */
    line-height: 2; /* Changes line height to 2 */
    text-align: justify; /* Justifies the text, spreading lines evenly */
    list-style-type: none;
}



.ref-popover {
  z-index: 500;
  display: none; /* Start hidden, let jQuery handle showing */
  position: absolute;
  max-width: 800px !important; /* Maximum width */
  width: 80% !important; /* Width relative to viewport */
  max-height: 500px; /* Maximum height */
  background-color: #f9f9f9; /* Background color */
  border: 1px solid #ccc; /* Border */
  border-radius: 5px; /* Border radius */
  padding: 10px; /* Padding */
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2); /* Box shadow */
  transition: fadeIn 0.3s ease-in-out; /* Corrected transition */
}

.ref_sup{
    cursor: pointer;
}


.search-icon{
    opacity: 0.3;
    cursor: pointer;
    transition: opacity 1s ease;
}

.search-icon:hover{
    opacity: 1;
}


.search-conrols{
    opacity: 0;
    cursor: arrow;
    transition: opacity 0.5s ease;
}

.search-conrols.active{
    opacity: 0.5;
    cursor: pointer;
}


.search-conrols.active:hover{
    opacity: 1;
}


.search-conrols.side_tools{
    translate: inherit;
    position: absolute;
    top: -20px;
    left: 18px;
    background: #5a4646 !important;
}


.search-conrols.video-card-pill{
    translate: inherit;
    position: absolute;
    background: #a54747 !important;
    z-index: 10;
    right: -12px;
    top: -12px;
}


.search-conrols.video-card-pill.active{
    opacity: 1;
 }

.search-box-container {
    position: relative;
    left: 10px;
    width: 0; /* Initially hidden */
    overflow: hidden;
    transition: width 0.5s ease; /* Smooth transition for sliding in */
}

.search-box.form-control {
    width: 300px; /* Desired width of your search box */
    /*border: 2px solid #fff; /* Style as needed */
    background-color: #ffffff45;
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #63616138;
transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
  color: #1a1b1bab;

    /*background-color: #231f20;
    color: #fff;
    border-radius: 0 25px 25px 0; /* Rounded corners to match the banner */
}

.search-box.form-control:focus {
border: 1px solid #514f4f78;
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0); /* Box shadow */
  color: #1a1b1bab;


}

.search-box-close {
    position: absolute;
    top: 8px;
    right: 4px;
    border: none;
    background-color: transparent;
    /*color: gray;*/
    opacity: 0.3;
    transition: opacity 0.5s ease;

    cursor: pointer;
}


.search-box-close:hover{
    opacity: 0.7;
}

.search-suggestions {
    position: absolute;
    background-color: #fff;
    width: 100%;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    display: none; /* Hide by default */
    border-radius: 4px;
    border: 1px solid #63616138;
}

.search-suggestions div {
    padding: 10px;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.3s ease;

}

.search-suggestions div:hover {
    background-color: #ddd;
}


.search-suggestions div.selected {
    background-color: #ddd;
}


    .overlay {
            position: absolute;
    width: 80vh;

    /*background-image: repeating-linear-gradient(0deg, rgb(68 76 247 / 37%), rgb(68 76 247) 1px, rgb(229 229 247 / 0%) 1px, rgb(229 229 247 / 12%));
    background-size: 20px 20px;*/
    top: 60px;
    left: 60px;


    }




.gallery-btn-search-pill {
    margin: 7px;
    background-color: grey;
    border-radius: 3px;
    color: white;
    font-family: 'Serpentine W04 Bold';
    font-size: 11px;
    left: 62px !important;
    margin: 7px;
    padding: 3px 8px;
    position: absolute;
}


