* {
    box-sizing: border-box;
    scroll-margin-top: 120px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans', sans-serif;
    margin: 100px 0 0 0;
    background-color: rgb(255, 248, 238);
	color: rgb(0, 0, 0);
}

h1, h2, h3, h4, h5, h6, #heroText, ul.chapterList li a, ul.verseList li a {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
}

article.notes h2 {
    color: rgb(6, 103, 18);
}

html.source-serif-4-font {
    font-family: 'Source Serif 4', serif;
}

html.source-serif-4-font body,
html.source-serif-4-font select,
html.source-serif-4-font button,
html.source-serif-4-font input,
html.source-serif-4-font textarea,
html.source-serif-4-font article.interlinears h4.interlinearVerseNumber + ul li ul li:last-of-type {
    font-family: 'Source Serif 4', serif !important;
}

html.noto-serif-font {
    font-family: 'Noto Serif', serif;
}

html.noto-serif-font body,
html.noto-serif-font select,
html.noto-serif-font button,
html.noto-serif-font input,
html.noto-serif-font textarea,
html.noto-serif-font article.interlinears h4.interlinearVerseNumber + ul li ul li:last-of-type {
    font-family: 'Noto Serif', serif !important;
}

html.noto-sans-font {
    font-family: 'Noto Sans', sans-serif;
}

html.noto-sans-font body,
html.noto-sans-font select, select,
html.noto-sans-font button,
html.noto-sans-font input,
html.noto-sans-font textarea,
html.noto-sans-font article.interlinears h4.interlinearVerseNumber + ul li ul li:last-of-type {
    font-family: 'Noto Sans', sans-serif !important;
}

main  {
    padding: 0 1rem;
}

main article {

    max-width: 1250px;
	margin: 0 auto 2rem auto;
	padding: 0 0 5rem 0;
	border-radius: 1.1rem;
	min-height: 100vh;

	background-color: rgb(255, 255, 255);
	box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);

}

main article.homePage {
    display: flex;
    flex-direction: column;
}

main article.homePage figure {
    margin-bottom: 0;
}

main article section {
    padding: 4rem 0 5rem 0;
}

main article section:first-of-type {
    padding-top: 0;
}

main article.text section:first-of-type {
    padding-bottom: 0;
}

main article div#hero + section:first-of-type {
    padding-top: 4rem;
}

main article section:nth-of-type(even) {
    background-color: rgb(247, 245, 241);
}

main article section:last-of-type {
	border-radius: 0 0 1.05rem 1.05rem;
    margin-bottom: -5rem;
}

main article nav#breadcrumbs {
    margin: 0 0 4rem 0;
    width: 100%;
    background-color: rgb(225, 233, 236);
    color: rgb(0, 0, 0);
    padding: 1rem 1.5rem;
    border-radius: 1.2rem 1.2rem 0 0;
    font-size: 1rem;
}

main article nav#breadcrumbs span.topRightLinks {
    display: block;
    float: right;
}

p, ul, ol, h4, blockquote {
    margin-left: 5rem;
    margin-right: 0;
    max-width: 100ch;
}

blockquote p {
    margin-left: 2rem;
}

blockquote blockquote, blockquote blockquote blockquote, blockquote blockquote blockquote blockquote, blockquote blockquote blockquote blockquote blockquote {
    margin-left: 2rem;
}

a, a:link, a:visited {
    color: rgb(0, 115, 165);
    transition: color 0.15s;
    text-decoration: none;
}

a:hover {
    color: rgb(0, 76, 109);
    text-decoration: underline;
}

a[target="_blank"]::after {
    content: '\f35d';
    font-family: 'Font Awesome 6 Free';
    font-size: 0.5rem;
    font-style: normal;
    font-weight: 900;
    display: inline;
    margin-left: 0.1rem;
    vertical-align: super;
}

a[href^="#"]::after {
	content: '\f292';
    font-family: 'Font Awesome 6 Free';
    font-size: 0.5rem;
    font-style: normal;
    font-weight: 400;
    display: inline;
    margin-left: 0.1rem;
    vertical-align: super;
}

a[href*="wikipedia.org"]:link, a[href*="wikipedia.org"]:visited {
    text-decoration: none;
}

a[href*="wikipedia.org"]:hover {
    text-decoration: underline;
	text-decoration-style: dotted;
	text-underline-offset: 2px;
}

a[href*="wikipedia.org"]::after {
    content: '\f266';
    font-family: 'Font Awesome 6 Brands';
    font-size: 0.5rem;
    vertical-align: super;
    font-weight: normal;
    margin-left: 0;
}

a[target="_blank"]:hover {
    text-decoration: underline;
	text-decoration-style: dotted;
	text-underline-offset: 2px;
}

