@font-face {
  font-family: DoulosSILW;
  src: url(DoulosSIL-Regular.woff2);
}
@font-face {
  font-family: DoulosSILW;
  font-style: italic;
  src: url(DoulosSIL-Regular.woff2);
}

html,
body {
}

body {
  font-size: 16px;
  font-family: DoulosSILW, Arial, Helvetica, sans-serif;
  margin-top: 5px;
  background-color: #e5e7e5; /* #aac3ad; */
}

/* .container-fluid {
  width: 90%;
  max-width: 90%;
} */

/* .widget_alignment {
  float: left;
  width: 900px;
}

.widget_alignment_left {
  float: left;
  width: 750px;
}

.widget_alignment_right {
  float: left;
  padding-left: 50px;
  width: 500px;
} */

#title {
  font-family: DoulosSILW, "Times New Roman", Times, serif;
  /* font-weight: bold; */
  font-size: 28px;
  padding-left: 20px;
}

#subtitle {
  font-family: DoulosSILW, "Times New Roman", Times, serif;
  /* font-style: italic; */
  font-size: 20px;
  padding-left: 20px;
}

.clear {
  clear: both;
}

.vertical_ledding {
  height: 10px;
}

.state_button {
  font-size: 120%;
  font-weight: bold;
  color: #0000ff;
}

.state_button:disabled,
.state_button[disabled] {
  font-size: 120%;
  font-weight: normal;
  color: #cccccc;
}

.section_header {
  margin-bottom: 10px;
  font-weight: bold;
  font-size: 20px;
}

/* -------------------------------------------------------------------- */

#create_tool_bar {
  display: none;
  /* padding-left: 10px; */
}

div:has(> .widget_label) {
    display: flex;
    justify-content: space-between;
  }

.widget_label {
  display: inline-block;
}

.dropdown_widget {
  width: 100px;
}

.text_widget {
  /* width: 300px; */
}

.harmony_input {
  width: 100px;
}

/* -------------------------------------------------------------------- */

#edit_tool_bar {
  display: none;
}

.text_button {
  width: 160px;
  border: 1px solid gray;
  color: #000000;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  margin: 2px;
  padding: 1px;
  border-radius: 5px;
}

.note_button {
  /*   width: 34px;
  border: 1px solid gray;
  cursor: pointer;
  margin: 0px;
  padding: 1px;
  border-radius: 4px; */
}

button:focus {
  outline: none;
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.5); /* Add a glowing effect */
}

.btn:disabled {
  background-color: #00000022;
}

#add_note_btn-group {
  display: flex;
}
#add_note_btn-group .btn {
  height: 50px;
  width: 140px; /* Set a fixed width for all buttons in this group */
  text-align: center; /* Center-align the content inside the buttons */
  overflow: visible; /* Allow content to overflow if necessary */
  align-items: center; /* Vertically center content */
}
#add_note_btn-group #add_change_note_button {
  width: 140px; /* Set the desired width */
  flex-shrink: 0; /* Prevent it from shrinking */
  font-size: 17px;
}
#add_note_btn-group img {
  width: 35px; /* Set the desired width */
  margin-top: -15px;
  align-items: center;
}

#accidental_btn-group {
  display: flex; /* Use flexbox for layout */
}
#accidental_btn-group .btn {
  width: 50px; /* Keep the fixed width */
  height: 50px; /* Keep the fixed height */
  text-align: center; /* Center-align the text */
  font-size: 30px; /* Increase the text size */
  line-height: 1; /* Prevent the text from increasing the button height */
  flex-grow: 1; /* Allow buttons to grow and fill the remaining space */
  display: flex; /* Use flexbox for alignment */
  align-items: center; /* Vertically center the text */
  justify-content: center; /* Horizontally center the text */
}
#accidental_btn-group #change_note_button {
  width: 140px; /* Set the desired width */
  flex-shrink: 0; /* Prevent it from shrinking */
  font-size: 17px;
}
#accidental_btn-group #accidental_button_two_sharps {
  font-size: 3rem;
  padding-top: 30px;
}
#accidental_btn-group #tie_button img {
  width: 120%;
  height: 120%;
  margin-left: -3px;
}

#measure_btn-group {
  margin-left: 140px;
}

