body {
    font-family: 'Caudex', serif;
    font-size: 1.3rem;
    line-height: 1.5;
}

h1 {
    text-align: center;
    color: black;
    font-size: 3.5rem;
}
h2 {
    /*text-align: center;*/
    color: black;
    padding-bottom: 0;
    font-size: 2.3rem;
}
h3 {
    /*text-align: center;*/
    color: #444;
    padding-top: 20px;
    font-size: 2.0rem;
}
h4 {
    text-align: left;
    color: #444;
    padding-top: 20px;
    font-size: 1.7rem;
}

.center-img {
    display: block;
    margin: 0 auto;
}

.content-section.footer {
    text-align: center;
    font-size: 0.9rem;
    color: #222;
}

.with-icon {
    display: inline-flex; /* Align icon and text inline */
    align-items: center; /* Vertically align the text and icon */
    gap: 8px; /* Space between the icon and text */
}

.with-icon::before {
    content: '';
    display: inline-block;
    width: 24px; /* Adjust icon size */
    height: 24px; /* Adjust icon size */
    background-image: url('/common/favicon.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.content-section {
    max-width: 800px;
    margin: 20px auto;
    text-align: left;
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 40vh; /* Ensures the wrapper covers the viewport height */
}

.dropcap {
    float:left;
    color: #903;
    font-size: 60px;
    line-height: 60px;
    padding-top: 1px;
    padding-right: 4px;
}

@font-face {
    font-family: 'Bravura';
    src: url('../scales/Bravura.otf') format('opentype');
}

/* Text Above and Below Notes */
.note-label {
    display: inline-block;
    margin-top: 5px;
    font-weight: bold;
    font-size: 0.9rem;
    color: #666;
}

/* Music Display Area */
#music-display {
    margin: 20px 0;
    padding: 10px;
    background: #fafafa;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow-x: auto;
}

.tabs {
    display: flex;
    border-bottom: 2px solid #6b4a27; /* Medieval-styled border */
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    border: 2px solid #6b4a27; /* Border for each tab */
    border-bottom: none; /* Remove bottom border for a tab-like effect */
    background-color: #f4e3c2; /* Light parchment color for inactive tabs */
    color: #6b4a27; /* Text color */
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    border-radius: 8px 8px 0 0; /* Rounded corners at the top */
    margin-right: 5px; /* Space between tabs */
    transition: background-color 0.3s ease, color 0.3s ease;
}

.tab.active {
    background-color: #6b4a27; /* Rich medieval brown for active tab */
    color: #fff; /* White text for active tab */
    z-index: 1; /* Bring active tab on top */
}

.tab:hover {
    background-color: #d6c2a6; /* Slightly darker hover effect for inactive tabs */
    color: #6b4a27; /* Maintain text color */
}

.tab-content {
    border: none; /* Remove the border around the content */
    padding: 20px; /* Add padding inside the content area */
    margin: 0; /* Ensure no extra margins are causing space */
    background-color: transparent; /* Transparent background for tab content */
}

.table-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

table {
    margin: 0 auto;
    border-collapse: collapse;
    width: 60%;
}

th, td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: right;
}

th {
    background-color: #d6c2a6;
}

.header-bg {
    background-color: #d6c2a6;
}

th, td {
    border: 1px solid #ddd;
    text-align: center;
    padding: 8px;
}

.right {
    text-align: right;
}
.center {
    text-align: center;
}
.left {
    text-align: left;
}

.breadcrumbs {
    display: flex; /* Enables flexbox layout */
    justify-content: center; /* Horizontally centers the content */
    align-items: center; /* Vertically aligns the items */
    padding-top: 20px;
    /*gap: 0.5rem; !* Adds spacing between breadcrumb items *!*/
    /*font-size: 1rem; !* Adjust font size if needed *!*/
}

.breadcrumbs span,
.breadcrumbs a {
    text-decoration: none;
    color: #6b4a27; /* Link color */
}

.breadcrumbs a:hover {
    text-decoration: underline; /* Add underline on hover for links */
}

/*.breadcrumbs span {*/
/*    color: #555; !* Non-link breadcrumb item color *!*/
/*}*/

#separator {
    text-align: center;
    /*padding-top: 20px;*/
    padding-bottom: 30px;

}

figure {
    text-align: center; /* Centers the image and caption */
    margin: 20px 0; /* Adds spacing around the figure */
}

figcaption {
    /*font-size: 0.9rem; !* Smaller font for captions *!*/
    /*color: #555;*/
    margin-top: 5px; /* Space between image and caption */
    font-style: italic; /* Optional: italicize the caption */
}

.footnote {
    /*font-size: 0.85rem; !* Slightly smaller font size for footnotes *!*/
    margin-top: 20px;
    border-top: 1px solid #ddd;
    padding-top: 10px;
}

.footnote-ref {
    text-decoration: none;
    color: inherit;
    vertical-align: super; /* Makes it a superscript */
    font-size: 1.0rem; /* Smaller font size for superscripts */
}

.footnote-ref:hover {
    text-decoration: underline; /* Optional: underline on hover */
}

.footnote-separator {
    width: 50%; /* Adjust the width as needed */
    /*border: none; !* Remove default border *!*/
    height: 5px; /* Line thickness */
    /*background-color: #ddd; !* Line color *!*/
    margin: 10px auto; /* Center the line and add vertical spacing */
    opacity: 1;
}

.image {
    text-align: center;
}

.button {
    background-color: #6b4a27;
    color: white;
    cursor: pointer;
}

.button:hover {
    background-color: #d6c2a6;
}

.button-sm  {
    display: inline-block;
    padding: 3px 4px;
    margin: 3px;
    color: #fff;
    background-color: #6b4a27;
    border-radius: 2px;
    text-decoration: none;
    text-align: center;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.button-sm:hover   {
    background-color: #d6c2a6;
}


.download-icon-button {
    font-size: 0.8em; /* Scale down the font size */
    padding: 4px 8px; /* Adjust padding to make the button smaller */
    border-radius: 4px; /* Optional: Reduce border radius for smaller buttons */
}

.download-icon-button i, .download-icon-button svg {
    font-size: 1.2em; /* Adjust icon size if using an icon */
}

.download-icon-button:hover {
    background-color: #0056b3; /* Optional: Change hover effect color */
}