a[href="/about/brackets#look"]:link, a[href="/about/brackets#look"]:visited, a[href="/about/brackets#look"]:link mark, a[href="/about/brackets#look"]:visited mark {
    color: rgb(0, 0, 0);
}

nav a[href^="#"]::after {
	content: '';
}

a:link mark, a:visited mark {
    color:rgb(0, 115, 165);
}

article a[href*="/notes/"], article a[href*="/notes/"] mark,
#floating-preview a[href*="/notes/"], #floating-preview a[href*="/notes/"] mark {
    color: rgb(0, 83, 10);
}

article a[href*="/notes/"]:hover, article a[href*="/notes/"]:hover mark, article a[href*="/notes/"]:focus, article a[href*="/notes/"]:focus mark, article a[href*="/notes/"]:active, article a[href*="/notes/"]:active mark, article a[href*="/notes/"]:hover span,
#floating-preview a[href*="/notes/"]:hover, #floating-preview a[href*="/notes/"]:hover mark, #floating-preview a[href*="/notes/"]:focus, #floating-preview a[href*="/notes/"]:focus mark, #floating-preview a[href*="/notes/"]:active, #floating-preview a[href*="/notes/"]:active mark, #floating-preview a[href*="/notes/"]:hover span {
	color: rgb(0, 110, 13);
	text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-style: solid;
}

a[href*="commentaries.2001translation.org"]:link, a[href*="commentaries.2001translation.org"]:visited,
#floating-preview a[href*="commentaries.2001translation.org"]:link, #floating-preview a[href*="commentaries.2001translation.org"]:visited {
    color: rgb(16, 61, 99);
    text-decoration: none;
}

a[href*="commentaries.2001translation.org"]:hover {
    color: rgb(31, 111, 177);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-style: solid;
}

#floating-preview a[href*="commentaries.2001translation.org"]:hover, #floating-preview a[href*="commentaries.2001translation.org"]:focus {
    color: rgb(16, 61, 99); /* Keep the same color on hover for commentaries in basics */
    text-decoration: underline;
}

a[target="_blank"][href*="commentaries.2001translation.org"]::after {
    content: '';
}

input[type="text"], input[type="number"], textarea {
	border: none;
	font-family: 'Noto Sans', sans-serif;
	box-shadow: inset 0 1px 2px rgb(181, 181, 181);
	padding: 0.25rem;
	border-radius: 0.5rem;
}

input[type="text"]:focus, textarea:focus {
	outline: none;
	background-color: rgb(255, 234, 151);
}

h1, h2, h3, h4, h5, h6, p, ul, ol {
    margin-left: 5rem;
    margin-right: 5rem;
}

h1 {

}

h2 {
    font-size: 2.2rem;
}

img.mainImage {
    display: block;
    float: right;
    border-radius: 5%;
    width: 22rem;
    height: 22rem;
    margin: 0 5rem 3rem 3rem;
    background-size: cover;
    background-position: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

h3 {
    font-size: 1.5rem;
    margin: 0 5rem 2rem 5rem;
    width: calc(100% - 10rem);
}

p + h3, ul + h3, ol + h3, h3 + h3, div + h3, blockquote + h3 {
	margin-top: 3rem;
}

h3.lined {
	border-bottom: 2px solid rgb(0, 0, 0);
}

h3.subtitle {
    font-size: 1.5rem;
    margin-top: -1rem;
    color: rgb(100, 100, 100);
    width: calc(100% - 10rem);
}

h4 {
	font-size: 1.2rem;
	margin-top: 0;
	margin-bottom: 1rem;
}

p + h4, ul + h4, ol + h4, div + h4, blockquote + h4, figure + h4 {
	margin-top: 3rem;
}

h5 {
	font-size: 1.1rem;
	text-transform: uppercase;
	margin-top: 3rem;
	margin-bottom: 1rem;
	letter-spacing: 0.1rem;
}

h6 {
	font-size: 1.1rem;
	margin-top: 1.8rem;
	margin-bottom: 1rem;
	font-weight: 700;
    font-style: italic;
}

ul, ol {
	padding-left: 2rem;
    margin-bottom: 0;
}

ul ul {
    margin-left: 0;
}

ul li, ol li {
	margin-bottom: 0.3rem;
}

ul ul {
    margin-top: 0.5rem;
}

ul li p, ol li p {
    margin-left: 0;
}

ol li ul {
    margin-left: 0;
}

ul.chapterList, ul.verseList {
    padding: 0;
    margin: 2rem 5rem 5rem 5rem;
    list-style-type: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(3rem, 1fr));
    gap: 0.4rem;
    max-width: none;
}