#measure_btn-group .btn {
  height: 55px; /* Increase button height by 20% (original was 50px) */
  width: 75px; /* Increase button width by 20% (original was 100px) */
  text-align: center; /* Center-align the content inside the buttons */
  display: flex; /* Flexbox for alignment */
  align-items: center; /* Vertically center content */
  justify-content: center; /* Horizontally center content */
  font-size: 1.2em; /* Scale text size by 20% */
  padding-left: 2px;
  padding-right: 2px;
  padding-top: 2px;
  padding-bottom: 2px;
  margin: 0px;
}

#measure_btn-group img {
  width: 85%; /* Set SVG width relative to the button */
  height: 85%; /* Set SVG height relative to the button */
}

#measure_btn-group #change_key_button {
  width: 40%;
}

.parenthesis_button {
  text-align: center; /* Center-align the text inside the button */
  align-items: center; /* Vertically center content */
  /* padding-top: -30px; */
  font-size: 24px; /* Increase the font size */
  color: black;
}
#annotate_btn-group {
  display: flex;
}
#annotate_btn-group .btn {
  height: 50px;
  width: 140px; /* Set a fixed width for all buttons in this group */
  text-align: center; /* Center-align the content inside the buttons */
  overflow: visible; /* Allow content to overflow if necessary */
  align-items: center; /* Vertically center content */
}
#annotate_btn-group #clear_annotations_button {
  width: 140px; /* Set the desired width */
  flex-shrink: 0; /* Prevent it from shrinking */
  font-size: 17px;
  color: black;
}
#annotate_btn-group img {
  width: 100%;
  height: 100%;
  margin-left: -3px;
}

#annotate_info-group {
  display: flex;
}

.bold-outline {
  border: 2px solid #404040;
}

#active-measure-selection {
  position: absolute;
  border-radius: 5px;
  border: 3px solid #ff0000;
  background: #ff000010;
  pointer-events: none;
}

#select-boxes {
  position: relative;
}

#rulesForm * {
  z-index: 1;
}

.rule-box {
  position: relative;
}

#draw_here {
  display: none;
  padding-left: 0px;
  max-width: 100%;
  overflow-x: scroll;
  overflow-y: hidden;
  margin-bottom: 1px;
  margin-top: 5px;
  border: 2px solid #ccc; /* Optional: Add a border around the drawing area */
  background-color: #ffffff;
  border-radius: 5px;
  height: 350px;
  max-height: 350px;
  position: relative;
}

#draw_here svg {
  position: relative;
}

#svg_placeholder {
  position: relative;
}

#title_logo {
  display: flex;
  align-content: center;
  padding-left: 120px;
  max-width: 100%;
  overflow-x: auto;
  margin-bottom: 1px;
  margin-top: 5px;
  border: 2px solid #ccc; /* Optional: Add a border around the drawing area */
  border-radius: 5px;
  background-color: #ffffff;
  height: 350px;
  max-height: 350px;
  overflow: hidden;
}

/* -------------------------------------------------------------------- */

#evaluate_tool_bar {
  display: none;
}

.evaluate_text_button {
  width: 200px;
  border: 1px solid gray;
  color: #000000;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  margin: 2px;
  padding: 1px;
  border-radius: 5px;
}

#results {
  display: none;
  padding: 10px;
  /* margin-left: 10px; */
  background-color: #ffffff;
  border: 1px solid gray;
  border-radius: 5px;
  /* width: 48%; */
  /* line-height: 50%; */
  max-height: 150px;
  overflow: scroll;
}

#results p {
  margin: 0px;
}

#parses {
  display: none;
  padding-left: 20px;
}

.evaluate_btn_group {
  margin-top: 10px;
  border: rgba(0, 0, 0, 0.2) 1px solid;
  flex-wrap: wrap;
  display: flex;
  text-align: center;
}

.evaluate_btn_group .btn {
  border-radius: 0%;
}

/* -------------------------------------------------------------------- */

#measure_numbers,
#measure_numbers tr,
#measure_numbers td {
  padding: none;
  border: none;
  border-spacing: 0;
}

.measure_numbers {
  z-index: -1;
}

.measure_number {
  color: #000000;
  font: bold 12px sans-serif;
}

#user_xml {
  display: none;
}

div.card-body {
  padding-left: 20px;
}

h1.ruleH1 {
  color: darkgreen;
  font-weight: bold;
  font-size: 19px;
  padding-left: 0px;
}

h2.ruleH2 {
  color: darkred;
  font-weight: bold;
  font-size: 19px;
  padding-left: 0px;
}

