.audio-book {
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently supported by Chrome, Opera, and Firefox */
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 20px;
    line-height: 1.6;
    max-width: 800px;
    margin: 20px auto;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    
    /* Add scrolling behavior */
    max-height: 80vh; /* Adjust as needed */
    overflow: auto;
    position: relative;
}

.audio-book audio {
    position: sticky;
    top: 0; /* Keeps the audio player at the top of the container */
    background: #fff;
    z-index: 10; /* Ensures it stays above other content */
    width: 100%; /* Optional: adjust width to fit inside container */
    padding: 5px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}
.audio-book .japanese-word{
	color:#73726f;
}

.audio-book .japanese-word:hover {
    /*width: fit-content;
    max-width: 20em;*/
	/*color: #F2F2F0;*/
	background-color: #D9D8D7;
}

.audio-book .custom-tooltip{
	font-size: 0.7em;
	line-height: 0.8em;
	/*min-width: fit-content;
    max-width: 20em;*/
	bottom: 160%;
	line-height: 1.05em;
}

.audio-paragraph {
    margin-top: 10px;
	font-size: 1.8em;
	line-height:2.5;
}
.audio-book h3 {
    font-size: 2.5em !important;
    font-weight: bold;
    margin-top: 20px;
}
.audio-paragraph h3 ruby{
    font-size: 2.5em !important;
    font-weight: bold;
    margin-top: 20px;
}
.audio-segment.highlight {
    background-color: hsla(102, 62%, 85%, 0.5);
	border-radius: 15px;
	
}
.audio-book-main-image img {
    max-width: 100%;
	margin-top: 5px;
    margin-bottom: 5px;
}

.audio-inline-image {
    max-width: 150px;
    float: right;
    margin: 0 0 10px 10px;
}