ul.verseList {
    grid-template-columns: repeat(auto-fill, minmax(5rem, 2fr));
    margin-top: 0;
}

#chapters-panel-list ul.chapterList, #verses-panel-list ul.verseList {
    margin: 0;
}

#verses-panel-list ul.verseList ul {
    margin: 0;
}

ul.chapterList li, ul.verseList li {
    margin: 0;
    padding: 0;
}

ul.chapterList li a:link, ul.chapterList li a:visited, ul.verseList li a:link, ul.verseList li a:visited {
    display: block;
    width: 100%;
    text-align: center;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.3rem;
    background-color: rgb(23, 159, 217);
    color: rgb(255, 255, 255);
    padding: 0.05rem 0rem 0rem 0rem;
    border-radius: 0.3rem;
    text-shadow: 0 -1px 1px rgba(0, 0, 0, 0.5);
}

ul.chapterList li a.current {
    background-color: rgb(254, 219, 4);
    color: rgb(0, 0, 0);
    text-shadow: none;
}

ul.verseList li a:link, ul.verseList li a:visited {
    background-color: rgb(247, 245, 241);
    color: rgb(0, 132, 189);
    border: 1px solid rgb(0, 132, 189);
    font-size: 1rem;
    text-shadow: none;
    padding: 0.1rem 0rem 0rem 0rem;
}

ul.chapterList li a:hover, ul.verseList li a:hover {
    background-color: rgb(0, 132, 189);
    color: rgb(255, 255, 255);
}

ul.chapterList a[href^="#"]::after, ul.verseList a[href^="#"]::after {
	content: '';
}

p, li, blockquote {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

span.smallCaps {
    font-size: 0.9em;
}

span.indent {
    display: inline-block;
	padding-left: 0.8rem;
}

p.note {
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 0;
    margin-bottom: 1rem;
}

figure {
    width: 30%;
    max-width: 256px;
    float: right;
    margin: 0.2rem 5rem 2rem 2rem;
}

figure p {
    margin: 0;
}

figure img {
    width: 256px;
    height: 256px;
    border-radius: 0.5rem;
    background-color: rgb(175, 175, 175);
}

figure figcaption {
    font-size: 1rem;
    font-style: italic;
    text-align: right;
    color: rgb(100, 100, 100);
    margin-top: 0rem;
    padding-left: 1rem;
}

figure img.sideImage {
    margin-top: 1rem;
}

hr {
    border: none;
    border-top: 1px solid rgb(179, 179, 179);
    border-bottom: 1px solid rgb(226, 226, 226);
    margin: 4rem 0;
    clear: both;
}

button, a.button {
    display: inline-block;
	border-radius: 0.5rem;
    padding: 0.5rem 2rem;
    background-color: rgb(254 219 4);
    color: rgb(0, 0, 0);
    border: 0;
	box-shadow: 0 2px 3px rgba(0, 0, 0, 0.5);
    font-weight: 700;
    font-size: 1.2rem;
    cursor: pointer;
    font-family: "Noto Sans", sans-serif;
	transition: box-shadow 0.1s linear, background-color 0.1s linear, color 0.1s linear;
}

button:hover, a.button:hover {
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    text-decoration: none;
}

::selection {
    background-color: rgb(255, 204, 0);
}

mark {
    background-color: rgb(255, 240, 180);
}

mark s, s mark {
    color: rgb(167, 167, 167);
}

.clear-highlight {
	position: fixed; /* Changed from float */
	bottom: 20px; /* Position from bottom */
	left: 20px; /* Position from left */
	z-index: 1000; /* Ensure it's on top */

	display: block; /* Ensure block display */
	padding: 0.5rem 1rem; /* Adjust padding for text */
	border: 0;
	box-shadow: 0 2px 3px rgba(0, 0, 0, 0.5);

	color: rgb(0, 0, 0); /* Changed from icon color */
	background-color: rgb(254 219 4); /* Keep yellow background? */
	border-radius: 0.5rem;
	transition: box-shadow 0.1s linear;

	font-family: "Noto Sans", sans-serif;
	font-size: 1rem; /* Adjusted font size */
	font-weight: 700;

	cursor: pointer;
}

.clear-highlight:hover {
	color: #000;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

/* Full-screen image overlay */
.full-screen-overlay {

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;

}

.full-screen-overlay.visible {

    opacity: 1;

}

.full-screen-image {

    max-width: 90%;
    max-height: 90%;
    border: 2px solid white;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    opacity: 0; /* Initially hidden */
    transition: opacity 0.3s ease-in-out; /* Smooth fade-in */

}

.full-screen-close {

    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 50px;
    cursor: pointer;
    z-index: 10000;

}

.full-screen-spinner {

    color: white;
    font-size: 4rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

}