h3.ruleH3 {
  color: black;
  font-weight: bold;
  font-size: 17px;
  padding-left: 0px;
}

.rule_labeled {
  list-style-type: none;
  font-size: 17px;
  padding-left: 24px;
  padding-right: 20px;
  text-indent: -24px;
}
.rule_labeled li::before {
  content: attr(data-bullet) ". ";
}
.rule_labeled_b {
  list-style-type: none;
  font-size: 17px;
  padding-left: 24px;
  padding-right: 20px;
  text-indent: -24px;
}
.rule_labeled_b li::before {
  content: attr(data-bullet) " ";
}

.toast-container {
  z-index: 1090;
  position: fixed !important;
  top: 20px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  bottom: auto !important;
  right: auto !important;
  width: auto !important;
}

.toast {
  min-width: 300px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#rules-content {
  margin-top: 5px;
  /* margin-left: -8px; */
  /* margin-right: -8px; */
  height: auto;
  /* border: 1px solid #dee2e6; */
  border-radius: 5px;
  padding-left: 10px;
  padding-right: 0px;
  background-color: #ffffff;
  overflow-y: auto;
  max-height: 500px;
  display: none;
  width: flex;
}

#rules-dropdown {
  position: sticky;
  top: 0;
  z-index: 1000; /* Ensure it stays above other elements */
  border-radius: 5px;
  border: solid #888; /* Optional: Add a border around the dropdown */
  box-shadow: none;
}

#toolbars {
  margin: 0px;
}

.tool_bar {
  height: 270px;
  overflow: hidden;
  position: relative; /* Ensure the height stays constant */
  padding-left: 20px;
  border: 1px solid #ccc; /* Optional: Add a border around the tool bar */
  border-radius: 5px;
  padding-right: 20px;
  padding-top: 5px;
}

#edit_tool_bar .row {
  display: flex;
  flex-wrap: nowrap;
  margin-right: 0;
  margin-left: 0;
}

#edit_tool_bar .col-md-8 {
  flex: 0 0 auto;
  width: 66.666%;
}

#edit_tool_bar .col-md-4 {
  flex: 0 0 auto;
  width: 33.333%;
  position: relative;
}

#interface_buttons {
  margin-top: 5px;
  display: none;
}

#interface_buttons .btn {
  font-size: 17px;
}

#interface-pane {
  padding-left: 0px;
  padding-right: 12px;
}

@media (min-width: 768px) {
  #rules-content {
    position: sticky;
    top: 20px;
  }
}

#name_input {
  display: none;
  padding-left: 0px;
}

#interpret_rule_dropdown {
  width: 50px;
}

#playback_section {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-top: 3px; /* Add spacing above the playback section */
  text-align: center; /* Center-align the playback controls */
  border: 1px solid #ccc; /* Optional: Add a border around the playback section */
  border-radius: 5px;
  padding-top: 5px;
  padding-bottom: 5px;
  padding-right: 20px; /* Center*/
}
#playback_controls .btn {
  width: 50px; /* Set consistent button width */
  height: 50px; /* Set consistent button height */
  display: flex; /* Use flexbox for alignment */
  align-items: center; /* Vertically center content */
  justify-content: center; /* Horizontally center content */
  margin: 0px;
  border: 1px solid #888; /* Optional: Add a border around the buttons */
}
#playback_controls img {
  width: 24px; /* Set the size of the icons */
  height: 24px;
}
#start_over_button {
  height: 40px;
  width: 140px;
  float: left;
  margin-left: 0px;
  align-items: center;
  margin-bottom: auto;
  margin-top: 0px;
  display: none;
  font-size: 17px;
}

/* -------------------------------------------------------------------- */

.rule-box {
  position: absolute;
}

input.rule-input {
  width: 28px;
  height: 24px;
}

/* -------------------------------------------------------------------- */

#helpNavbar {
  position: fixed;
  height: 100%;
  margin: 0px;
  padding: 0px;
}

#helpNavbar .nav-link {
  padding: 0.25rem 0.5rem;
}

#helpContent {
  /* padding-left: 200px; */
  padding-top: 2rem;
}

#helpContent h2 {
  font-weight: 400;
}

span.inline-button {
  padding: 0.2rem 0.5rem;
  color: #000000;
}

.inline-button img {
  height: 1.25rem;
  width: auto;
}