@import url(https://fonts.googleapis.com/css?family=Montserrat:400,700);


html,
body {
  padding: 0;
  margin: 0;
  overflow-y: hidden;
}

/* ROOT VARIABLES */
:root {
  --header_content_height: 48px;
  --header_content_padding: 4px;
  --header_height: calc(var(--header_content_height) + var(--header_content_padding) * 2);
  --color1: #00e2a0;
  --color1-dark: hsl(163 100% 29% / 1);
  --color2: hsl(177 88% 41% / 1);
  --color2-dark: hsl(177 88% 27%);
  --color2-light: hsl(177 88% 50%);
  --colorErr: hsl(352 100% 58% / 1);
  --colorErr-dark: hsl(352 100% 38% / 1);
  --sidebarOnlyW: 235px;
  --sidebarButtonsW: calc(34px + 12px);
  --sidebarW: calc(var(--sidebarOnlyW) + var(--sidebarButtonsW))
}

/* LAYOUT */
#main_container {
  position: relative;
  width: 100%;
  min-height: 100vh;
  left: 0;
  display: flex;
  flex-flow: row wrap;
}

header {
  width: calc(100% - 32px);
  overflow-x: scroll;
  overflow-y: hidden;
}

#sidebar_and_content_container {
  flex-grow: 1;
  display: flex;
  position: absolute;
  top: var(--header_height);
  height: 100%;
  width: 100%;
}

#sidebar {
  width: var(--sidebarW);
  height: calc(100vh - var(--header_height));
  transition: width 250ms;
  display: grid;
  grid-template-rows: auto 1fr;
}

#sidebar.hidden {
  width: 0;
  white-space: nowrap;
}

#page_content {
  position: relative;
  width: calc(100% - 235px);
  display: flex;
  flex-flow: column;
  height: calc(100vh - var(--header_height));
  overflow-y: scroll;
  overflow-x: hidden;
  flex-grow: 1;
  z-index: 2;
}

#tunes_container {
  flex-grow: 1;
  position: relative;
}

/* links */
a {
  color: var(--color2);
}

/* HEADER */
header {
  background: #333;
  position: sticky;
  top: 0;
  z-index: 102;
  color: #fff;
  padding: var(--header_content_padding) calc(var(--header_content_padding) * 4);
  padding-left: 0;
  padding-right: 0;
  height: var(--header_content_height);
  display: flex;
  justify-content: space-between;
  width: 100%;
}

#logo img {
  height: var(--header_content_height);
}

#logo.open_homepage {
  cursor: pointer;
  transition: all 200ms;
  position: sticky;
  left: 0;
  z-index: 1;
  background: #333;
  height: calc(100% + 2px);
  margin-top: -1px;
  margin-left: -1px;
}

.mobile #logo.open_homepage {
  background: #333;
  height: calc(100% + 2px);
  margin-top: -1px;
  margin-left: -1px;
}

#header_buttons_container {
  flex-grow: 1;
  display: flex;
  justify-content: flex-end;
}

.header_button {
  border: 2px solid var(--color1);
  background: #333;
  padding: 0.5em;
  border-radius: 0.5em;
  transition: all 200ms;
  position: relative;
  display: flex;
  flex-flow: row wrap;
  align-content: center;
  gap: 0.5em;
  cursor: pointer;
  font-size: 22px;
  overflow: hidden;
  width: 40px;
  justify-content: center;
}

.header_button:hover {
  background: hsl(162deg 28.71% 25.86%);
  color: #fff;
}

.header_button:after {
  content: '';
  width: calc(100% + 4.5px);
  background: var(--color1);
  height: 0;
  position: absolute;
  top: calc(100% - 8px);
  left: -2px;
  transition: height 200ms;
  z-index: -1;
}

.header_button.active:after {
  height: 14px;
}

.header_button.active {
  background: hsl(162.48deg 100% 44.31%);
  border: 2px solid var(--color1);
  color: #333;
  width: 134px;
  justify-content: flex-start;
}

.header_button.brighten {
  background: hsl(162 100% 54% / 1);
  border: 2px solid hsl(162 100% 54% / 1);
}

.header_button.brighten:after {
  background: hsl(162 100% 54% / 1);
}

.header_button span.button_txt {
  font-size: 20px;
  position: absolute;
  left: calc(-100% - 46px);
}

.header_button.active span.button_txt {
  left: 46px;
}

#instruments_toggle.header_button.active span.button_txt {
  left: 56px;
}

#instruments_toggle .icon_container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 0 8px;
  align-content: center;
  justify-content: center;
  align-items: center;
  justify-items: center;
  font-size: 20px;
}

#instruments_toggle .fa-eye-slash {
  grid-column: span 2;
}

.header_user_account_button .user_initials {
  position: absolute;
  top: calc(50% - .75em - 2px);
  left: unset;
  background: #fff;
  color: #333;
  padding: 2px;
  width: 1.5em;
  height: 1.5em;
  border-radius: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: cursive;
  font-weight: bold;
}

.header_user_account_button.active .user_initials {
  left: 6px;
}


/* pages */
.page {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  background: #f6f6f6;
  padding: 1em;
  padding-top: 0;
  width: calc(100% - 2em);
  height: calc(100vh - var(--header_height) - 1em);
  z-index: 101;
  color: #fefefe;
}

.page.hidden {
  display: none;
}

.close_page {
  cursor: pointer;
  height: 1.5em;
  position: sticky;
  top: 0;
  margin-left: -1em;
  margin-right: -1em;
  margin-bottom: 1em;
  text-align: center;
  background: hsl(162.48deg 100% 44.31%);
  border-bottom: 2px solid hsl(0deg 0% 0% / 46%);
  color: hsl(0deg 0% 0% / 73%);
  z-index: 1;
  transition: all 150ms;
}

.close_page:hover {
  background: hsl(162 100% 54% / 1);
  border-bottom: 2px solid hsl(0deg 0% 0%);
}

.close_page svg {
  position: absolute;
  bottom: -.5em;
  color: #fff;
  background: radial-gradient(black 60%, transparent 60%);
}

/* SETTINGS */
/* tabs */
.settingsTabs {
  display: flex;
  border-top: 6px solid white;
  border-bottom: 2px solid var(--color2);
  background-color: #eef6f6;
}

.modal .extra-content {
    display: flex;
    flex-flow: column nowrap;
    justify-content: flex-end;
}

.modal .extra-content:has(.settingsTabs) {
  position: sticky;
  top: 0;
  z-index: 1;
}

.settingsTabs > span {
  background: hsl(177 32% 95% / 1);
  padding: 10px 8px;
  user-select: none;
  width: max-content;
}

.settingsTabs > span:hover {
  background: hsl(177 32% 84% / 1);
}

.settingsTabs > span.active {
  background-color: var(--color2);
}

#instruments_visiblity_container {
  width: 500px;
  height: 600px;
  max-height: 90vh;
  left: unset;
  right: calc(66px * 3 - 250px + 90px);
  border-radius: 0 0 26px 26px;
  border: 8px solid var(--color1);
  border-top: none;
  background: #333;
  position: absolute;
  display: block;
  top: var(--header_height);
}

#instruments_visiblity_container.hidden {
  display: none;
}

#settings_content {
  overflow-y: scroll;
  height: calc(100% - 3em);
}

section.instrument_settings_section {
  position: relative;
  --top_space: 6px;
  margin-bottom: 30px;
  height: calc(58px * 2 + 96px + 26px);
}

#settings_content section {
  width: calc(100% - 12px);
  padding-left: 8px;
}

#settings_content section.note_labels_settings {
  width: 495px;
}

#settings_content input[type="checkbox"] {
  width: 1em;
  height: 1em;
}

/* switch */
#settings_content label.switch:has(input[type="checkbox"]:not(:checked)) span:nth-of-type(1),
#settings_content label.switch:has(input[type="checkbox"]:checked) span:nth-of-type(2) {
  color: black;
}

#settings_content label.switch:has(input[type="checkbox"]:not(:checked)) span:nth-of-type(2),
#settings_content label.switch:has(input[type="checkbox"]:checked) span:nth-of-type(1) {
  color: gray;
}

#settings_content input[type="checkbox"].switch {
  background: var(--color2);
  position: relative;
  width: 2.5em;
  height: 2em;
}

#settings_content label.switch:hover input[type="checkbox"] {
  background: var(--color2-dark);
}

#settings_content input[type="checkbox"].switch:after {
  content: '';
  display: block;
  width: 80%;
  height: 80%;
  background: #fff;
}

#settings_content input[type="checkbox"].switch:not(:checked):after {
  /* left arrow */
  clip-path: polygon(40% 0%, 40% 20%, 100% 20%, 100% 80%, 40% 80%, 40% 100%, 0% 50%);
}

#settings_content input[type="checkbox"].switch:checked:after {
  /* right arrow */
  clip-path: polygon(0% 20%, 60% 20%, 60% 0%, 100% 50%, 60% 100%, 60% 80%, 0% 80%);
}

/* misc */
/* staff spacing */
.staff-spacing label.specify {
  display: inline;
}

.staff-spacing label:has(input.auto:checked)+label.specify {
  display: none;
}

.staff-spacing input[type="number"] {
  color: #333 !important;
  width: 2.5em;
  text-align: center;
}

.staff-spacing p {
  display: flex;
  flex-flow: row wrap;
  column-gap: 22px;
  align-items: center;
}

.staff-spacing label input {
  margin: 0 6px;
}


/* auto tranpose band */
#auto_trans_band_key {
  margin-left: 6px;
}

/* student link */
#create_student_link-link:before {
  content: attr(help-text);
  font-weight: bold;
  color: #fff;
  text-align: center;
}

.create_student_link-options ul {
  list-style-type: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  margin-top: 2em;
}

.create_student_link-options ul:before {
  content: "Student Link Options";
  font-weight: bold;
  position: absolute;
  top: -20px;
  color: #fff;
}

div#student_link-custom_message p {
  margin-bottom: 0;
  margin-top: 2px;
}

div#student_link-custom_message textarea {
  width: calc(100% - 6px);
  height: 5em;
  color: #333 !important;
}

div#student_link-custom_message:before {
  content: "Custom Message";
  font-weight: bold;
  color: #fff;
}

div#create_student_link-link {
  margin-top: 6px;
  cursor: pointer;
  display: flex;
  flex-flow: column;
  white-space: nowrap;
  overflow-x: hidden;
  background: #555;
  padding: 4px;
  color: #d9d9d9 !important;
  border-radius: 6px;
  border: 1px solid;
}

#settings_content label {
  display: flex;
}

#settings_content .settings-descrption {
  margin: 0;
  padding-left: 2em;
}

#settings_content .settings-descrption p {
  margin: 0;
  margin-top: 8px;
}

/* note labels digrams */
.diagram-buttons {
  position: absolute;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  column-gap: 4px;
  z-index: 1;
}

.diagram_container {
  position: relative;
  top: var(--top_space);
}

.diagram-instrument_settings div:first-child {
  margin-bottom: 38px;
}

.diagram-checkboxes {
  height: calc(58px * 2 + 96px);
  width: calc(100% - 34px);
  position: absolute;
  top: -20px;
  left: 0px;
  display: grid;
  row-gap: 0;
  grid-template-rows: repeat(2, 1fr);
  grid-template-columns: repeat(9, 1fr);
  justify-items: stretch;
  align-items: stretch;
  align-content: stretch;
}

.diagram-checkboxes label {
  display: flex;
  -webkit-user-select: none;
  user-select: none;
  flex-direction: column;
}

.checkbox-bg {
  height: calc(58px * 2 + 96px);
  width: calc(100% - 42px);
  position: absolute;
  top: calc(20px + var(--top_space));
  left: 8px;
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  grid-template-rows: repeat(2, 1fr);
  --l: 38%;
}

.checkbox-bg span {
  border-radius: 8px;
  background: hsl(158 100% var(--l) / 1);
  outline: 2px solid #333;
  outline-offset: -1px;
}

.diagram-checkboxes label:not(:has(input:checked)) {
  /* color of labels if unchecked */
  color: #6fbfa1;
  background: #00000047;
}

.diagram-checkboxes label:hover:has(input:checked),
.diagram-checkboxes label:hover:not(:has(input:checked)) {
  /* hover checked or unchecked label */
  color: #ade3cf;
  background: #00000021;
}

.note_labels_settings :is(.abcjs-note, .abcjs-note .abcjs-annotation) {
  /* notes and annotation */
  fill: #fff;
}

/* Settings Headings */
#settings_content>h1 {
  position: sticky;
  top: 0;
  z-index: 2;
  font-size: 26px;
  background: #fff;
}

#settings_content>h1:not(:first-child) {
  margin-top: 1em;
}

.section-toggler {
  cursor: pointer;
  user-select: none;
}

.section-toggler:before {
  content: '\276F';
  font-size: 0.75em;
  display: block;
  position: absolute;
  left: 6px;
  transform: rotate(90deg);
  transition: all 300ms;
}

.section-toggler.collapsed:before {
  transform: rotate(0deg);
}

#settings_content h1 {
  padding-left: 1em;
}

.section-toggler:hover {
  color: hsl(162deg 100% 22.91%);
}

.instrument_settings_section h1,
#settings_content section h1 {
  position: sticky;
  top: 30px;
  background: #333;
  z-index: 1;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 18px;
}

#settings_content section h1 {
  background: #fff;
  margin-left: -1px;
}

/* Fonts */
#settings_content section,
#homepage_content section {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 14px;
}

#homepage_content section {
  font-size: 16px;
}

#homepage_content h1 {
  font-size: 26px;
}


/* POPUP RIBBON */
#popup_ribbon_container {
    --left: 283px;  /*<-- these are changed in js on popup ribbon show */
    --width: 682px; /*<--                                              */
    position: fixed;
    height: 0;
    top: calc(var(--header_height) + 12px);
    left: var(--left);
    z-index: 99999;
    width: var(--width);
    display: flex;
    flex-flow: column nowrap;
    gap: 6px;
    align-items: center;
}

#popup_ribbon_container div {
    width: max-content;
    max-width: calc(var(--width) - 60px);
    min-width: 200px;
    background: hsl(var(--hue) 50% 91.63%);
    display: flex;
    justify-content: space-around;
    gap: 12px;
    padding: 3px 6px;
    cursor: pointer;
    user-select: none;
    border-radius: 6px;
    border: 2px solid hsl(var(--hue) 46% 69%);
    color: hsl(var(--hue) 46% 30%);
    box-shadow: 2px 2px, 0px 0px 5px;
}

#popup_ribbon_container div span {
  margin-left: auto;
  margin-right: auto;
}

#popup_ribbon_container svg {
  color: hsl(var(--hue) 46% 40%);
}

#popup_ribbon_container div.yellow {
  --hue: 60deg;
}

#popup_ribbon_container div.green {
  --hue: 100deg;
}

#popup_ribbon_container div.red {
  --hue: 0deg;
}

#popup_ribbon_container div.blue {
  --hue: 200deg;
}

#popup_ribbon_container div.orange {
  --hue: 30deg;
}

/* ACCOUNTS PAGE / USER PROFILE */
#user_account {
  background: #333;
  height: min-content;
  border: 8px solid var(--color1);
  border-top: none;
  width: calc(100% - 2em - 16px);
  border-radius: 0 0 16px 16px;
  box-shadow: 0px 0px 10px #000;
}

/* Account Content, user info, account info */
div#account_content.hidden {
  display: none;
}

div#user_info {
  display: flex;
  flex-flow: column nowrap;
  gap: 1em;
  margin-bottom: 1em;
  font-size: 18px;
}

div#user_info>div {
  display: flex;
  gap: 6px;
}

div#user_info>div>span:first-child {
  font-weight: bold;
}

div#signOut {
  margin-top: 12px;
}

div#signOut button {
  font-size: 18px;
}

/* inputs */
input.fancy-color1 {
  --w: 300px;
  width: var(--w);
  border: none;
  border-bottom: 4px solid var(--color1);
  background-color: hsl(0 0% 99% / 1);
  padding-top: 6px;
  text-align: center;
  transition: all 200ms;
}

input.fancy-color1:is(:focus, :focus-visible) {
  outline: none;
  padding: 0px 1em;
  width: calc(var(--w) - 2em);
  padding-top: 6px;
  border-left: none;
  border-radius: 1em 1em 0.25em 0.25em;
}

/* buttons */
.buttons {
  /* buttons container */
  display: flex;
  gap: 6px;
}

.button1 {
  --btnH: 163;
  --btnS: 100%;
  --btnL: 44%;
  --btnColor: hsl(var(--btnH) var(--btnS) var(--btnL));
  height: 36px;
  cursor: pointer;
  background: var(--btnColor);
  color: #333;
  font-weight: bold;
  border: 2px solid var(--btnColor);
  border-radius: 8px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 22px;
  transition: all 0.3s;
  display: flex;
  gap: 4px;
  align-items: center;
  user-select: none;
  box-shadow: inset 0 -0.5em 10px #00000026;
}

.button1:hover {
  --btnL: 54%;
}

.button1.long-text {
  font-size: 14px;
  height: unset;
  border: 1px solid var(--btnColor);
  display: flex;
  align-items: center;
  gap: 4px;
}

button.disabled {
  cursor: not-allowed;
}

.button1.disabled:hover {
  background: var(--btnColor);
  color: #333;
  border-color: var(--btnColor);
}

.button1 svg {
  width: 1.5em;
  max-height: 100%;
}

.button1.long-text svg {
  height: 1em;
}

/* Button Colors */
/* gray button */
.button-gray {
  --btnS: 0%;
  --btnL: 85%;
}

.button-gray:hover {
  --btnL: 95%;
}

/* red button */
.button-red {
  --btnH: 15;
  color: #eee;
  fill: #eee;
}

/* orange button */
.button-orange {
  --btnH: 23;
  color: #eee;
  fill: #eee;
}

/* yellow button */
.button-yellow {
  --btnH: 60;
}

/* color2 button */
.button-color2 {
  --btnH: 177;
}

/* Call To Action Button (coral-orange) */
.cta-button {
    background: linear-gradient(
      to bottom right,
      hsl(14, 90%, 65%),
      hsl(14, 85%, 55%)
  );
    color: white;
    font-size: 1.25rem;
    padding: 0.85rem 1.75rem;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(255, 100, 50, 0.3);
    transition: all 0.3s ease;
    filter: drop-shadow(2px 2px 2px #000000aa);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}
.cta-button:hover {
  background: linear-gradient(
      to bottom right,
      hsl(14, 90%, 60%),
      hsl(14, 85%, 50%)
  );
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 100, 50, 0.4);
  filter: drop-shadow(2px 4px 2px #000000aa);
}

/* AUTH FORM */
.signIn_signUp_switcher {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1em;
}

/* login, signin, signup, sign in, sign up, register */
div#auth_container.hidden {
  display: none;
}

div#close_auth {
  cursor: pointer;
  padding: 4px;
  position: absolute;
  z-index: 1;
}

div#teacher_auth_container {
  display: flex;
  flex-direction: row;
  gap: 12px;
  justify-content: center;
  padding: 0 1em;
}

#teacher_auth_container>div>h1 {
  font-size: 20px;
  font-family: 'Montserrat';
}

#teacher_auth_container>div>form {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

#teacher_auth_container>div>form>label {
  display: flex;
  flex-flow: column;
  align-items: center;
}

#teacher_auth_container>div>form>label:hover>input {
  border: 2px solid;
}

div#teacher_auth_container>div {
  width: 50%;
  text-align: center;
}

div#teacher_auth_container>div:first-child {
  position: relative;
}

div#teacher_signUp_response {
  margin-top: 6px;
  background: #e2e2e2;
  color: #b33d3d;
}

div#teacher_signUp_response.error_text {
  font-size: 16px;
  border-width: 4px;
}

#teacher_auth_container button[type="submit"] {
  margin-top: 6px;
  width: 200px;
}

:is(#teacher_signIn, #teacher_signUp).hidden {
  display: none;
}

/* request password recovery */
form#request_password_recovery {
  --w: 600px;
  width: var(--w);
  background: #fff;
  border: 6px solid var(--color1);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 4px 4px 4px;
  display: flex;
  flex-flow: column;
  align-items: center;
}

form#request_password_recovery h2 {
  margin: 0;
}

form#request_password_recovery label {
  display: flex;
  flex-flow: column;
  align-items: center;
}

form#request_password_recovery p {
  margin: 0;
}

div#reset_password_container {
  display: flex;
  justify-content: center;
}

/* RESET PASSWORD */
#reset_password_container.hidden {
  display: none;
}

#request_password_recovery.hidden {
  display: none;
}

#reset_password_form.hidden {
  display: none;
}

span#forgot_password {
  text-decoration: underline;
  cursor: pointer;
}

span#forgot_password:hover {
  text-decoration: none;
}

div#request_password_recovery_response {
  background: #e2e2e2;
}


/* INSTRUMENTS VISIBILITY */
#instruments_visiblity_container {
  right: calc(66px * 3 - 86px);
  width: 156px;
  height: min-content;
  user-select: none;
}

#instruments_visiblity_container_content button.btn2 {
  cursor: pointer;
  width: 100%;
  font-size: 14px;
  padding: 2px;
  border-width: 1.5px;
}

#close_instruments_visiblity_container svg {
  left: calc(50% - 0.5em);
}

ul.instrument_visibility_ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

ul.instrument_visibility_ul:after {
  content: "Click an instrument to jump to its spot on the page.\A\A CTRL+click the Instruments button as a shortcut to jump to the score.";
  white-space: pre-wrap;
  font-size: 14px;
  color: #999;
  text-align: center;
  display: block;
  margin-top: 6px;
}

li.instrument_visibility_li {
  display: flex;
  gap: 1em;
  justify-content: flex-end;
  align-items: center;
  position: relative;
}

li.instrument_visibility_li span {
  cursor: pointer;
  color: #ddd;
  padding: 4px 0;
}

li.instrument_visibility_li:hover span {
  color: #fff;
}

li.instrument_visibility_li input {
  width: 1.75em;
  height: 1.75em;
}

/* checkbox eye icon */
#instruments_visibility_checkboxes input:checked:after {
  clip-path: unset;
  background: unset;
}

li.instrument_visibility_li .eye-icon {
  position: absolute;
  right: 4px;
  top: 5px;
  color: #aaa;
  cursor: pointer;
}

li.instrument_visibility_li input:checked~.eye-icon {
  color: #fff;
}

/* CONTACT FORM */
#contact_container {
  background: #333;
}

div.form_container {
  position: relative;
  height: fit-content;
  display: flex;
  flex-flow: column;
  align-items: center;
}

div.form_container h1 {
  text-align: center;
}

form {
  font-size: 18px;
  max-width: 800px;
  display: grid;
  grid-template-columns: 500px;
  gap: 1em;
}

form .hidden {
  display: none;
}

form div label {
  position: relative;
  padding-top: 1.5em;
  display: inline-block;
  width: 100%;
}

form div label span {
  position: absolute;
  top: -6px;
  left: 0;
  background: var(--color1);
  padding: 6px;
  border-radius: 8px 8px 0 0;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  transition: all 200ms;
  color: #333;
  width: max-content;
}

form>div.error label span {
  background: var(--colorErr);
}

form div label span:has(span) {
  top: -24px;
}

form div label span span {
  top: unset;
}

form div label span.pswd_check {
  left: unset;
  top: 1em;
  right: 0;
  padding: 0;
}

form div label :is(input, textarea) {
  width: calc(100% - 12px - 8px);
  padding: 3px 6px;
  border: 4px solid var(--color1);
  border-radius: 0 8px 8px 8px;
  transition: all 200ms;
  outline: 0;
  font-family: "Arial", Helvetica, sans-serif;
  font-size: 16px;
}

form div.error label :is(input, textarea) {
  border-color: var(--colorErr);
}

form div label :is(input, textarea):focus,
form div label:has(span:focus) :is(input, textarea) {
  border: 4px solid var(--color1-dark);
}

form div.error label :is(input, textarea):focus,
form div.error label:has(span:focus) :is(input, textarea) {
  border-color: var(--colorErr-dark);
}

form div label span:focus,
form div label:has(:is(input, textarea):focus) span {
  background: var(--color1-dark);
  color: #ebfff9;
}

form div.error label span:focus,
form div.error label:has(:is(input, textarea):focus) span {
  background-color: var(--colorErr-dark);
}

form div label input {
  height: 24px;
}

form div label textarea {
  height: 12em;
}

form div button {
  height: 36px;
  cursor: pointer;
  background: var(--color1);
  color: #333;
  font-weight: bold;
  border: 4px solid var(--color1);
  border-radius: 8px;
  width: 100%;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 22px;
  transition: all 0.3s;
}

form div button:hover {
  background: var(--color1-dark);
  color: #ebfff9;
  border-color: var(--color1-dark);
}

/* PAGES
homepage, settings */
#homepage {
  --w: calc(100vw - 298px);
  position: fixed;
  top: var(--header_height);
  left: 290px;
  width: var(--w);
  height: calc(100% - var(--header_height));
  padding: 0 0 0 8px;
  background: #fff;
  transition: top 600ms;
  z-index: 101;
  overflow-y: scroll;
  color: #333;
}

#close_homepage {
  margin-right: 0;
  margin-left: -9px;
  position: fixed;
  top: var(--header_height);
  width: 100%;
}

#sidebar.hidden~#page_content #close_homepage {
  width: calc(100% - 42px);
}

:is(#close_homepage, #close_settings) svg {
  color: black;
  background: radial-gradient(white 60%, transparent 60%);
}

#homepage_content {
  padding: 0 16px;
  padding-top: 2.5em;
  color: #333;
}

#homepage::-webkit-scrollbar-track {
  background: #333;
}

#homepage_content section {
  max-width: 900px;
}

#homepage_content h1 {
  background: none;
}

/* how-to section */
#howTo {
  margin-top: 0 !important;
}

#howTo h1 {
  margin: 0;
  text-align: left !important;
}

#howTo .howTo-sidebarButton {
  position: relative;
  left: -20px;
  font-size: 20px;
  display: flex;
  gap: 6px;
  align-items: center;
}

#howTo-fingerings {
  margin-top: 4px;
}

#howTo-highlights {
  margin-top: 14px;
}

#howTo-notenames {
  margin-top: 16px;
}

#howTo-print {
  margin-top: 30px;
}

#howTo-editparts {
  margin-top: 32px;
}

#howTo-transpose {
  margin-top: 42px;
}

#howTo-zoom {
  margin-top: 40px;
}

#howTo-notey {
  margin-top: 42px;
}

#howTo-notey-options {
  margin-top: 30px;
}

/* "Cards" on homepage */
#card_fingerings {
  --color2: hsl(181.97deg 100% 50%);
}

#card_highlights {
  --color2: hsl(64deg 100% 50%);
}

#card_notenames {
  --color2: #4bd130;
}

.cards_container.cols {
  display: flex;
  flex-flow: row wrap;
  gap: 16px;
  justify-content: space-around;
}

.card {
  --hColor: var(--color2);
  background: #333;
  background-image: linear-gradient(to bottom, var(--hColor), var(--hColor)), linear-gradient(to bottom, black 107px, transparent);
  background-size: 100% 57px, 100% 60%;
  background-repeat: no-repeat;
  color: #eee;
  padding: 12px;
  max-width: 200px;
  min-width: 10em;
  flex-grow: 1;
  border-radius: 0 64px;
  position: relative;
  top: 0;
  right: 0;
  box-shadow: 0 0 0 0px var(--color2);
  transition: all 200ms;

}

.card:hover .cardIcon {
  filter: drop-shadow(-4px 4px 2px black);
  top: -2px;
  right: -2px;
}

.card:hover {
  box-shadow: -8px 8px 0px 0px var(--color2);
  top: -8px;
  right: -8px;
}

.card h2 {
  margin: 0;
  padding: 6px 0;
  width: calc(100% - 12px);
  color: #fff;
  font-size: 18px;
  text-shadow: -1px 1px 2px BLACK;
}

.card .cardIcon {
  position: absolute;
  top: 0;
  right: 0;
  height: 54px;
  width: 54px;
  filter: drop-shadow(-2px 2px 2px black);
  color: var(--color2);
  transition: all 200ms;
}

#homepage footer {
  position: sticky;
  width: 100%;
  bottom: 0;
  margin-left: -8px;
  margin-top: 1em;
}

/* first section */
#homepage_content section:first-child {
  margin-top: 2em;
}

#homepage_content section:first-child h1 {
  text-align: center;
  margin-top: 0;
}

.moreinfo {
  border-bottom: 2px dotted var(--color2);
  cursor: help;
}

#homepage_content div.wavyLine {
  margin-left: -24px;
  width: calc(100% + 40px);
}

/* MODAL */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.modal {
  --bgColor: #fefefe;
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translate(-50%, 0%);
  background-color: var(--bgColor);
  padding: 20px;
  padding-right: 12px;
  border-radius: 5px;
  z-index: 1001;
  max-height: 90vh;
  max-width: 60vw;
  min-width: 380px;
  display: flex;
  flex-direction: column;
}

.modal:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background-image: url('/assets/bgs/staffsplosion.png');
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-attachment: fixed;
    z-index: -1;
    filter: hue-rotate(200deg) saturate(4) contrast(1);
    opacity: 7%;
}

.modal:after {
  --height: 50%;
  content: '';
  position: absolute;
  top: 0;
  right: 12px;
  width: 250px;
  height: var(--height);
  background-image: url('/assets/bgs/staff-swoosh.png');
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: 100% 26px;
  background-attachment: fixed;
  z-index: -1;
  opacity: 20%;
  -webkit-mask-image: url('/assets/bgs/staff-swoosh.png');
  mask-image: url('/assets/bgs/staff-swoosh.png');
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  background: hsl(163deg 66.29% 47.63%);
  background-blend-mode: normal;
}

div.modal.white-space:has(.extra-content:empty) {
  --afterPos: calc(var(--extra-content-white-space) * 1.25);
}

div.modal.white-space:after {
  --minimum-position: 36px;
  opacity: 1;
  top: max(var(--minimum-position), calc(var(--afterPos) - var(--height)/2)); 
  -webkit-mask-image: url('/assets/bgs/staff-swoosh.png');
  mask-image: url('/assets/bgs/staff-swoosh.png');
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  background: hsl(163deg 65.7% 44.2%);
  background-blend-mode: normal;
}

.modal.centered {
  top: 50%;
  transform: translate(-50%, -50%);
}

.modal>h1 {
  padding: 0;
  margin: 0;
  margin-bottom: 8px;
  margin-top: 8px;
  font-size: 26px;
}

.modal>h1 span {
    overflow-x: hidden;
    text-wrap: nowrap;
}

.modal :is(.error_text, .warning_text, .info_text, .success_text) {
    width: 290px;
    justify-self: center;
    position: sticky;
    top: 0;
    box-shadow: 2px 2px 4px -4px;
}

.modal:has(.settingsTabs) :is(.error_text, .warning_text, .info_text, .success_text) {
    top: -100%;
}

.modal-content {
  max-height: 90vh;
  overflow-y: scroll;
  position: relative;
  padding-right: 6px;
}

.modal-content :is(h2,h3) {
  position: sticky;
  top: 0;
  /* background: var(--bgColor); */
  margin: 0;
  font-size: 20px;
}
.modal-content h3 {
  font-size: 18px;
}

.modal-close {
  position: fixed;
  top: 6px;
  right: 3px;
  font-size: 24px;
  cursor: pointer;
  background: none;
  border: none;
  width: 32px;
}

.modal .before-label-container {
  grid-column: span 2;
  color: #666;
}

/* modal inputs */
.modal-inputs {
  --labelWidth: 75%;
  margin-bottom: 15px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1em 0;
  user-select: none;
  justify-items: center;
  padding-top: 1em;
  padding-bottom: 1em;
  font-size: 18px;
}

.modal-inputs > label {
  grid-column: span 2;
  padding: 6px;
  background: hsl(174deg 75.83% 95.01%);
  border-radius: 8px;
  border: 1px solid #009688;
  border-width: 1px 2px;
  width: var(--labelWidth);
  flex-wrap: wrap;
}

.modal-inputs > label.wide {
    width: 450px;
}

.modal-inputs h1 {
  font-size: 18px;
  margin: 0;
  font-family: sans-serif;
  flex-basis: 100%;
}

.modal-inputs textarea {
  width: calc(100% - 6px);
  height: 200px;
}

.modal-inputs input {
  --borderColor: #000;
  width: calc(100% - 8px);
  border: 1px solid;
  border-color: var(--borderColor);
  border-radius: 4px;
  outline: unset;
  background-color: #ffffffaa;
  font-size: 18px;
}

.modal-inputs input:is(:hover, :focus) {
  outline: 1px solid var(--borderColor);
}

.modal-inputs input[type="number"] {
  width: 3em;
  text-align: center;
}
.modal-inputs input[name='className'] {
    font-size: 18px;
}

.modal select {
  font-size: 19px;
  padding: 2px 12px;
  max-width: 100%;
  padding-right: 0;
}

.modal-inputs .input.error {
  border-color: hsl(5deg 97.15% 36.02%);
  background-color: #ffecec;
}

/* before input, beforeInputHtml */
.modal-inputs .before-input-container {
  font-family: sans-serif;
  font-size: 14px;
  color: #555;
  margin-bottom: 4px;
  margin-left: 4px;
}

/* added checkbox */
.modal-inputs label:has(label>.added_checkbox) {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
}

.modal-inputs label:has(label>.added_checkbox) h1 {
  /* take up whole row */
  flex-basis: 100%;
}

/* disabled inputs */
.modal-inputs .input:is(.disabled,[disabled]) {
  background: #eee;
  color: #888;
  border: 2px solid;
  border-radius: 2px;
}

/* modal buttons */
.modal-buttons {
    position: sticky;
    bottom: 0;
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    filter: drop-shadow(0px -6px 3px var(--bgColor));
}

.modal-buttons button {
  font-size: 18px;
  border: 2px solid #44444475;
}

.modal-content::-webkit-scrollbar-track {
  background-color: transparent;
}

.modal>h1 svg {
  margin-right: 6px;
}

/* modal types */
.modal[type="warning"] {
  --bgColor: hsl(50 100% 97% / 1);
}
.modal[type="warning"]>h1 svg {
  color: #916a08;
}

.modal[type="alert"] {
  --bgColor: hsl(0, 100%, 97%);
}
.modal[type="alert"]>h1 svg {
  color: #df3800;
}

/* modal checkboxes */
.modal-inputs input[type="checkbox"] {
  width: 1em;
  height: 1em;
}

div.checkboxGroup {
  display: flex;
  gap: 12px;
  flex-flow: column wrap;
  user-select: none;
  flex-direction: row;
}

div.checkboxGroup.inline {
  column-gap: 28px;
  row-gap: 12px;
  flex-flow: row wrap;
}

div.checkboxGroup[name="reduction_instruments"] {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

div.checkboxGroup label {
  display: flex;
  align-items: center;
}

/* multi-select / dropdown */

/* .modal-inputs:has(.dropdown) {
    min-height: 15em;
    margin-bottom: 0;
    align-items: end;
} */

.modal-inputs > label:has(.dropdown) {
    height: var(--labelHeight);    /* <-- labelHeight calculated in js modal class */
}

/* .modal-inputs > label:has(.dropdown.collapsed) {
    height: max-content;
} */

div.checkboxGroup.dropdown {
    --caretSize: 18px;
    flex-flow: column nowrap;
    background: #fff;
    padding: 8px;
    padding-left: calc(var(--caretSize) + 8px);
    padding-top: 0;
    border: 1px solid;
    border-radius: 4px;
    gap: 0;
    overflow: hidden;
    position: relative;
    z-index: 1;
    max-height: 15em;
    overflow-y: scroll;
    box-shadow: 4px 4px 6px -2px black;
}

div.checkboxGroup.dropdown[direction="up"] {
    top: calc(-13em - 6px);
    box-shadow: -4px -4px 6px -2px black;
    flex-direction: column-reverse;
    padding-top: unset;
    padding-bottom: 0;
}

div.checkboxGroup.dropdown.collapsed {
    height: calc(1em + 6px);
    overflow-y: hidden;
    z-index: 0;
    box-shadow: none;;
}

.checkboxGroup.dropdown.collapsed[direction="up"] {
    top: 0;
    box-shadow: none;
    height: calc(1em + 12px);
}

div.checkboxGroup.dropdown .dropdown-toggler {
    position: sticky;
    top: 0;
    font-size: calc(var(--caretSize) * 0.9);
    cursor: pointer;
    font-family: 'Montserrat';
    background: inherit;
    margin-left: -26px;
    padding: 0 6px;
    width: calc(100% + 26px);
    z-index: 1;
    color: #444;
    min-height: 30px;
    font-style: italic;
}

div.checkboxGroup.dropdown.collapsed .dropdown-toggler {
    white-space: nowrap;
}

div.checkboxGroup.dropdown:not(.collapsed) .dropdown-toggler {
  place-items: flex-start;
  min-height: max-content;
}

div.checkboxGroup.dropdown[direction="up"] .dropdown-toggler {
    top: unset;
    bottom: 0;
}

div.checkboxGroup.dropdown .dropdown-toggler svg {
    width: var(--caretSize);
    margin-right: 8px;
    transition: all 300ms;
    flex-shrink: 0; /* needed to prevent the svg from shrinking when the text span has too much text */
}

div.checkboxGroup.dropdown[direction="up"] .dropdown-toggler svg {
    transform: rotate(-180deg);
}

div.checkboxGroup.dropdown.collapsed .dropdown-toggler svg {
    transform: rotate(-90deg);
}

div.checkboxGroup.dropdown[direction="up"].collapsed .dropdown-toggler svg {
    transform: rotate(-90deg);
}

div.checkboxGroup.dropdown label {
    padding: 4px 0;
}

div.checkboxGroup.dropdown label:hover {
    background: hsl(0 0% 95% / 1);
}

/* dropdown columns */
div.checkboxGroup.dropdown:is(.cols-2, .cols-3, .cols-4) {
    flex-flow: row wrap;
}

div.checkboxGroup.dropdown.cols-2 label:not(.dropdown-toggler) {
    width: 50%;
}
div.checkboxGroup.dropdown.cols-3 label:not(.dropdown-toggler) {
    width: 33%;
}
div.checkboxGroup.dropdown.cols-4 label:not(.dropdown-toggler) {
    width: 25%;
}


/* specific modals content */

/* put the checkboxes in 2 or 3 columns, instead of just 1 */
.modal-inputs>label.cols-2 .checkboxGroup {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.modal-inputs>label.cols-3 .checkboxGroup {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

/* suggestions ul */
div.suggestions ul {
  padding-left: 2em;
  margin: 6px 0;
}

div.suggestions ul:not(:empty):before {
  content: 'Suggestions:';
  margin-left: -2em;
}


/* DIALOG */
.ui-dialog {
  z-index: 9999 !important;
}

/* fixed pos */
.ui-dialog.fixed-dialog {
  position: fixed;
}

/* titlebar */
.ui-dialog.alert .ui-dialog-titlebar {
  background: #b91919;
  color: #fff;
}

.ui-dialog.warn .ui-dialog-titlebar {
  background: #b39703;
  color: #fff;
}

/* icon */
.ui-dialog .svg-inline--fa {
  margin-right: 1em;
}

/* buttons */
.ui-dialog.alert .ui-dialog-buttonpane button {
  background: #b91919;
  color: #fff;
}

.ui-dialog.warn .ui-dialog-buttonpane button {
  background: #b39703;
  color: #fff;
}

.ui-dialog .ui-dialog-buttonpane button:hover {
  filter: brightness(1.1);
}

.error_text {
  background: #ffecec;
  color: #555;
  border: 2px solid #f5aca6;
  padding: 1em;
  font-size: 14px;
  position: relative;
  margin-bottom: 6px;
}

:is(.error_text, .warning_text, .info_text, .success_text):empty {
  opacity: 0;
  padding: 0;
  margin: 0;
}

/* error text label btn */
.ui-widget-content a.error_text-label-link {
  position: absolute;
  top: calc(-1em - 5px);
  width: 120px;
  padding: 5px 15px;
  left: calc(50% - 60px - 15px);
  background: #f5aca6;
  border: 2px solid #cc3333;
  text-align: center;
}

.ui-widget-content a.error_text-label-link:hover {
  background: #cc3333;
  color: #ffecec;
  text-decoration: none;
}


/* SIDEBAR */
#sidebar {
  background: #222;
  color: #fff;
  position: relative;
  padding-right: 0;
  padding-left: 0;
  user-select: none;
  -webkit-user-select: none;
  z-index: 100;
}

#bookmarks_container {
  overflow-y: scroll;
}

#sidebar :is(h1, h2, h3, h4, h5, h6) {
  cursor: pointer;
  margin: 0;
  padding-bottom: 6px;
}

#sidebar :is(h1, h2, h3) {
  font-size: 16px;
  text-align: center;
}

#sidebar .score_bookmark_section {
  --height: auto;
  height: var(--height);
  width: calc(100% - 14px);
  list-style-type: none;
  margin: 0;
  margin-top: 12px;
  padding: 4px;
  position: relative;
  border: 3px solid;
  border-radius: 3px;
}

ul.score_bookmark_section.collapsed {
  overflow: hidden;
}

#sidebar .score_bookmark_section .section_heading {
  position: sticky;
  top: 0;
  background: #222222e6;
  z-index: 1;
}

#sidebar .score_bookmark_section:first-child {
  margin-top: 0;
}

#sidebar .score_bookmark_section:last-child {
  position: sticky;
  top: var(--header_height);
}

#sidebar .score_bookmark {
  cursor: pointer;
  padding: 6px 0;
  position: relative;
}

#sidebar .score_bookmark::after {
  content: attr(_title);
  display: inline-block;
  width: calc(100% - 18px);
  text-wrap: auto;
}

#sidebar #myScores .score_bookmark:after {
  width: calc(100% - 40px);
}

#sidebar .score_bookmark:hover::after {
  color: #888;
}

#sidebar .score_bookmark.active {
  color: #888;
}

#sidebar .score_bookmark.active:hover::after {
  color: #888;
}

/* search and sort */
#searchAndSort_container {
  margin: 0;
  width: calc(100% - 6px);
  position: sticky;
  top: 0;
  background: #222;
  padding: 3px;
  padding-bottom: 0;
  z-index: 2;
}

#searchScores {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
}

#searchScores input {
  width: calc(100% - 4px);
  outline: none;
  background: #dedede;
  border: none;
  border-radius: 4px;
}

#sidebar.hidden #searchScores input {
  display: none;
}

#sidebar.hidden #bookmarks_container {
  scrollbar-color: #333 #333;
}

#searchScores input:is(:hover, :focus) {
  background: #fff;
}

#searchScores .fa-magnifying-glass,
#searchScores .fa-xmark {
  color: black;
  position: absolute;
  font-size: 18px;
  top: 4px;
  right: 4px;
}

#searchScores:has(input:placeholder-shown) .fa-xmark {
  /* input has no value, hide x */
  display: none;
}

#searchScores:has(input:not(:placeholder-shown)) .fa-xmark {
  /* input has value, show x */
  display: block;
}

#searchScores:has(input:placeholder-shown) .fa-magnifying-glass {
  /* input has no value, show magnifying glass */
  display: block;
}

#searchScores:has(input:not(:placeholder-shown)) .fa-magnifying-glass {
  /* input has value, hide magnifying glass */
  display: none;
}

#searchScores .fa-xmark {
  cursor: pointer;
  padding: 2px;
  border-radius: 2px;
  top: 2px;
  font-size: 20px;
}

#searchScores .fa-xmark:hover {
  background: #bbb;
}

#sortScores {
  padding: 6px 6px 0px 6px;
  cursor: pointer;
  display: inline-block;
  font-size: 20px;
  z-index: 1;
  margin-right: 2px;
  background: #222;
}

#sortScores.active {
  background: #333;
  color: #fff;
  border-radius: 40% 40% 0 0;
}

#sortFilters {
  display: none;
  min-height: 24px;
  border-radius: 0 8px 8px 8px;
  color: #404040;
  background: #fff;
  z-index: 1;
  height: max-content;
}

#sortFilters ul {
  display: none;
  list-style-type: none;
  margin: 0;
  padding: 0px;
  background: #e6e6e6;
  max-height: 300px;
  overflow-y: scroll;
}

#sortFilters ul.active {
  display: block;
}

#sortFilters ul.rhythms {
  overflow-x: hidden;
}

#sortFilters h1 {
  background: #333;
  color: #fff;
  border-bottom: 1px solid #666;
  position: relative;
  text-transform: capitalize;
  padding: 6px 0;
}

#sortFilters h1:last-of-type {
  border-bottom: none;
}

#sortFilters h1:before {
  /* caret */
  --w: 8px;
  content: '';
  position: absolute;
  top: 9px;
  left: 3px;
  width: var(--w);
  height: var(--w);
  border-bottom: calc(var(--w)/3) solid;
  border-left: calc(var(--w)/3) solid;
  border-radius: 2px;
  transform: rotate(230deg);
  transition: all 0.3s;
}

#sortFilters h1:is(:hover, .active) {
  background: #444;
}

#sortFilters h1.active:before {
  transform: rotate(315deg);
}

#sortFilters ul::-webkit-scrollbar-track {
  /* change scrollbar bg to match active color of h1 */
  background: #444;
}

#sortFilters ul li {
  cursor: pointer;
  padding: 3px 0;
  max-width: var(--sidebarOnlyW);
}

#sortFilters ul.note_range li {
  color: #000
}

#sortFilters ul li:hover,
#sortFilters ul li:has(input:checked) {
  color: #000;
}

#sortFilters ul li :is(input, label) {
  cursor: pointer;
}

#sortFilters ul li>label {
  display: grid;
  grid-template-columns: 24px 1fr;
}

#sortFilters ul li input {
  width: 16px;
  height: 16px;
}

input[type="checkbox"] {
  /* all checkboxes accross the whole site */
  appearance: none;
  background-color: #fff;
  border: 1px solid;
  border-radius: 3px;
  margin: 0 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

input[type="checkbox"]:checked {
  background: var(--color2);
}

input[type="checkbox"]:checked:after {
  content: '';
  display: block;
  width: 80%;
  height: 80%;
  background: #fff;
  transform-origin: bottom left;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

/* difficulty */
#sortFilters ul.difficulty.active {
  display: grid;
}

#sortFilters ul.difficulty {
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  justify-items: center;
}

#sortFilters ul.difficulty li {
  font-size: 20px;
}

/* note range */
#sortFilters ul.note_range li:not(:first-child) h2 {
  border-top: 1px solid #888;
}

.note_range-checkboxes_container {
  display: flex;
  align-items: flex-start;
  font-size: 13px;
}

.note-range-abc-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: min-content min-content;
  grid-auto-flow: column;
  font-size: 13px;
  margin-top: 6px;
}

.note-range-abc-container .note-range-note svg {
  width: calc(100% - 8px);
}

.note_range-checkboxes_container>label:first-of-type {
  margin-right: auto;
}

.note_range-checkboxes_container>label:last-of-type {
  margin-right: 16px;
}

.note-range-abc-container .dropdown-container {
  position: relative;
  display: flex;
  justify-content: center;
}

.note-range-abc-container .dropdown-container label {
  font-size: 16px;
  max-width: 2em;
}

.note-range-abc-container .dropdown-container select {
  appearance: none;
  -webkit-appearance: none;
  width: 36px;
  background-color: var(--color2);
  font-size: 16px;
  margin-left: 4px;
  position: relative;
  border-radius: 4px;
  padding: 0px 6px;
  border: none;
  outline: 2px solid var(--color2);
  color: #000;
  text-align: left;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2212%22%20viewBox%3D%220%200%2012%2012%22%3E%3Ctitle%3Edown-arrow%3C%2Ftitle%3E%3Cg%20fill%3D%22%23000000%22%3E%3Cpath%20d%3D%22M10.293%2C3.293%2C6%2C7.586%2C1.707%2C3.293A1%2C1%2C0%2C0%2C0%2C.293%2C4.707l5%2C5a1%2C1%2C0%2C0%2C0%2C1.414%2C0l5-5a1%2C1%2C0%2C1%2C0-1.414-1.414Z%22%20fill%3D%22%23000000%22%3E%3C%2Fpath%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  background-size: .6em;
  background-position: calc(100% - 2px) center;
  background-repeat: no-repeat;
}

.note-range-abc-container .dropdown-container select:focus {
  outline: 2px solid hsl(177 100% 44.17%);
}

.note-range-abc-container .dropdown-container select.grayed,
.note-range-abc-container .dropdown-container select.grayed:focus {
  outline: 2px solid #ccc;
  background-color: #bbb;
  background-blend-mode: overlay;
  color: #eee;
}


#activeFilters {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
}

#activeFilters span {
  display: none;
  background: #333;
  border: 1px solid #000;
  padding: 0 6px;
  color: #fff;
  border-radius: 1em;
  cursor: pointer;
  transition: all 150ms;
}

#activeFilters span:hover {
  background: #bbb;
  color: #222;
}

#activeFilters span:after {
  content: '\2717';
  margin-left: 4px;
  line-height: 1.3;
}

#sidebar :is(.score_bookmark, .classScore, .collectionScore).hide:not(.show) {
  display: none;
}

#sidebar :is(.score_bookmark_section, .class, .collection):not(:has(:is(.score_bookmark, .classScore, .collectionScore).show)):not([owner="true"]) {
  /* hide bkmk sections, classes, and collections that have no shown bkmks */
  /* hide class, hide collection, hide section */
  display: none;
}

/* "white-space: pre-wrap;" : in combo with "\A" in content allows line break */
#bookmarks_container:not(:has(.show)):before,
#bookmarks_container:not(:has(.show)):after {
  content: 'No Matches Found';
  margin: 12px;
  padding: 6px;
  display: block;
  margin-top: 1em;
  font-style: italic;
  white-space: pre-wrap;
  background: #333333;
  margin-bottom: 0;
  text-align: center;
  font-size: 18px;
}

#bookmarks_container:not(:has(.show)):after {
  content: '- Make sure you spelled everything correctly. \A\A - Try adding or removing some filters.';
  margin-top: 0;
  text-align: left;
  font-size: 16px;
}



/* MY SCORES */
/* if my scores is empty */
#myScores:not(:has(li)):after {
  content: 'Your saved music will appear here.';
  display: block;
  font-weight: normal;
  color: #999;
}

.bkmkUtils {
  position: absolute;
  right: 0;
  bottom: 0px;
  height: 100%;
  display: flex;
  color: #ccc;
  fill: #ccc;
  align-items: center;
}

.bkmkUtils .contextMenuTrigger {
  width: 5px;
  padding: 0 6px;
  position: relative;
}

.bkmkUtils .contextMenuTrigger:hover {
  fill: #fff;
}

.bkmkUtils .dragHandleCourtesy {
  cursor: move;
}

.bkmkUtils :is(.dragHandleCourtesy, .saving, .saved) {
  width: 18px;
}

.bkmkUtils :is(.saving, .saved) {
  display: none;
  margin-right: 6px;
}

/* my score utils, my collection utils, my classes utils */
#myScoresUtils,
#myCollectionsUtils,
#myClassesUtils,
.sidebar_section_utils {
  display: flex;
  fill: #ccc;
  gap: 4px;
  width: calc(100% - 6px);
  position: relative;
}

#myScoresUtils>span,
#myCollectionsUtils>span,
#myClassesUtils>span,
.sidebar_section_utils>span {
  width: 1em;
  cursor: pointer;
}

#myScoresUtils>span:hover,
#myCollectionsUtils>span:hover,
#myClassesUtils>span:hover,
.sidebar_section_utils>span:hover {
  fill: #fff;
}

#loadScoresContainer label {
  display: inline-block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

input#loadScores {
  width: 0 !important;
  height: 0 !important;
  position: absolute;
  appearance: none;
  -webkit-appearance: none;
  left: -9999px;
  /*<-- hide the ios file choser icon */
}

#newScore,
#newCollection,
#newClass {
  margin-right: auto;
}

#myScoresUtils h1,
#myCollectionsUtils h1,
#myClassesUtils h1,
.sidebar_section_utils h1 {
  padding: 0;
  margin-right: auto;
}

/* SAVING INDICATOR */
.savingIndicator {
  width: 18px;
  display: flex;
}

.savingIndicator span {
  cursor: default;
  width: 100%;
  display: none;
}

.savingIndicator span:hover {
  fill: unset;
}

.savingIndicator span svg {
  width: 100%;
}

/* failed save indicator */
.savingIndicator span.savingIndicator_failedSave {
  fill: #ff3333;
}

/* saved indicator */
.savingIndicator span.savingIndicator_saved {
  fill: hsl(120 100% 60% / 1);
}

.sidebar_section_utils span.classHomepageTrigger {
  /* push icons to the right */
  margin-left: auto;
}


/* MY COLLECTIONS */
/* check for teacher sign in */
/* if my collections section is empty */
#myCollections:not(:has(ul.collection)):after {
  display: block;
  font-weight: normal;
  color: #999;
}

/* if my collections section is empty and teacher is NOT signed in */
#myCollections:not(.teacher-is-signed-in):not(:has(ul.collection)):after {
  content: 'Please sign in to use this feature.';
}

/* if my collections section is empty and teacher IS signed in */
#myCollections.teacher-is-signed-in:not(:has(ul.collection)):after {
  content: 'Click the New Collection button to create a collection.';
}


/* if a collection is empty */
#myCollections ul.collection:not(:has(li)):after {
  content: 'Right-click a score to add it to a collection.';
  display: block;
  font-weight: normal;
  color: #999;
}

/* if a collection is empty and teacher is NOT signed in */
#myCollections:not(.teacher-is-signed-in) ul.collection:not(:has(li)):after {
  /* this one shouldn't be possible */
  content: 'How has this happend? Something has gone wrong.';
}

/* if a collection is empty and teacher IS signed in */
#myCollections.teacher-is-signed-in ul.collection:not(:has(li)):after {
  content: 'Click the New Collection button to create a collection.';
}


ul#myCollections {
  display: flex;
  flex-direction: column;
}

ul.collection {
  list-style-type: none;
  padding: 0;
  position: relative;
}

span.contextMenuTrigger {
  display: block;
  width: 5px;
  position: absolute;
  right: 0;
  fill: #ccc;
  cursor: pointer;
  padding: 0 2px;
}

span.contextMenuTrigger:hover {
  fill: #fff;
}

#myCollections h1.collectionName,
#myClasses h1.className {
  text-align: left;
  margin-left: 14px;
  flex-grow: 1;
}

#myCollections li.collectionScore,
#myClasses li.classScore {
  position: relative;
  cursor: pointer;
  padding: 6px 12px;
  padding-right: 30px;
}

#myCollections li.collectionScore:hover,
#myClasses li.classScore:hover {
  color: #888;
}

.collectionScore .dragHandleCourtesy,
.classScore .dragHandleCourtesy,
#myScores .dragHandleCourtesy {
  width: 14px;
}

.collectionScore .contextMenuTrigger,
.classScore .contextMenuTrigger {
  width: 4px;
  padding-right: 2px;
}

#myCollections li.collectionScore.active,
#myClasses li.classScore.active {
  color: #888;
}

/* collapsed sections */
#myCollections ul.collection h1.collectionName::before,
#myClasses ul.class h1.className::before,
.score_bookmark_section .section_heading h1:before,
.score_bookmark_section h1.section_heading:before {
  content: '\276F';
  font-size: 12px;
  display: block;
  position: absolute;
  left: 2px;
  transform: rotate(90deg);
  transition: all 300ms;
}

.score_bookmark_section .section_heading h1:before,
.score_bookmark_section h1.section_heading:before {
  position: relative;
  display: inline-block;
  margin-right: 12px;
}

#myCollections ul.collection,
#myClasses ul.class {
  height: auto;
  overflow: hidden;
}

#myCollections ul.collection.collapsed h1.collectionName::before,
#myClasses ul.class.collapsed h1.className::before,
.score_bookmark_section.collapsed .section_heading h1::before,
.score_bookmark_section.collapsed h1.section_heading:before {
  transform: rotate(0deg);
}

/* Sidebar Subsections */
ul.score_bookmark_subsection {
  border: 1px solid #666;
  border-radius: 8px;
  padding: 8px !important;
  width: calc(100% - 16px) !important;
  background: #2a2a2a;
  margin-top: 8px;
  box-shadow: 0 2px 0px 0px var(--color2) inset;
}

ul.score_bookmark_subsection.collapsed {
  height: 16px !important;
}

.classUtils .contextMenuTrigger {
  right: -10px;
}

/* MY CLASSES */

/* my classes sidebar section */
/* check for teacher sign in */
ul#myClasses:not(.teacher-is-signed-in):not(:has(ul.class)):after {
  /* user isn't a teacher and section has no classes */
  content: 'Click the Join Class button to enter a class code.';
  color: #999;
  display: block;
  font-weight: normal;
}

ul#myClasses.teacher-is-signed-in:not(:has(ul.class)):after {
  /* user IS a teacher and section has no classes */
  content: 'Click the paper icon next to "My Classes" to add a class.';
  color: #999;
  display: block;
  font-weight: normal;
}

#myClasses:not(.teacher-is-signed-in) span#newClass {
  /* new class button */
  /* user isn't a teacher */
  display: none;
}

div#myClassesUtils {
  margin-bottom: 4px;
}

#myClasses:not(.teacher-is-signed-in) #myClassesUtils h1 {
  /* "New Class" text */
  /* center it if teacher isn't signed in */
  margin-left: auto;
}

/* class */
ul.class {
  padding: 0;
  width: 100%;
  position: relative;
  list-style-type: none;
  height: auto;
  overflow: hidden;
}

/* if a class is empty */
.class:not(:has(li)):after {
  content: 'Right-click a score to add it to a class that you own.';
  display: block;
  font-weight: normal;
  color: #999;
}

#myClasses:not(.teacher-is-signed-in) .class:not(:has(li)):after {
  content: 'Your teacher has not added any music to this class yet.';
}

/* new class modal */
.new_class_modal {
  --w: 450px;
  --totalW: calc(var(--w) + 12px);
  --h: 300px;
  --labelWidth: 321px;
  position: absolute;
  width: var(--w);
  padding: 6px;
  height: var(--h);
  top: calc(var(--header_height) + 6px);
  left: calc(50% - (var(--totalW)/2));
  background: #fff;
  border: 2px solid var(--color1);
  box-shadow: 10px 10px 10px;
  display: flex;
  flex-flow: column nowrap;
  z-index: 100;
}

.new_class_modal h1 {
  font-size: 26px;
  margin-top: 0;
  margin-bottom: 6px;
}

.new_class_modal p.helperTxt {
  color: #666;
  font-style: italic;
}

.new_class_modal>input[type="text"] {
  font-size: 24px;
  background: #eee;
  border: 2px solid #333;
  border-radius: 0.5em;
  transition: all 200ms;
}

.new_class_modal>input[type="text"]:hover,
.new_class_modal>input[type="text"]:focus {
  background: #fff;
}

.new_class_modal>input[type="text"].invalid {
  border: 2px solid #b90000;
  color: #b90000;
}

.new_class_modal>input[type="text"].valid {
  border-color: #4bd130;
}

.new_class_modal p.error_text {
  color: #b90000;
  padding: 0;
  margin-top: 2px;
  border: none;
  font-size: 16px;
}

.new_class_modal>input[type="text"].valid+.error_text:after {
  /* new class code success message  */
  content: 'Code is available.  Click "Create Class" to continue.';
  display: block;
  height: 22px;
  width: 100%;
  position: absolute;
  bottom: -2em;
  color: hsl(110 100% 17% / 1);
  background: #d3ffca;
  text-align: center;
}

.new_class_modal .buttons {
  display: flex;
  gap: 6px;
  position: absolute;
  bottom: 0;
  padding: 6px 0;
  width: calc(100% - 12px);
  justify-content: center;
}

/* new class code suggestions */
.new_class_modal div.suggestions>ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  margin-left: 12px;
  display: flex;
  gap: 6px;
  justify-content: space-around;
  font-size: 18px;
}

.new_class_modal div.suggestions>ul>li {
  cursor: pointer;
  border-radius: 12px;
  padding: 2px 12px;
  border: 2px solid var(--color2);
  background: rgb(215 255 253);
}

.new_class_modal div.suggestions>ul>li:hover {
  background: rgb(152 247 243);
}

/* class homepage modal, class settings modal */
.classPageModal {
  --w: min(600px, calc(100vw - 24px));
  z-index: 1000;
  position: absolute;
  background: #fff;
  border: 4px solid var(--color2);
  left: calc(50% - var(--w)/2 - 12px);
  top: calc(var(--header_height) + 6px);
  padding: 6px;
  width: var(--w);
  font-family: 'Montserrat';
}

.classPageModal .classPageHeader {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  width: calc(100% - 30px);
}

.classPageHeader .button1 {
  display: flex;
  font-size: 14px;
  align-items: center;
  gap: 4px;
  width: min-content;
}

.classPageModal .close {
  cursor: pointer;
  position: absolute;
  top: 0;
  right: 0;
}

.classPageModal .close svg {
  width: 30px;
}

.classPageModal .savingIndicator {
  margin-right: 0;
  margin-left: 6px;
  width: 30px;
}

.classPageModal h1 {
  display: inline;
  margin: 0;
  margin-right: auto;
}

.classPageModal .subheading-classCode {
  color: #666;
  margin: 1em 0;
  font-style: italic;
  font-weight: bold;
  font-size: 18px;
}

.classPageModal .subheading-classCode:before {
  content: 'Class Code: ';
  margin-right: 6px;
  font-weight: normal;
}

.classPageModal textarea {
  width: calc(100% - 6px);
  min-height: 8em;
}

.classPageModal .buttons {
  display: flex;
  justify-content: center;
}

.classPageModal .update_content_button {
  font-size: 16px;
}

.classPageModal .settings_section {
  margin: 1em 0;
}

.classPageModal .settings_section label {
  display: flex;
  gap: 1em;
  align-items: center;
}

/* class settings */
.settings_section.delete_class {
  display: flex;
  align-items: center;
  gap: 1em;
}

.settings_section.delete_class p {
  color: #d12929;
  font-weight: bold;
}

.setting_className input {
  font-size: 18px;
}

/* class selection modal */
select#class_selection {
  width: 100%;
}

/* Join Class 
header button */
.join_class_button {
  margin-right: auto;
  margin-left: auto;
  width: 134px;
  justify-content: flex-start;
}

.join_class_button span.button_txt {
  left: 46px;
}

/* Join Class Page
join class modal */
#join_class_modal {
  --width: 250px;
  color: #333;
  width: var(--width);
  width: var(--width);
  position: absolute;
  left: calc(50% - var(--width)/2 - 6px);
  border: 6px solid var(--color2);
  border-radius: 16px;
  height: auto;
  box-shadow: 0 0 20px;
  font-family: 'Montserrat';
  top: calc(var(--header_height) + 8px);
}

#join_class_modal :is(h1, p) {
  text-align: center;
}

#join_class_modal label {
  display: flex;
  flex-flow: column;
  align-items: center;
}

#join_class_modal input {
  --w: 200px;
  font-size: 23px;
}

#join_class_modal .buttons {
  justify-content: center;
}

/* Share Class Modal */
.shareClassModal {
  --h: 200px;
  top: calc(33vh - (var(--h) / 2));
  height: var(--h);
  display: flex;
  flex-direction: column;
  width: 550px;
  left: calc(50% - 275px);
}

.shareClassModal .classPageHeader h1 {
  display: flex;
  width: 100%;
}

.shareClassModal .classPageHeader h1 span {
  color: #999;
  font-style: italic;
  margin-left: auto;
  margin-right: auto;
}

.shareClassModal .share_link_container {
  display: flex;
  justify-content: space-between;
  gap: 1em;
  margin-top: auto;
  margin-bottom: auto;
  font-size: 16px;
  cursor: pointer;
  background-color: #c3ffed;
  user-select: none;
}

.shareClassModal .share_link_container p {
  display: flex;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
}

.shareClassModal .share_link_container span {
  display: flex;
  padding: 0 1em;
}

.shareClassModal .share_link_container span svg {
  width: 1.5em;
}

.modal .class-code-container {
  font-family:'Montserrat'; 
  text-align:center; 
  user-select:none;
}
.modal .class-code-container span.callout-neutral {
  font-family:monospace; 
  user-select:text;
}

/* CUSTOM MENU */
.custom-menu {
  display: none;
  z-index: 1000;
  position: absolute;
  overflow: hidden;
  border: 1px solid #CCC;
  white-space: nowrap;
  font-family: sans-serif;
  background: #FFF;
  color: #333;
  border-radius: 0 5px;
  padding: 0;
  margin: 0;
  filter: drop-shadow(2px 2px 2px #333);
}

.custom-menu.offscreenY {
  border-radius: 5px 0;
}

.custom-menu li {
  padding: 8px 12px;
  cursor: pointer;
  list-style-type: none;
  transition: all .3s ease;
  user-select: none;
  display: flex;
  align-items: center;
}

.custom-menu li:hover {
  background-color: #DEF;
}

.custom-menu li svg {
  width: 1.5em;
  margin-right: 0.5em;
}

/* sidebar buttons */
#sidebar_buttons {
  position: sticky;
  top: 0;
  width: 34px;
  display: flex;
  flex-flow: column wrap;
  padding: 6px 0;
  background: #333;
  z-index: 100;
}

#sidebar_buttons>span {
  cursor: pointer;
  width: calc(100% - 4px);
  margin-left: 2px;
  height: 40px;
  display: flex;
  align-content: center;
  justify-content: center;
  flex-wrap: wrap;
}

#sidebar_buttons .spaceAbove {
  margin-top: 1em;
}

#sidebar_buttons span svg {
  font-size: 1.75em;
}

/* Sidebar Resize Handle */
#sidebar_toggle {
  /* unset the following, because jquery ui sets them and messes up the layout */
  right: unset;
  top: unset;
  position: unset;
  font-size: unset;
}

#sidebar_toggle {
  color: #fff;
}

/* Print */
#print {
  /* the sidebar button */
  color: #cdcdcd;
}

#print:hover {
  color: #fff;
}

#sidebar_buttons #print.active {
  --h: 255;
  --s: 0%;
  --l: 80%;
  /*<- for glow*/
}

#print.active {
  color: #fff;
}

#printMenu {
  display: none;
  background: #333;
  padding: 6px;
  border-radius: 16px;
  position: absolute;
  left: 46px;
  top: calc(142px + var(--header_height) - 3.5em - 6px*2);
  width: max-content;
  z-index: 100;
}

body:has(#print.active) #printMenu {
  display: flex;
  flex-flow: column wrap;
  gap: 6px;
}

#printMenu:after {
  content: '';
  position: absolute;
  top: calc(50% - 10px);
  left: -10px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 10px solid #333;
}

#printMenu span {
  color: #ddd;
  text-align: center;
}

#printMenu span:hover {
  cursor: pointer;
  color: #fff;
}

/* fingerings toggle */
#sidebar_buttons #fingerings_toggle {
  --h: 182deg;
}

#sidebar_buttons #fingerings_toggle {
  color: hsl(var(--h) var(--s) var(--l));
}

/* highlights toggle */
#sidebar_buttons #highlights_toggle {
  --h: 64deg;
}

#sidebar_buttons #highlights_toggle {
  color: hsl(var(--h) var(--s) var(--l));
}

/* notenames toggle */
#sidebar_buttons #notenames_toggle {
  --h: 122deg;
}

#sidebar_buttons #notenames_toggle {
  color: hsl(var(--h) var(--s) var(--l));
  align-content: flex-start;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
}

#sidebar_buttons #notenames_toggle svg {
  transform: scale(0.4) translate(0px, -112px);
}

#sidebar_buttons #notenames_toggle:hover svg {
  filter: brightness(1.5);
}

#notenames_toggle.disabled svg :is(path, rect) {
  fill: hsl(var(--h), var(--s), var(--l)) !important;
}

#sidebar_buttons #notenames_toggle.disabled:hover svg {
  filter: none;
}

/* edit toggle */
#sidebar_buttons #show_editors {
  --h: 300deg;
}

#sidebar_buttons #show_editors {
  color: hsl(var(--h) var(--s) var(--l));
  border: 2px solid;
  border-radius: 4px;
  width: calc(100% - 8px);
}

/* inactive saturation and lightness */
#sidebar_buttons span {
  --s: 60%;
  --l: 40%;
}

/* hover saturation and lightness */
#sidebar_buttons span:hover,
#sidebar_buttons span.active:hover {
  --s: 100%;
  --l: 60%;
}

/* active saturation and lightness */
#sidebar_buttons span.active {
  --s: 100%;
  --l: 60%;
}

/* active span */
#sidebar_buttons span.active {
  filter: drop-shadow(0px 0px 4px hsla(var(--h) var(--s) calc(var(--l) - 25%) / 1));
}

/* disabled span */
#sidebar_buttons span.disabled {
  cursor: default;
  --s: 0;
}

#sidebar_buttons span.disabled:hover {
  --l: 40;
}


/* CUSTOM TOOLTIP STYLES */
/* Dark Theme */
.darkTheme.ui-widget.ui-widget-content {
  border: 1px solid #b3b3b3 !important;
}

.darkTheme.ui-widget-content {
  border: 1px solid #aaaaaa !important;
  background: #333 !important;
  color: #eee !important;
}

.darkTheme.ui-widget {
  font-family: Verdana, Arial, sans-serif !important;
  font-size: 1em !important;
}

.darkTheme.ui-widget-shadow {
  -webkit-box-shadow: -4px 4px 4px #7e7e7e !important;
  box-shadow: -4px 4px 4px #7e7e7e !important;
}


/* PARTS */
.abcEditor {
  width: calc(100% - 26px);
  height: 15em;
  padding: 2px 6px;
  margin: 0 6px;
  display: none;
  position: sticky;
  z-index: 1;
}

.abc-warnings {
  color: #b90000;
  padding: 2px 6px;
  display: none;
  position: sticky;
  top: 281px;
  background: #fff;
  z-index: 1;
}

.abc-warnings:not(:has(span)) {
  /* hide warnings if there aren't any warnings */
  display: none !important;
}

/* show Unsaved Changes text below any editors that are dirty */
.abcEditor.abc_textarea_dirty~.instrument_tunes .abcjs-container:before {
  content: 'Unsaved Changes';
  display: block;
  width: 95%;
  height: 1em;
  position: absolute;
  top: 0;
  left: 0;
  color: #b90000;
  padding: 2px 6px;
}

.part .part-top-bg {
  width: 100%;
  height: 49px;
  margin-bottom: -49px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1;
}

/* Part Utils */
.part-utils-container {
  display: inline-flex;
  position: sticky;
  top: 0;
  left: 0;
  z-index: 1;
  align-items: center;
  width: 100%;
  flex-flow: row wrap;
  padding-top: 2px;
  z-index: 2;
  background: #fff;
  justify-content: flex-end;
}

.part h1 {
  height: 1em;
  font-size: 28px;
  text-transform: capitalize;
  margin: 0;
  display: inline-block;
  margin-right: auto;
  margin-left: 8px;
}

.partheading {
  /* this is the part heading in the svg. it will be shown in print */
  display: none;
}

.part-utils,
.abcEditor-utils {
  display: inline-flex;
  flex-flow: row wrap;
  margin: .5em 18px 6px 6px;
  gap: 20px;
}

.part-utils {
  margin: 0;
  width: max-content;
  min-height: 29px;
  padding: 6px;
  border-radius: 8px;
  border: 3px solid var(--color2);
  margin-right: 4px;
  background: hsl(177 58.55% 79.46%);
  justify-content: flex-end;
  max-height: 58px;
  row-gap: 0;
  align-items: center;
}

.part-utils.hidden .util {
  display: none;
}

.part-utils-toggle {
  font-size: 28px;
  cursor: pointer;
  transition: all 1s;
  position: sticky;
  top: 0;
  z-index: 1;
}

.part-utils-toggle svg {
  transform: rotate(0deg);
  transition: transform 500ms;
}

.part-utils-toggle:hover svg {
  transform: rotate(-170deg);
}

:is(.part-utils, .abcEditor-utils) span.util-button {
  color: #333;
  height: 100%;
}

:is(.part-utils, .abcEditor-utils) span.util-button:hover {
  color: #000;
  transform: scale(1.1);
  cursor: pointer;
}

.part-utils span.util-button.hide:hover {
  filter: opacity(0.5);
}

.part:has(.abcEditor[disabled]) .abcEditor-utils {
  /* hide editor utils if the textarea is disabled */
  display: none !important;
}

.ui-icon-caret-1-e {
  background-position-y: 7px !important;
}

.part :is(h1, .part-utils, .abceditor, .abcEditor-utils) {
  position: sticky;
  top: 0;
  z-index: 2;
}

/* playback */
.playback.util {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 18px;
}

.part-utils .playback-controls {
  position: absolute;
  top: calc(100% + 0px);
  right: 0;
  display: flex;
  gap: 4px;
  align-items: center;
  width: max-content;
  height: 30px;
  padding-right: 4px;
  padding-left: 4px;
  background: #ace9e6;
  border: 2px solid var(--color2);
  border-radius: 4px;
  justify-content: flex-end;
}

.part-utils .playback-controls.hidden {
  display: none;
}

.playback-controls .fa-xmark {
  height: 24px;
  padding: 4px;
  cursor: pointer;
}

.abcjs-inline-audio .abcjs-tempo-wrapper {
  font-size: 14px;
}

.abcjs-inline-audio .abcjs-tempo-wrapper {
  font-size: 12px;
}

.abcjs-inline-audio .abcjs-tempo-wrapper {
  gap: 4px;
}

/* .synth_controller {
  margin: auto;
  flex-grow: 1;
} */

.playback-controls select {
  max-width: 186px;
}

.synth_controller .abcjs-inline-audio {
  justify-content: flex-end;
}

.abcjs-btn.abcjs-seek-forward,
.abcjs-btn.abcjs-seek-backward {
  color: #fff;
  font-size: 18px;
}

.abcjs-btn.abcjs-seek-forward:hover,
.abcjs-btn.abcjs-seek-backward:hover {
  color: #ccc;
}

/* current note toggler */
input.current_note_highlight_checkbox {
  width: 20px;
  height: 20px;
  position: relative;
  background: none;
  border: none;
}

input.current_note_highlight_checkbox:checked {
  background: none;
}

div.part input.current_note_highlight_checkbox:after {
  content: '';
  width: 100%;
  height: 10px;
  background: url(/assets/notes/wholenote.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: absolute;
  left: 1px;
  transform-origin: unset;
  clip-path: unset;
  filter: invert(1);
}

div.part input.current_note_highlight_checkbox:checked:after {
  --shadow-color: var(--color2);
  --shadow-blur: 2px;
  filter: invert(1) drop-shadow(2px 0px var(--shadow-blur) var(--shadow-color)) drop-shadow(-2px 0px var(--shadow-blur) var(--shadow-color)) drop-shadow(0px -2px var(--shadow-blur) var(--shadow-color)) drop-shadow(0px 2px var(--shadow-blur) var(--shadow-color));
}

div.part input.current_note_highlight_checkbox:hover:after {
  opacity: 0.75;
}

/* current synth note */
.part:has(.current_note_highlight_checkbox:checked) .abcjs-note.current_synth_note {
  fill: black;
  stroke: black;
  --shadow-color: var(--color2);
  --shadow-blur: 2px;
  filter: drop-shadow(2px 0px var(--shadow-blur) var(--shadow-color)) drop-shadow(-2px 0px var(--shadow-blur) var(--shadow-color)) drop-shadow(0px -2px var(--shadow-blur) var(--shadow-color)) drop-shadow(0px 2px var(--shadow-blur) var(--shadow-color));
}

.part:has(.playback-controls.hidden) .current_synth_note {
  filter: unset !important;
}

.instrument_tunes {
  /* push the tunes below the playback controller */
  margin-top: 10px;
}

/* editor utils */
.abcEditor-utils {
  z-index: 3 !important;
  display: flex;
  border: 1px solid;
  border-bottom: none;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  margin: 0 6px -1px 6px;
  padding: 0 6px;
  top: 48px !important;
  background: #fff;
  row-gap: 2px;
  column-gap: 0;
}

.abcEditor-utils.hidden {
  display: none !important;
}

.ui-menu.editorUtilMenu {
  position: absolute;
  top: calc(1em + 6px);
  width: max-content;
  display: none;
}

span.editorUtilMenuToggle {
  line-height: 150%;
  background: var(--color2);
  padding: 0 4px;
  border: 1px solid #000;
  min-width: 74px;
  text-align: center;
  user-select: none;
}

span.editorUtilMenuToggle:not(.no-menu):after {
  /* triangle */
  --size: 6px;
  content: '';
  border: var(--size) solid transparent;
  border-top: calc(var(--size) * 1.5) solid var(--color2-dark);
  filter: drop-shadow(1px 1px 0px #333);
  display: inline-block;
  width: 0;
  height: 0;
  position: relative;
  bottom: calc(var(--size) * -1);
  margin-left: var(--size);
}

span.editorUtilMenuToggle.no-menu.spaceLeft {
  margin-left: 8px;
}

span.editorUtilMenuToggle.no-menu.shortWidth {
  min-width: unset;
  padding: 0 12px;
}

span.editorUtilMenuToggle.no-menu.floatRight {
  margin-left: auto;
}

ul.editorUtilMenu {
  list-style-type: none;
  margin: 0;
  padding: 0;
  position: absolute;
  display: none;
  user-select: none;
  top: 24px;
  border: 2px solid var(--color2);
  width: max-content;
}

ul.editorUtilMenu li {
  background: #fff;
  cursor: pointer;
  padding: 2px 12px 2px 4px;
}

ul.editorUtilMenu li:hover {
  background: hsl(162 100% 77% / 1);
}

ul.editorUtilMenu.submenu {
  top: 0;
  left: 100%;
}

li.editorUtilMenuToggle.submenuToggle:after {
  content: '';
  width: 8px;
  position: absolute;
  right: -14px;
  margin-top: 2px;
  border: 8px solid transparent;
  border-left: 8px solid var(--color2);
}

/* Shortcuts and ABC Help */
/* shortcuts */
.helpModal {
  display: flex;
  flex-flow: column nowrap;
  position: fixed;
  width: 500px;
  height: 420px;
  overflow-y: scroll;
  padding: 12px;
  padding-bottom: 2px;
  left: calc(50% - 250px - 24px + 130px);
  bottom: 24px;
  background: #333;
  color: #fff;
  z-index: 999;
  box-shadow: 12px 12px #00000050, -12px -12px #00000050;
}

.helpModal.hidden {
  display: none;
}

.helpModal>h1 {
  margin-top: 0;
  margin-bottom: 0;
}

.helpModal .content {
  overflow-y: scroll;
}

.helpModal .content div.table div.tablerow {
  padding: 6px;
  display: flex;
  justify-content: space-between;
  border-bottom: 2px solid #bbb;
  flex-flow: row wrap;
  /* row-gap: 2px; */
}

.helpModal .content div.tablerow span {
  padding: 0 8px;
  display: flex;
  align-items: center;
}

.helpModal .content div.table>div.tablerow:first-of-type {
  border-top: 2px solid #bbb;
}

.helpModal .content div.table div.tablerow:has(div) {
  flex-direction: column;
}

.helpModal .content div.table div.tablerow:has(div)>span {
  margin-bottom: 6px;
}

.helpModal .content div.table div.tablerow>div {
  margin-left: 2em;
  border-bottom: 2px solid #999;
}

.helpModal .content div.table div.tablerow>div:hover {
  background: #5a5a5a;
}

.helpModal .content div.table div.tablerow>div:first-of-type {
  border-top: 2px solid #999;
}

.helpModal .content div.table>div.tablerow:hover {
  background: #4d4c4c;
}

.helpModal .close {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 32px;
  cursor: pointer;
}

p.helpModal_footer {
  margin: auto;
  color: hsl(0 0% 80% / 1);
  font-size: 15px;
  padding-top: 2px;
}

/* ABC Help */
#abcHelp_diagram {
  display: flex;
  flex-flow: column nowrap;
  background: #fff;
  color: #333;
  padding: 6px;
}

#abcHelp_diagram span[for] {
  cursor: pointer;
}

#abcHelp_diagram span[for]:hover {
  outline: 2px solid;
}

#abcHelp_diagram_container div.helptxt {
  display: none;
}

.helpModal code {
  background: #717171;
  color: #fff;
  padding: 2px 6px;
  border-radius: 2px;
}

div.table img {
  height: 24px;
}

img.invert {
  filter: invert(1);
}


/* Buttons */
a:is(.btn1,.btn2){
  text-decoration: none;
}

/* btn1 */
:is(button,a).btn1 {
  background: #333;
  color: unset;
  cursor: pointer;
  border: 2px solid var(--color1);
  border-radius: 6px;
  font-size: 18px;
  padding: 4px 12px;
  font-family: 'Montserrat';
  font-weight: bold;
}

:is(button,a).btn1.active {
  background: var(--color1);
  color: #333;
}

header :is(button,a).btn1:hover {
  border-color: hsl(162 100% 80% / 1);
  color: white;
  background-color: rgba(0, 226, 160, 0.1);
  border: 2px solid var(--color1);
}

/* btn2 */
:is(button,a).btn2 {
  background: var(--color2);
  color: #333;
  cursor: pointer;
  border: 2px solid #333;
  border-radius: 6px;
  font-size: 18px;
  padding: 4px 12px;
}

:is(button,a).btn2.active {
  border-color: var(--color2);
  background: #333;
}

:is(button,a).btn2:hover {
  background-color: var(--color2-light);
}

/* btn3 */
:is(button,a).btn3 {
  background: var(--color1);
  color: #333;
  cursor: pointer;
  border: 2px solid #333;
  border-radius: 6px;
  font-size: 18px;
  padding: 4px 12px;
}

:is(button,a).btn3.active {
  border-color: var(--color2);
  background: #333;
}

:is(button,a).btn3:hover {
  background-color: var(--color2-light);
}

/* loading animations */
.loader-blinking-dots {
  width: 1em;
  aspect-ratio: 4;
  background: radial-gradient(circle closest-side,#000 90%,#0000) 0/calc(100%/3) 100% space;
  clip-path: inset(0 100% 0 0);
  animation: l1 1s steps(4) infinite;
}
@keyframes l1 {to{clip-path: inset(0 -34% 0 0)}}

.loader-fading-dots {
  width: 1em;
  aspect-ratio: 1;
  border-radius: 50%;
  animation: l5 1s infinite linear alternate;
}
@keyframes l5 {
    0%  {box-shadow: 20px 0 #000, -20px 0 #0002;background: #000 }
    33% {box-shadow: 20px 0 #000, -20px 0 #0002;background: #0002}
    66% {box-shadow: 20px 0 #0002,-20px 0 #000; background: #0002}
    100%{box-shadow: 20px 0 #0002,-20px 0 #000; background: #000 }
}

.loader-spinner {
  width: 1em;
  padding: 0.2em;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #25b09b;
  --_m: conic-gradient(#0000 10%,#000),
  linear-gradient(#000 0 0) content-box;
  -webkit-mask: var(--_m);
  mask: var(--_m);
  -webkit-mask-composite: source-out;
  mask-composite: subtract;
  animation: l3 1s infinite linear;
}
@keyframes l3 {to{transform: rotate(1turn)}}

/* editor help text */
.part .editor-help {
  display: none;
  position: sticky;
  top: 280px;
  left: 6px;
  width: calc(100% - 30px);
  height: min-content;
  background: #dfdfdf;
  padding: 2px 8px;
  border-radius: 0 0 4px 4px;
  color: #333;
  font-family: 'Montserrat';
  font-size: 12px;
  z-index: 1;
  text-align: center;
  margin-top: -4px;
  border: 1px solid #afaeae;
}


/* helper text 
 *   remember to include  :has(#show_editors.active)  for each one
*/
#main_container:has(#show_editors:not(.active)) .editor-help {
  display: none !important;
}

#main_container:has(#autoRenderMusic:not(:checked)):has(#show_editors.active) .part .editor-help {
  display: block;
}

#main_container:has(#autoRenderMusic:not(:checked)):has(#show_editors.active) .part.hidden .editor-help {
  display: none !important;
}

/* auto render helper text */
#main_container:has(#autoRenderMusic:not(:checked)) .part .editor-help:before {
  content: 'Auto Update Music is OFF - Use CTRL+SHIFT+ENTER to update the notation while editing.';
}

/* Parts */
.part .abcEditor {
  top: calc(var(--header_height) + 19px);
}

.part {
  position: relative;
}

/* hidden part */
.part.hidden :is(.extra_html, .instrument_tunes, .abc-warnings, .abcEditor, .abcEditor-utils) {
  display: none !important;
}

/* zoom part and Zoom All */
.part-utils .zoom {
  display: flex;
  margin-top: 8px;
}

.part-utils .zoom .svg-inline--fa {
  font-size: 20px;
  margin-top: -4px;
  cursor: pointer;
  color: var(--color1);
  filter: brightness(0.3);
  transition: filter 200ms;
}

.part-utils .zoom .svg-inline--fa:hover {
  filter: brightness(0.5);
}

.part-utils .zoom label {
  font-size: 10px;
  display: inline-block;
  position: relative;
}

.part-utils .zoom input {
  --trackH: 8px;
  --thumbH: 20px;

  width: 80px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
  transition: all 200ms;
  position: relative;
}

.part-utils .zoom input::-webkit-slider-runnable-track {
  /* track */
  background: var(--color2);
  height: var(--trackH);
  border-radius: 50%;
  transition: all 200ms;
}

.part-utils .zoom input::-webkit-slider-thumb {
  /* thumb */
  -webkit-appearance: none;
  appearance: none;
  background: var(--color1);
  margin-top: calc(var(--trackH)/2 - var(--thumbH)/2);
  height: var(--thumbH);
  width: calc(var(--thumbH)/2);
  border-radius: 50%;
  transition: all 200ms;
}

.part-utils .zoom .value_tracker {
  position: absolute;
  width: 4em;
  text-align: center;
  top: -14px;
  left: calc(100% - 1em);
  color: #999;
}

.part-utils .zoom input:hover {
  cursor: grab;
}

.part-utils .zoom input:hover::-webkit-slider-runnable-track,
.part-utils .zoom input:hover::-webkit-slider-thumb {
  filter: brightness(1.15);
}

.part-utils .zoom input:active {
  --thumbH: 32px;
  cursor: grabbing;
}

.part-utils .zoom input:active::-webkit-slider-runnable-track,
.part-utils .zoom input:active::-webkit-slider-thumb {
  filter: brightness(0.8);
}

.part-utils .zoom input:focus {
  outline: none;
}


/* transpose part util */
.part-utils .transpose label {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.part-utils .transpose label input {
  width: 2.5em;
  height: 75%;
  background: #ffffffdd;
  border: 2px solid #000000aa;
  border-radius: 4px;
  font-weight: bold;
}

.part-utils .transpose label input:hover {
  border-color: #000;
  background-color: #fff;
}

.part-utils .transpose label .icon,
.part-utils :is(.transpose_8vb, .transpose_8va, .transpose_part_to_key) {
  height: 100%;
  width: 36px;
  display: flex;
  justify-content: center;
  user-select: none;
}

.part-utils .transpose label .icon:hover {
  color: unset;
  filter: unset
}

div.part-utils span.transpose_part_to_key {
  height: 38px;
}

.part-utils .transpose label .icon {
  margin-right: -8px;
}

.transpose.util {
  height: 29px;
  display: flex;
  align-items: center;
  position: relative;
}

.part-utils div.tranpose_to_key_menu {
  left: unset;
  right: calc(var(--menu-w) * -0.5 + 18px);
  top: calc(100% + 14px);
}

.part-utils div.tranpose_to_key_menu:before {
  border-right: var(--w) solid transparent;
  border-bottom: var(--w) solid #333;
  top: calc(var(--w)*-2);
  left: calc(50% - var(--w));
  width: 0;
}

/* Transpose All & Zoom All */
#sidebar_buttons span#transpose_all {
  display: flex;
  height: fit-content;
  justify-content: center;
  position: relative;
}

#sidebar_buttons span#zoom_all {
  position: relative;
}

#transpose_all img {
  width: 27px;
  cursor: pointer;
  background: #eee;
  padding: 4px 0;
  border-radius: 6px;
  outline: 2px solid var(--color2);
}

#transpose_all img:hover,
#transpose_all.active img,
#zoom_all svg:hover,
#zoom_all.active svg {
  filter: brightness(1.25);
}

#transpose_all.disabled img {
  filter: brightness(0.5) contrast(0.6);
  cursor: default;
}

#sidebar_buttons .sidebar_buttons-number_input {
  width: 2.5em;
  height: 1.25em;
  font-size: 30px;
  position: absolute;
  top: calc(50% - 27px);
  left: 100%;
  border: 8px solid #333;
  border-left: none;
  border-radius: 0 4px 4px 0;
  text-align: center;
  display: none;
}

#sidebar_buttons .sidebar_buttons-number_input:focus-visible {
  outline: none;
}

#zoom_all svg {
  color: #eee;
}

#zoom_all label:after {
  content: '%';
  font-size: 16px;
  position: absolute;
  top: calc(10%);
  right: 40px;
  color: black;
  opacity: 0;
  transition: all 250ms;
}

#zoom_all.active label:after {
  right: -80px;
  opacity: 1;
}

#sidebar_buttons #zoom_all_input {
  width: 3em;
  text-align: center;
  top: calc(50% - 24px);
}

#zoom_all_dropdown {
  display: flex;
  width: 80px;
  position: absolute;
  left: calc(32px + 102px/2 - 40px - 8px);
  top: calc(100% + 8px);
  background: #fff;
  border-radius: 4px;
  flex-direction: column;
  flex-wrap: nowrap;
  font-size: 20px;
  text-align: center;
  box-shadow: 0px 0px 8px 0px #000;
  overflow: hidden;
  z-index: 9999;
}

#zoom_all_dropdown.hidden {
  display: none;
}

#zoom_all_dropdown span:hover {
  background: var(--color1);
}

/* transpose all menu */
/* transpose part menu */
#transpose_all_menu,
.part-utils .tranpose_to_key_menu {
  --menu-w: calc((var(--item-w) + var(--item-padding)*2) * var(--items-per-row));
  --item-w: 30px;
  --item-padding: 8px;
  --items-per-row: 3;
  display: flex;
  flex-flow: row wrap;
  width: var(--menu-w);
  background: #333;
  border-radius: 8px;
  position: absolute;
  left: calc(100% + 18px);
  top: calc(24px - (var(--item-w) + var(--item-padding)*2) * (12 / var(--items-per-row)) / 2);
  z-index: 999;
}

#transpose_all_menu.hidden,
.part-utils .tranpose_to_key_menu.hidden {
  display: none;
}

#transpose_all_menu:before,
.part-utils .tranpose_to_key_menu:before {
  --w: 12px;
  content: '';
  width: var(--w);
  position: absolute;
  top: 50%;
  left: calc(var(--w) * -3);
  border: var(--w) solid transparent;
  border-right: var(--w) solid #333;
}

#transpose_all_menu>div,
.part-utils .tranpose_to_key_menu>div {
  width: var(--item-w);
  padding: var(--item-padding);
  border-radius: 8px;
  color: #fff;
  font-weight: bold;
  font-size: 24px;
  text-align: center;
  cursor: pointer;
  user-select: none;
}

#transpose_all_menu>div:hover,
.part-utils .tranpose_to_key_menu>div:hover {
  background: var(--color1)
}

/* RIGHTBAR */
#rightbar {
  background: #333;
  color: #fff;
  position: relative;
  padding-right: 0;
  padding-left: 0;
  width: 235px;
  height: calc(100vh - var(--header_height));
  transition: width 250ms;
  white-space: nowrap;
  display: flex;
  flex-flow: column;
}

.mobile #rightbar {
  overflow-x: hidden;
}

#rightbar.hidden {
  width: 42px;
}

#rightbar.hidden #rightbar_toggle svg.fa-info {
  transform: translateX(0.5em);
}

#rightbar #rightbar_toggle svg.fa-info {
  transform: translateX(0.25em);
}

#rightbar #rightbar_toggle svg.fa-caret-right {
  transform: translateX(0.25em) rotate(0deg);
}

#rightbar.hidden #rightbar_toggle svg.fa-caret-right {
  transform: translateX(-0.5em) rotate(180deg);
}

#rightbar .rightbar-heading {
  display: flex;
  align-items: center;
}

#rightbar_toggle {
  cursor: pointer;
  font-size: 30px;
  margin-left: 0;
  border-radius: 22px;
  padding: 4px;
  padding-top: 0;
  margin-right: 4px;
  user-select: none;
  position: absolute;
  transition: all 500ms;
}

#rightbar_toggle svg {
  font-size: 28px;
}

#sidebar:not(.hidden)~#rightbar.hidden #rightbar_toggle {
  /* otherwise it pushes it over */
  margin-left: 0;
}

/* switch toggler icon based on rightbar hidden state */
#rightbar.hidden #rightbar_toggle svg.fa-circle-xmark {
  display: none;
}

#rightbar:not(.hidden) #rightbar_toggle svg.fa-circle-info {
  display: none;
}


#rightbar h1 {
  display: inline;
  margin: 0;
  margin-left: 38px;
}

div#song_info_container {
  overflow-y: scroll;
  overflow-x: hidden;
  padding-left: 4px;
  padding-bottom: 20px;
  padding-right: 8px;
}

#rightbar h2 {
  margin: 0;
  margin-top: 12px;
  font-size: 20px;
  text-align: center;
  position: sticky;
  top: 0;
  background: #333;
  z-index: 1;
  text-wrap: wrap;
  text-align: left;
}

#rightbar .song_info {
  display: flex;
  flex-flow: column-reverse;
  white-space: normal;
}

#rightbar .song_info:after {
  content: '';
  width: 80%;
  height: 2px;
  background: #7b7b7b;
  margin-left: 10%;
  margin-top: 12px;
}

#rightbar .song_info>div:empty {
  display: none;
}

#rightbar .song_info>div {
  margin-top: 12px;
  padding-left: 12px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 12px;
  color: #e6e6e6;
  opacity: 1;
  transition: opacity 250ms;
}

#rightbar .song_info>div:before {
  content: attr(heading);
  text-transform: capitalize;
  display: block;
  margin-bottom: 2px;
  margin-left: -8px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 14px;
  color: #fff;
  font-weight: bold;
}

.song_info>div p {
  margin: 0;
}

#rightbar span.search_bkmks {
  cursor: pointer;
  margin-right: 16px;
  border-bottom: 1px solid var(--color1);
  position: relative;
}

#rightbar span.search_bkmks:before {
  content: '#';
  color: var(--color1);
  position: absolute;
  left: -10px;
}

#rightbar span.search_bkmks:hover {
  color: var(--color1);
}

#rightbar .note-range-instrument {
  text-transform: capitalize;
  font-size: 14px;
  cursor: pointer;
  margin-top: 4px;
}

#rightbar .note-range-instrument:hover {
  color: #999;
}

div[heading="rhythms"] p {
  display: grid;
  grid-template-columns: 50% 50%;
  align-items: center;
}

div[heading="rhythms"] p>div {
  width: 200% !important;
}

div[heading="difficulty"] p {
  display: flex;
  flex-flow: row-reverse;
  justify-content: flex-end;
}

/* rightbar collapsed: info icons */
#rightbar.hidden #song_info_container::-webkit-scrollbar {
  width: 0;
}

#rightbar.hidden .song_info>div>*,
#rightbar.hidden .song_info>div:before {
  opacity: 0;
  height: 0;
}

#rightbar.hidden .song_info * {
  cursor: default;
}

/* song info icons */
#rightbar.hidden .song_info>div:not(.no-info-icon) {
  height: 36px;
  margin-top: 6px;
}

#rightbar.hidden .song_info>div.no-info-icon {
  margin: 0;
  padding: 0;
  height: 0;
}

#rightbar:not(.hidden) .song_info>div .info_icon {
  display: none;
}

#rightbar.hidden .song_info>div .info_icon {
  display: flex;
  opacity: 1;
  height: var(--size);
}

#rightbar .song_info>div .info_icon {
  --size: 18px;
  position: absolute;
  left: 4px;
  color: #333;
  background: #fefefe;
  font-size: var(--size);
  z-index: 1;
  text-transform: capitalize;
  padding: 6px;
  border-radius: 50%;
  width: var(--size);
  justify-content: center;
  align-items: center;
}

#rightbar.hidden #song_info_container>h2 {
  color: transparent;
  text-wrap: nowrap;
  margin-top: 0;
}

#rightbar.hidden #song_info_container>h2:after {
  content: attr(icon);
  font-size: 26px;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  text-align: center;
  color: #fff;
  font-weight: 100;
}

.info_icon_tooltip {
  z-index: 9999;
  background: #2c2c2c;
  color: #fefefe;
  position: fixed;
  max-width: 300px;
  padding: 2px 4px;
  border: 1px solid #686868;
  opacity: 0;
  transition: opacity 200ms;
}



/* HIGHLIGHTING */
#tunes_container {
  --cStringColor: purple;
  --gStringColor: green;
  --dStringColor: blue;
  --aStringColor: #ff4700;
  --eStringColor: teal;
  --A-color: green;
  --B-color: blue;
  --C-color: #ff4700;
  --D-color: rgb(189, 114, 1);
  --E-color: teal;
  --F-color: purple;
  --G-color: magenta;
}

:not(.highlight_notes) .abcjs-note {
  --selection_glow: var(--color1);
}

/* highlight each note a different color
*/
.highlight_notes .abcjs-note:has(.abcjs-notehead[data-name*="A" i]) {
  --note-color: var(--A-color);
}

.highlight_notes .abcjs-note:has(.abcjs-notehead[data-name*="B" i]) {
  --note-color: var(--B-color);
}

.highlight_notes .abcjs-note:has(.abcjs-notehead[data-name*="C" i]) {
  --note-color: var(--C-color);
}

.highlight_notes .abcjs-note:has(.abcjs-notehead[data-name*="D" i]) {
  --note-color: var(--D-color);
}

.highlight_notes .abcjs-note:has(.abcjs-notehead[data-name*="E" i]) {
  --note-color: var(--E-color);
}

.highlight_notes .abcjs-note:has(.abcjs-notehead[data-name*="F" i]) {
  --note-color: var(--F-color);
}

.highlight_notes .abcjs-note:has(.abcjs-notehead[data-name*="G" i]) {
  --note-color: var(--G-color);
}

/* strings
  - highlight based on string 
*/
/* C String */
.highlight_notes.highlight_by_string .part:is([instrument="violin"], [instrument="viola"], [instrument="cello"], [instrument="bass"]) .abcjs-note:has(.cString) {
  --note-color: var(--cStringColor);
}

/* G String */
.highlight_notes.highlight_by_string .part:is([instrument="violin"], [instrument="viola"], [instrument="cello"], [instrument="bass"]) .abcjs-note:has(.gString) {
  --note-color: var(--gStringColor);
}

/* D String */
.highlight_notes.highlight_by_string .part:is([instrument="violin"], [instrument="viola"], [instrument="cello"], [instrument="bass"]) .abcjs-note:has(.dString) {
  --note-color: var(--dStringColor);
}

/* A String */
.highlight_notes.highlight_by_string .part:is([instrument="violin"], [instrument="viola"], [instrument="cello"], [instrument="bass"]) .abcjs-note:has(.aString) {
  --note-color: var(--aStringColor);
}

/* E String */
.highlight_notes.highlight_by_string .part:is([instrument="violin"], [instrument="viola"], [instrument="cello"], [instrument="bass"]) .abcjs-note:has(.eString) {
  --note-color: var(--eStringColor);
}


.highlight_notes .abcjs-note .abcjs-notehead,
.highlight_notes .abcjs-note .abcjs-notehead~ :is(.abcjs-fingering, .abcjs-noteName) {
  --selection_glow: var(--note-color);
  fill: var(--note-color)
}


/* selected note 
  (ie note selected)
*/
.abcjs-note_selected {
  fill: var(--selection_glow);
  stroke: var(--color1);
  outline: none;
}

.highlight_notes .abcjs-note_selected {
  fill: var(--note-color);
  stroke: var(--note-color);
}

.note_range :is(.abcjs-note, .abcjs-note_selected) {
  fill: #000;
  stroke: #000;
  outline: none;
}

/* selected note's fingerings and notenames */
.abcjs-note_selected tspan:is(.abcjs-noteName, .abcjs-fingering) {
  stroke: #00000030;
  font-weight: bold;
  fill: var(--color1);
}

/* deselected note */
:is(.abcjs-note, .abcjs-rest):not(.abcjs-note_selected) {
  fill: #000;
  stroke: none;
}

/* abcjs meta */
text.abcjs-meta-top.abcjs-rhythm {
  color: gray;
}

/* text annotations
    text annotations have text-anchor="start", fignerings have text-anchor="middle"
*/
text.abcjs-annotation[text-anchor="start"] {
  fill: #000;
}

/* move text annotations attatched to the last barline, down closer to the barline
      otherwise it was looking like it was text below the line above.
*/
.abcjs-bar:last-of-type text.abcjs-annotation[text-anchor="start"] {
  transform: translate(0px, 10%);
}

/* note letter names */
.abcjs-annotation.noteLetterName {
  fill: inherit !important;
}

/* FINGERING AND LETTER NAME VISIBILITY 
  note labels
*/
.abcjs-fingering,
.abcjs-noteName {
  opacity: 0;
  transition: opacity 400ms ease-in-out;
}

#main_container:has(#fingerings_toggle.active) .abcjs-fingering,
#main_container:has(#notenames_toggle.active) .abcjs-noteName {
  opacity: 100%;
}

.abcjs-note_selected .abcjs-fingering,
.abcjs-note_selected .abcjs-noteName {
  opacity: 100% !important;
}

/* EXTRA HTML */
.extra_html {
  padding: 0 12px;
  margin-left: 6px;
  border-left: 4px solid #333;
  border-radius: 6px;
  width: calc(100% - 24px - 6px - 8px - 2px);
}

/* FOOTER */
footer {
  background: #333;
  color: #fff;
  padding: var(--header_content_padding);
  position: relative;
  background-image: url(/assets/bgs/staffsplosion.png);
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: 0 30%;
  background-attachment: initial;
  background-blend-mode: multiply;
}

#print_logo {
  display: none;
}

/* SCROLLBAR */
/* Track */
::-webkit-scrollbar {
  width: 8px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #333;
}

#bookmarks_container::-webkit-scrollbar-track {
  background: #2b2b2b;
}

#page_content::-webkit-scrollbar-track {
  background: #ededed;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: var(--color1);
  background: linear-gradient(45deg, var(--color2), var(--color1));
  border: 1px solid var(--color2-dark);
}

/* Handle hover */
::-webkit-scrollbar-thumb:hover {
  background: var(--color1)
}

/* hide header scrollbar */
header::-webkit-scrollbar {
  width: 0;
  height: 0;
}

/* WAVY LINES */
div.wavyLine {
  --mask: radial-gradient(55.61px at 50% calc(100% + 42.00px), #0000 calc(99% - 8px), #000 calc(101% - 8px) 99%, #0000 101%) calc(50% - 60px) calc(50% - 19px + .5px)/120px 38px repeat-x,
    radial-gradient(55.61px at 50% -42px, #0000 calc(99% - 8px), #000 calc(101% - 8px) 99%, #0000 101%) 50% calc(50% + 19px)/120px 38px repeat-x;
  -webkit-mask: var(--mask);
  mask: var(--mask);
  height: 90px;
  background: linear-gradient(45deg, var(--color1), var(--color2));
}

/* CALLOUTS */
.callout-neutral {
  background: #f5f5f5f2;
  color: #444;
  border-left: 4px solid #bbb;
  padding: 12px 16px;
  border-radius: 6px;
  margin: 12px 0;
  font-weight: 500;
}

.callout-warning {
  background: #fffbe6f2;
  color: #b8860b;
  border-left: 4px solid #b8860b;
  padding: 12px 16px;
  border-radius: 6px;
  margin: 12px 0;
  font-weight: 500;
}

.callout-success {
  background: #e6f9edf2;
  color: #218838;
  border-left: 4px solid #218838;
  padding: 12px 16px;
  border-radius: 6px;
  margin: 12px 0;
  font-weight: 500;
}

.callout-info {
  background: #eaf6fbf2;
  color: #2176ae;
  border-left: 4px solid #2176ae;
  padding: 12px 16px;
  border-radius: 6px;
  margin: 12px 0;
  font-weight: 500;
}

.callout-error {
    border: unset;
    font-size: unset;
    position: unset;
    background: #f8d7daf2;
    color: #721c24;
    border-left: 4px solid #721c24;
    padding: 12px 16px;
    border-radius: 6px;
    margin: 12px 0;
    font-weight: 500;
}

.callout-inline {
    padding: 6px;
}
.callout-action {
  cursor: pointer;
  position: relative;
  padding-right: 24px;
}
.callout-action:after {
    content: "\1F4D1";
    position: absolute;
    right: 4px;
    top: 4px;
    filter: drop-shadow(-1px 1px 1px gray);
    transition: all 100ms;
}
.callout-action:hover:after {
    top: -4px;
    right: -4px;
}





/* NOTEY */
/* Create Notey */
.notey {
  /* head */
  --h: 160;
  --s: 73%;
  --l: 46%;
  --bgColor: hsl(var(--h), var(--s), var(--l));
  --bgColor-light: hsl(var(--h), var(--s), calc(var(--l) + 10%));
  --bgColor-dark: hsl(var(--h), var(--s), calc(var(--l) - 40%));
  --width: 100px;
  --height: calc(var(--width) * 0.8);

  width: var(--width);
  height: var(--height);
  isolation: isolate;
  position: relative;
  filter: drop-shadow(2px 4px 2px rgba(0 0 0 / 0.7));

  transform: scale(1);
  transition: transform 1s;
}

.notey.hide {
  transform: scale(0);
}

#notey .speechBubble {
  width: 10em;
  min-height: 2em;
  text-align: center;
  position: absolute;
  left: -13.5em;
  top: 0em;
  padding: 16px;
  background-color: #ffffff;
  border-radius: 20px;
  filter: drop-shadow(2px 4px 2px black);
  cursor: pointer;
  z-index: 10;
}

#notey .speechBubble:before {
  content: "";
  position: absolute;
  top: 20px;
  right: -19px;
  border-style: solid;
  border-width: 0 20px 20px 0;
  border-color: transparent transparent #ffffff transparent;
}

#notey .speechBubble:after {
  content: '\2717';
  position: absolute;
  top: 3px;
  left: 6px;
}

#notey .speechBubble:hover {
  background-color: #eee;
}

#notey .speechBubble:hover::before {
  border-color: transparent transparent #eee transparent;

}

.notey-body {
  background: var(--bgColor);
  border-radius: 50%;
  width: 100%;
  height: 100%;
}

.notey-stem {
  position: absolute;
  width: 30%;
  height: 200%;
  right: 0;
  bottom: 50%;
  background-color: var(--bgColor);
  z-index: -1;
  border-radius: 50% 50% 0 0 / 10% 10% 0 0;
}

.notey-eyes:before,
.notey-eyes:after,
.notey-eyelids:before,
.notey-eyelids:after {
  /* eyes and brows */
  --shadingBG: radial-gradient(ellipse at 40% 40%,
      transparent 50%,
      rgba(0 0 0 / 0.8));
  content: "";
  width: 20%;
  height: 40%;
  position: absolute;
  top: -10%;
  left: 10%;
  border: 2px solid black;
  border-radius: 50%;
  background: var(--shadingBG),
    radial-gradient(ellipse at 40% 50%, black 30%, rgb(240 240 240) 39%);
  z-index: 1;
}

.notey-eyes:after,
.notey-eyelids:after {
  /* right eye */
  left: 40%;
  /* top: 0; */
}

.notey-eyelids:after,
.notey-eyelids:before {
  background: var(--shadingBG), var(--bgColor);
}

.notey-eyes:before,
.notey-eyes:after {
  /* eyes */
  clip-path: polygon(
      /* top */
      0% 0%,
      /* top */
      100% 0%,
      /* bottom */
      100% calc(100% - 0%),
      /* bottom */
      0% calc(100% - 0%));
}

/* Eye expressions */
.looking-at-user .notey-eyes:before,
.looking-at-user .notey-eyes:after {
  background: var(--shadingBG),
    radial-gradient(ellipse at 50% 50%, black 30%, rgb(240 240 240) 39%);
}

.looking-forward .notey-eyes:before,
.looking-forward .notey-eyes:after {
  background: var(--shadingBG),
    radial-gradient(ellipse at 40% 50%, black 30%, rgb(240 240 240) 39%);
}

.looking-backward .notey-eyes:before,
.looking-backward .notey-eyes:after {
  background: var(--shadingBG),
    radial-gradient(ellipse at 60% 50%, black 30%, rgb(240 240 240) 39%);
}

.looking-at-left-hand .notey-eyes:before,
.looking-at-left-hand .notey-eyes:after {
  background: var(--shadingBG),
    radial-gradient(ellipse at 60% 65%, black 30%, rgb(240 240 240) 39%);
}

.looking-at-right-hand.notey-eyes:before,
.looking-at-right-hand.notey-eyes:after {
  background: var(--shadingBG),
    radial-gradient(ellipse at 35% 65%, black 30%, rgb(240 240 240) 39%);
}

.eyes-winking-left .notey-eyes:before,
.eyes-winking-right .notey-eyes:after,
.eyes-blinking .notey-eyes:before,
.eyes-blinking .notey-eyes:after {
  /* wink/blink infinite */
  animation: blink 5s linear -1.6s infinite alternate-reverse;
}

@keyframes blink {

  0%,
  47%,
  53%,
  100% {
    clip-path: polygon(
        /* top */
        0% 0%,
        /* top */
        100% 0%,
        /* bottom */
        100% calc(100% - 0%),
        /* bottom */
        0% calc(100% - 0%));
  }

  50% {
    clip-path: polygon(
        /* top */
        0% 50%,
        /* top */
        100% 50%,
        /* bottom */
        100% calc(100% - 50%),
        /* bottom */
        0% calc(100% - 50%));
  }
}

.notey-mouth {
  /* mouth */
  position: absolute;
  width: 26%;
  height: 16%;
  background: transparent;
  border-radius: 0 0 50% 50% / 0 0 80% 80%;
  border: calc(var(--width) * 0.03) solid black;
  border-top: 0;
  border-right: 0;
  border-left: 0;
  bottom: 30%;
  left: 25%;
}

.frowning .notey-mouth {
  transform: rotate(180deg) translatey(-30%);
}

.notey-hand-left,
.notey-hand-right {
  width: 33%;
  height: 33%;
  background: var(--bgColor);
  border-radius: 50%;
  position: absolute;
  right: -5%;
  top: 45%;
  box-shadow: inset calc(var(--width) * -0.05) calc(var(--height) * -0.05) calc(var(--width) * 0.03) rgba(0 0 0 / 0.2);
}

.notey-hand-right {
  /* display: none; */
  right: 87%;
  z-index: -1;
}

/* Position notey, notey position, notey default position */
#notey .notey {
  position: fixed;
  right: calc(50% - var(--width)*1.5);
  top: calc(50% - var(--width)*0.5);
  z-index: 99999999;
}

#sidebar_buttons .notey {
  --width: 25px;
  margin-top: 200%;
}

#sidebar_buttons #noteyToggle {
  height: fit-content;
}

#sidebar_buttons #noteyToggle:hover {
  filter: brightness(1.5);
}

#sidebar_buttons #noteyToggle img {
  width: 100%;
}

/* Notey Options Toggler */
#sidebar_buttons span#noteyOptions:hover,
#sidebar_buttons span#noteyOptions.active {
  filter: brightness(1.4);
}

#sidebar_buttons span#noteyOptions svg {
  position: absolute;
  color: var(--color2);
  top: 0;
  left: 0;
  width: 60%;
}

#sidebar_buttons span#noteyOptions img {
  height: 100%;
  position: absolute;
  bottom: 0;
  right: 0;
}

/* Notey Options */
#noteyOptions {
  position: relative;
}

#noteyOptionsMenu {
  --tabcolor1: var(--color1-dark);
  --tabcolor2: hsl(178 100% 24% / 1);
  --tabcolor3: hsl(193 100% 24% / 1);
  position: absolute;
  left: calc(100% + 2px);
  top: 50%;
  background: #fefefe;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: min-content 1fr;
  box-shadow: 0px 0px 2px;
  z-index: 100;
}

#noteyOptionsMenu.hidden {
  display: none;
}

/* notey options tabs */
#noteyOptionsMenu>.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 30px;
  user-select: none;
}

#noteyOptionsMenu>.tabs>.tab {
  color: #eee;
  padding: 2px 8px;
  cursor: pointer;
  text-align: center;
  box-shadow: 0px 20px 14px -8px #fffbfb38 inset;
  display: flex;
  align-items: center;
  font-family: sans-serif;
}

#noteyOptionsMenu>.tabs>.tab:hover {
  box-shadow: 0px 20px 14px -8px #fdfdfd73 inset;
}

#noteyOptionsMenu>.tabs>.tab[for="colors"] {
  background-color: var(--tabcolor1);
}

#noteyOptionsMenu>.tabs>.tab[for="decorations"] {
  background-color: var(--tabcolor2);
}

#noteyOptionsMenu>.tabs>.tab[for="instruments"] {
  background-color: var(--tabcolor3);
}

#noteyOptionsMenu .decorations .pallet-section-heading {
  grid-column: 1 / span 4;
  font-size: 28px;
  font-weight: bold;
  color: #3a3a3a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat';
}

/* notey options content */
#noteyOptionsMenu>div.content>div {
  border: 4px solid;
}

#noteyOptionsMenu>div.content>div.colors {
  border-color: var(--tabcolor1);
}

#noteyOptionsMenu>div.content>div.decorations {
  border-color: var(--tabcolor2);
}

#noteyOptionsMenu>div.content>div.instruments {
  border-color: var(--tabcolor3);
}

#noteyOptionsMenu>div.content>div.hidden {
  display: none;
}

/* pallets */
#noteyOptionsMenu .pallet {
  display: grid;
  grid-template-columns: repeat(4, 50px);
  grid-auto-rows: 50px;
  justify-content: center;
  gap: 14px;
  margin-top: 6px;
  margin-bottom: 16px;
}

#noteyOptionsMenu .pallet .pallet-item {
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  position: relative;
}

#noteyOptionsMenu .pallet .pallet-item:hover,
#noteyOptionsMenu .pallet-item.active {
  background-color: #ddd;
}

/* notey options color pallet */
#noteyOptionsMenu .colorPallet {
  --s: 73%;
  --l: 46%;
}

#noteyOptionsMenu .colorPallet>.splotch .circle {
  --bgColor: hsl(var(--h) var(--s) var(--l));
  background: radial-gradient(ellipse at 33% 33%, var(--bgColor) 16.5%, #000);
  border-radius: 50%;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  filter: drop-shadow(1px 2px 1px rgba(0 0 0 / 0.7));
}

/* notey instrumentselection pallet */
#noteyOptionsMenu .instruments .instrumentPallet .pallet-item .instrument-img {
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  filter: drop-shadow(1px 2px 1px rgba(0 0 0 / 0.7));
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

#noteyOptionsMenu .pallet .pallet-item:after {
  content: attr(instrument);
  display: block;
  position: absolute;
  height: 12px;
  width: 100%;
  color: #333;
  bottom: -10px;
  opacity: 0;
  transition: opacity 200ms;
  text-align: center;
  font-size: 12px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
#noteyOptionsMenu .pallet .pallet-item:is(.active, :hover):after {
    opacity: 1;
}

/* notey decorations pallet */
#noteyOptionsMenu .decorations .pallet-item {
  padding: 6px;
}

#noteyOptionsMenu .decorations .pallet-item div {
  width: 100%;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

#noteyOptionsMenu .decorations .pallet-item[filename="none"] div:before {
  /* put "none" txt for the pallet item with "none" for the background img */
  content: 'none';
  color: #888;
  text-align: center;
  display: block;
  padding: calc(25px - 1em) 0;
}


/* Notey Shading */
.notey-body,
.notey-hand-left,
.notey-hand-right {
  background: radial-gradient(ellipse at 33% 33%, var(--bgColor) 16.5%, #000);
}

.notey-stem {
  background: radial-gradient(circle at -89px calc(100% - (80px * 0.43)),
      var(--bgColor) 16.5%,
      #000),
    radial-gradient(ellipse at 33% 37%, var(--bgColor) 6.5%, #000);
  background-blend-mode: lighten;
  /* z-index: 2; */
  /* background-size: auto, 100% 114%; */
}

.notey-eyes {
  filter: radial-gradient(circle at 50% -50%, #ddd 0 100%);
}

/* Notey Instruments */
.notey-instrument {
  display: none;
  background-repeat: no-repeat;
  position: absolute;
  height: 100%;
  z-index: 1;
}

/* violin/viola */
:is(.holding-violin, .playing-violin, .holding-viola, .playing-viola) .notey-violin {
  display: block;
  background-image: url('/assets/instruments/violin.svg');
  width: 155%;
  right: -38%;
  top: 35%;
  transform: rotate(-90deg);
  transform-origin: 70% 50%;
  clip-path: polygon(
      /* points of outer square going counterclockwise  */
      83% 100%,
      100% 100%,
      100% 0,
      0 0,
      0 100%,
      /* back to (near) first point outer square */
      69% 100%,
      /* points of inner shape going clockwise */
      69% 0,
      83% 0,
      /* back to first point of inner shape */
      83% 100%);
}

:is(.holding-violin, .playing-violin, .playing-viola) .notey-violin-bow {
  display: block;
  background-image: url('/assets/instruments/bow.svg');
  width: 155%;
  left: -150%;
  top: 50%;
  transform-origin: 90% 50%;
  transform: rotate(90deg) scaley(-1);
}

/* cello */
:is(.holding-cello, .playing-cello) .notey-cello {
  display: block;
  background-image: url('/assets/instruments/cello.svg');
  width: 25px;
  right: 7%;
  top: 70%;
  transform: scale(3);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 25%, 100% 25%, 100% 15%, 0 15%, 0 0);
}

:is(.holding-cello, .playing-cello) .notey-violin-bow {
  display: block;
  background-image: url('/assets/instruments/bow.svg');
  width: 155%;
  left: -150%;
  top: 50%;
  transform-origin: 90% 50%;
  transform: rotate(90deg) scaley(-1);
}

/* bass */
:is(.holding-bass, .playing-bass) .notey-bass {
  display: block;
  background-image: url('/assets/instruments/bass.svg');
  width: 25px;
  right: 0%;
  top: 150%;
  transform: scale(5);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 19%, 100% 19%, 100% 13%, 0 13%);
}

:is(.holding-bass, .playing-bass) .notey-violin-bow {
  display: block;
  background-image: url('/assets/instruments/bow.svg');
  width: 155%;
  left: -150%;
  top: 50%;
  transform-origin: 90% 50%;
  transform: rotate(90deg) scaley(-1);
}

/* piano */
:is(.holding-piano, .playing-piano) .notey-piano {
  display: block;
  background-image: url('/assets/instruments/piano.svg');
  width: 100%;
  right: 170%;
  top: 0%;
  transform: scalex(-1) scale(3);
  z-index: -2;
}

/* flute */
:is(.holding-flute, .playing-flute) .notey-flute {
  display: block;
  background-image: url('/assets/instruments/flute.svg');
  width: 80px;
  right: 53%;
  top: 72%;
  transform: rotate(45deg);
  transform-origin: 100% 0%;
  z-index: 1;
  clip-path: polygon(0 0, 100% 0, 100% 60%, 40% 0, 5% 0, 100% 95%, 100% 100%, 0 100%);
}

/* clarinet */
:is(.holding-clarinet, .playing-clarinet) .notey-clarinet {
  display: block;
  background-image: url('/assets/instruments/clarinet.svg');
  background-size: contain;
  width: 80px;
  height: 123px;
  right: -17%;
  top: 65%;
  transform: scalex(-1) rotate(0deg);
  transform-origin: 0 0;
}

/* bass clarinet */
:is(.holding-bassClarinet, .playing-bassClarinet) .notey-bassClarinet {
  display: block;
  background-image: url('/assets/instruments/bassClarinet.svg');
  width: 640px;
  height: 1562px;
  right: -587%;
  top: 32%;
  transform: scalex(-1) scale(0.2) rotate(0deg);
  transform-origin: 0 0;
}

/* oboe */
:is(.holding-oboe, .playing-oboe) .notey-oboe {
  display: block;
  background-image: url('/assets/instruments/oboe.svg');
  background-size: contain;
  width: 224px;
  height: 682px;
  right: -162%;
  top: 65%;
  transform: scalex(-1) scale(0.2) rotate(-16deg);
  transform-origin: 0 0;
}

/* bassoon */
:is(.holding-bassoon, .playing-bassoon) .notey-bassoon {
  display: block;
  background-image: url('/assets/instruments/bassoon.svg');
  background-size: contain;
  width: 960px;
  height: 799px;
  right: -716%;
  top: -287%;
  transform: scalex(-1) scale(0.2) rotate(0deg);
  transform-origin: 19% 35%;
}

/* sax */
:is(.holding-saxophone, .playing-saxophone) .notey-sax {
  display: block;
  background-image: url('/assets/instruments/sax.svg');
  width: 64px;
  height: 150px;
  right: 0%;
  top: 65%;
  transform: scalex(-1) rotate(0deg);
  transform-origin: 0 0;
}

/* tenor sax */
:is(.holding-tenorSaxophone, .playing-tenorSaxophone) .notey-sax {
  display: block;
  background-image: url('/assets/instruments/sax.svg');
  width: 64px;
  height: 150px;
  right: 0%;
  top: 65%;
  transform: scalex(-1) scale(1.25) rotate(0deg);
  transform-origin: 0 0;
}

/* trumpet */
:is(.holding-trumpet, .playing-trumpet) .notey-trumpet {
  display: block;
  background-image: url('/assets/instruments/trumpet.svg');
  width: 125%;
  right: -61%;
  top: 46%;
  transform: scalex(-1) rotate(0deg);
  transform-origin: 0 20%;
}

/* baritone horn */
:is(.holding-baritoneHorn, .playing-baritoneHorn) .notey-baritoneHorn {
  display: block;
  background-image: url('/assets/instruments/baritoneHorn.svg');
  width: 960px;
  height: 805px;
  right: -848%;
  top: -491%;
  transform: scalex(-1) scale(0.15) rotate(30deg);
  transform-origin: 5% 55%;
}

/* french horn */
:is(.holding-frenchHorn, .playing-frenchHorn) .notey-frenchHorn {
  display: block;
  background-image: url('/assets/instruments/frenchHorn.svg');
  width: 482px;
  height: 318px;
  right: 62%;
  top: 61%;
  transform: scalex(-1) scale(0.5) rotate(-80deg);
  transform-origin: 100% 0;
}

/* trombone */
:is(.holding-trombone, .playing-trombone) .notey-trombone {
  display: block;
  background-image: url('/assets/instruments/trombone.svg');
  width: 136px;
  height: 150px;
  right: -48%;
  top: 10%;
  transform: scalex(-1) scale(1.4) rotate(0deg);
  transform-origin: 19% 38%;
  z-index: 1;
}

/* score, baton, conductor */
:is(.holding-score, .playing-score) .notey-score {
  display: block;
  background-image: url('/assets/instruments/score.svg');
  width: 100px;
  height: 100px;
  right: 0;
  top: -63%;
  transform: scalex(-1) rotate(40deg);
  transform-origin: 0% 100%;
}

/* Notey Playing Instruments Animations */
/* violin */
.playing-violin .notey-hand-left {
  right: -10%;
  top: 122%;
  transform: rotate(45deg) rotate3d(0, 3, 1, 60deg);
}

.playing-violin .notey-violin {
  transform: rotate(45deg) rotate3d(0, 3, 1, 60deg);
  right: -27%;
  top: 92%;
}

.playing-violin .notey-hand-right {
  transform: scale(-1) rotate3d(-4.5, 3, 1, -60deg) rotate3d(1, 0, 0, 180deg);
  left: 40%;
  top: 101%;
  z-index: 1;
  animation: hand_bowing 3s ease-in-out infinite;
}

.playing-violin .notey-violin-bow {
  transform: scale(-1) rotate3d(0, 3, 1, -60deg) rotate3d(1, 0, 0, 180deg);
  left: -70%;
  top: 103%;
  z-index: 2;
  animation: bow_bowing 3s ease-in-out infinite;
}

@keyframes bow_bowing {
  50% {
    left: -107%;
    top: 130%;
  }
}

@keyframes hand_bowing {
  50% {
    left: 5%;
    top: 127%;
  }
}

/* viola */
.playing-viola .notey-hand-left {
  right: -10%;
  top: 158%;
  transform: rotate(45deg) rotate3d(0, 3, 1, 60deg);
}

.playing-viola .notey-violin {
  transform: rotate(45deg) rotate3d(0, 3, 1, 60deg) scale(1.3);
  right: -24%;
  top: 126%;
}

.playing-viola .notey-hand-right {
  transform: scale(-1) rotate3d(-4.5, 3, 1, -60deg) rotate3d(1, 0, 0, 180deg);
  left: 30%;
  top: 131%;
  z-index: 1;
  animation: hand_bowing_viola 3s ease-in-out infinite;
}

.playing-viola .notey-violin-bow {
  transform: scale(-1.3) rotate3d(0, 3, 1, -60deg) rotate3d(1, 0, 0, 180deg);
  left: -90%;
  top: 148%;
  z-index: 2;
  animation: bow_bowing_viola 3s ease-in-out infinite;
}

@keyframes bow_bowing_viola {
  50% {
    left: -117%;
    top: 168%;
  }
}

@keyframes hand_bowing_viola {
  50% {
    left: 5%;
    top: 151%;
  }
}

/* cello */
.playing-cello .notey-hand-left {
  right: 2%;
  top: 14%;
}

.playing-cello .notey-hand-right {
  transform: scale(-1) rotate3d(-4.5, 0, 1, -60deg) rotate3d(1, 0, 0, 180deg);
  left: 30%;
  top: 105%;
  z-index: 1;
  animation: hand_bowing_cello 3s ease-in-out infinite;
}

.playing-cello .notey-violin-bow {
  transform: scale(-1) rotate3d(1, 0, 0, 180deg);
  left: -90%;
  top: 110%;
  z-index: 2;
  animation: bow_bowing_cello 3s ease-in-out infinite;
}

@keyframes bow_bowing_cello {
  50% {
    left: -140%;
    top: 110%;
  }
}

@keyframes hand_bowing_cello {
  50% {
    left: -20%;
    top: 105%;
  }
}

/* bass */
.playing-bass .notey-hand-left {
  right: -5%;
  top: 14%;
}

.playing-bass .notey-hand-right {
  transform: scale(-1) rotate3d(-4.5, 0, 1, -60deg) rotate3d(1, 0, 0, 180deg);
  left: -52%;
  top: 129%;
  z-index: 1;
  animation: hand_bowing_bass 3s ease-in-out infinite;
}

.playing-bass .notey-violin-bow {
  transform: scale(-1.3) rotate3d(1, 0, 0, 180deg);
  left: -170%;
  top: 148%;
  z-index: 2;
  animation: bow_bowing_bass 3s ease-in-out infinite;
}

@keyframes bow_bowing_bass {
  50% {
    left: -117%;
    top: 148%;
  }
}

@keyframes hand_bowing_bass {
  50% {
    left: 0%;
    top: 129%;
  }
}

/* piano */
.playing-piano .notey-hand-left {
  right: 112%;
  top: 40%;
  transform: scale(-1) rotate3d(-4.5, 0, 5, -60deg) rotate3d(1, 0, 0, 180deg);
  animation: left_hand_playing_piano 2s ease-in-out infinite;
}

.playing-piano .notey-hand-right {
  transform: scale(-1) rotate3d(-4.5, 3, 5, -60deg) rotate3d(1, 0, 0, 180deg);
  left: -15%;
  top: 20%;
  z-index: -1;
  animation: right_hand_playing_piano 3s ease-in-out infinite;
}

@keyframes left_hand_playing_piano {
  20% {
    top: 50%;
  }

  80% {
    top: 50%;
  }
}

@keyframes right_hand_playing_piano {
  20% {
    top: 30%;
  }

  80% {
    top: 30%;
  }
}

/* flute */
.playing-flute .notey-hand-left {
  right: 80%;
  top: 53%;
  transform: rotate(45deg) rotate3d(2, -4, 1, 60deg);
  animation: hand_left_playing_flute 3s ease-in-out infinite;
}

.playing-flute .notey-flute {
  animation: flute_playing_flute 3s ease-in-out infinite;
}

.playing-flute .notey-hand-right {
  transform: scale(-0.9) rotate3d(2, 1, 1, -60deg) rotate3d(1, 0, 0, 180deg);
  left: -47%;
  top: 53%;
  z-index: 1;
  animation: hand_right_playing_flute 3s ease-in-out infinite;
}

@keyframes hand_right_playing_flute {
  50% {
    transform: scale(-0.9) rotate3d(2, 1, 1, -60deg) rotate3d(1, 0, 0, 180deg);
    top: 37%;
  }
}

@keyframes flute_playing_flute {
  50% {
    transform: rotate(55deg);
  }
}

@keyframes hand_left_playing_flute {
  50% {
    right: 80%;
    top: 45%;
    transform: rotate(45deg) rotate3d(2, -3, 1, 60deg);
  }
}

/* clarinet */
.playing-clarinet .notey-hand-left {
  right: 94%;
  top: 139%;
  transform: rotate(45deg) rotate3d(0, 3, 1, 60deg);
  z-index: 1;
  animation: hand_left_playing_clarinet 3s ease-in-out infinite;
}

.playing-clarinet .notey-clarinet {
  animation: clarinet_playing_clarinet 3s ease-in-out infinite;
}

.playing-clarinet .notey-hand-right {
  transform: scale(-1) rotate3d(-2.5, 4, 1, -60deg) rotate3d(1, 0, 0, 180deg);
  left: -7%;
  top: 102%;
  z-index: 2;
  animation: hand_right_playing_clarinet 3s ease-in-out infinite;
}

@keyframes hand_right_playing_clarinet {
  50% {
    transform: scale(-1) rotate3d(-2.5, 3, 1, -60deg) rotate3d(1, 0, 0, 180deg);
    left: -10%;
  }
}

@keyframes clarinet_playing_clarinet {
  50% {
    transform: scalex(-1) rotate(-5deg);
  }
}

@keyframes hand_left_playing_clarinet {
  50% {
    right: 101%;
    top: 133%;
  }
}

/* bass clarinet */
.playing-bassClarinet .notey-hand-left {
  right: 99%;
  top: 139%;
  transform: rotate(45deg) rotate3d(0, 3, 1, 60deg);
  z-index: 2;
  animation: hand_left_playing_bassClarinet 3s ease-in-out infinite;
}

.playing-bassClarinet .notey-bassClarinet {
  animation: bassClarinet_playing_bassClarinet 3s ease-in-out infinite;
}

.playing-bassClarinet .notey-hand-right {
  transform: scale(-1) rotate3d(-2.5, 4, 1, 40deg) rotate3d(1, 0, 0, 30deg);
  left: -51%;
  top: 274%;
  z-index: 2;
  animation: hand_right_playing_bassClarinet 3s ease-in-out infinite;
}

@keyframes hand_right_playing_bassClarinet {
  50% {
    transform: scale(-1) rotate3d(-2.5, 4, 1, 40deg) rotate3d(1, 0, 0, 30deg);
    left: -69%;
    top: 264%;
  }
}

@keyframes bassClarinet_playing_bassClarinet {
  50% {
    transform: scalex(-1) scale(0.2) rotate(-5deg);
  }
}

@keyframes hand_left_playing_bassClarinet {
  50% {
    right: 106%;
    top: 133%;
  }
}

/* oboe */
.playing-oboe .notey-hand-left {
  right: 94%;
  top: 139%;
  transform: rotate(45deg) rotate3d(0, 3, 1, 60deg);
  z-index: 1;
  animation: hand_left_playing_oboe 3s ease-in-out infinite;
}

.playing-oboe .notey-oboe {
  animation: oboe_playing_oboe 3s ease-in-out infinite;
}

.playing-oboe .notey-hand-right {
  transform: scale(-1) rotate3d(-2.5, 4, 1, -60deg) rotate3d(1, 0, 0, 180deg);
  left: -7%;
  top: 102%;
  z-index: 2;
  animation: hand_right_playing_oboe 3s ease-in-out infinite;
}

@keyframes hand_right_playing_oboe {
  50% {
    transform: scale(-1) rotate3d(-2.5, 3, 1, -60deg) rotate3d(1, 0, 0, 180deg);
    left: -10%;
  }
}

@keyframes oboe_playing_oboe {
  50% {
    transform: scalex(-1) scale(0.2) rotate(-21deg);
  }
}

@keyframes hand_left_playing_oboe {
  50% {
    right: 101%;
    top: 133%;
  }
}

/* bassoon */
.playing-bassoon .notey-hand-left {
  right: 130%;
  top: 139%;
  z-index: 1;
  animation: hand_left_playing_bassoon 3s ease-in-out infinite;
}

.playing-bassoon .notey-bassoon {
  animation: bassoon_playing_bassoon 3s ease-in-out infinite;
}

.playing-bassoon .notey-hand-right {
  left: -38%;
  top: 87%;
  z-index: 2;
  animation: hand_right_playing_bassoon 3s ease-in-out infinite;
}

@keyframes hand_right_playing_bassoon {
  50% {
    left: -34%;
    top: 94%;
  }
}

@keyframes bassoon_playing_bassoon {
  50% {
    transform: scalex(-1) scale(0.2) rotate(5deg);
  }
}

@keyframes hand_left_playing_bassoon {
  50% {
    right: 123%;
    top: 149%;
  }
}

/* sax */
.playing-saxophone .notey-hand-left {
  right: 70%;
  top: 170%;
  z-index: 1;
  transform: rotate(45deg) rotate3d(0, 3, 1, 60deg);
  animation: hand_left_playing_sax 3s ease-in-out infinite;
}

.playing-saxophone .notey-sax {
  animation: sax_playing_sax 3s ease-in-out infinite;
}

.playing-saxophone .notey-hand-right {
  transform: scale(-0.9) rotate3d(1.5, 0, 2, -60deg) rotate3d(1, 0, 0, 180deg);
  left: -7%;
  top: 108%;
  z-index: 2;
  animation: hand_right_playing_sax 3s ease-in-out infinite;
}

@keyframes hand_right_playing_sax {
  50% {
    left: -10%;
  }
}

@keyframes sax_playing_sax {
  50% {
    transform: scalex(-1) rotate(-5deg);
  }
}

@keyframes hand_left_playing_sax {
  50% {
    right: 79%;
    top: 167%;
  }
}

/* tenor sax */
.playing-tenorSaxophone .notey-hand-left {
  right: 70%;
  top: 200%;
  z-index: 1;
  transform: rotate(45deg) rotate3d(0, 3, 1, 60deg);
  animation: hand_left_playing_tenorSaxophone 3s ease-in-out infinite;
}

.playing-tenorSaxophone .notey-sax {
  animation: sax_playing_tenorSaxophone 3s ease-in-out infinite;
}

.playing-tenorSaxophone .notey-hand-right {
  transform: scale(-0.9) rotate3d(1.5, 0, 2, -60deg) rotate3d(1, 0, 0, 180deg);
  left: -12%;
  top: 108%;
  z-index: 2;
  animation: hand_right_playing_tenorSaxophone 3s ease-in-out infinite;
}

@keyframes hand_right_playing_tenorSaxophone {
  50% {
    left: -15%;
    top: 102%;
  }
}

@keyframes sax_playing_tenorSaxophone {
  50% {
    transform: scalex(-1) scale(1.25) rotate(-5deg);
  }
}

@keyframes hand_left_playing_tenorSaxophone {
  50% {
    right: 79%;
    top: 197%;
  }
}

/* trumpet */
.playing-trumpet .notey-hand-left {
  right: 104%;
  top: 78%;
  transform: rotate(45deg) rotate3d(-1, 3, 1, 60deg);
  z-index: 1;
  animation: hand_left_playing_trumpet 3s ease-in-out infinite;
}

.playing-trumpet .notey-trumpet {
  animation: trumpet_playing_trumpet 3s ease-in-out infinite;
}

.playing-trumpet .notey-hand-right {
  transform: scale(-1) rotate3d(-4.5, 0, 1, -60deg) rotate3d(1, 0, 0, 180deg);
  left: -40%;
  top: 50%;
  z-index: 2;
  animation: hand_right_playing_trumpet 3s ease-in-out infinite;
}

@keyframes hand_right_playing_trumpet {
  50% {
    top: 45%;
    transform: scale(-1) rotate3d(-4.5, -1, 1, -60deg) rotate3d(1, 0, 0, 180deg);
  }
}

@keyframes hand_left_playing_trumpet {
  50% {
    transform: rotate(45deg) rotate3d(-1, 2.5, 1, 60deg);
    top: 72%;
  }
}

@keyframes trumpet_playing_trumpet {
  50% {
    transform: scalex(-1) rotate(-4deg);
  }
}

/* french horn */
.playing-frenchHorn .notey-hand-left {
  display: none;
  right: 104%;
  top: 78%;
  transform: rotate(45deg) rotate3d(-1, 3, 1, 60deg);
  z-index: 1;
  animation: hand_left_playing_frenchHorn 3s ease-in-out infinite;
}

.playing-frenchHorn .notey-frenchHorn {
  animation: frenchHorn_playing_frenchHorn 3s ease-in-out infinite;
}

.playing-frenchHorn .notey-hand-right {
  transform: scale(-1) rotate3d(-4.5, 0, 1, -60deg) rotate3d(1, 0, 0, 152deg);
  left: -82%;
  top: 100%;
  z-index: 2;
  animation: hand_right_playing_frenchHorn 3s ease-in-out infinite;
}

@keyframes hand_right_playing_frenchHorn {
  50% {
    top: 93%;
    left: -86%;
    transform: scale(-1) rotate3d(-4.5, 0, 1, -60deg) rotate3d(1, 0, 0, 152deg);
  }
}

@keyframes hand_left_playing_frenchHorn {
  50% {
    transform: rotate(45deg) rotate3d(-1, 2.5, 1, 60deg);
    top: 72%;
  }
}

@keyframes frenchHorn_playing_frenchHorn {
  50% {
    transform: scalex(-1) scale(0.5) rotate(-84deg);
  }
}

/* baritone horn */
.playing-baritoneHorn .notey-hand-left {
  right: 104%;
  top: 138%;
  transform: rotate(0deg) rotate3d(-1, 3, 1, 0deg);
  z-index: 2;
  animation: hand_left_playing_baritoneHorn 3s ease-in-out infinite;
}

.playing-baritoneHorn .notey-baritoneHorn {
  animation: baritoneHorn_playing_baritoneHorn 3s ease-in-out infinite;
}

.playing-baritoneHorn .notey-hand-right {
  transform: scale(-1) rotate3d(-4.5, 0, 1, 0deg) rotate3d(1, 0, 0, 0deg);
  left: -72%;
  top: 110%;
  z-index: 1;
  animation: hand_right_playing_baritoneHorn 3s ease-in-out infinite;
}

@keyframes hand_right_playing_baritoneHorn {
  50% {
    top: 100%;
    left: -77%;
  }
}

@keyframes hand_left_playing_baritoneHorn {
  50% {
    top: 133%;
    right: 109%;
  }
}

@keyframes baritoneHorn_playing_baritoneHorn {
  50% {
    transform: scalex(-1) scale(0.15) rotate(26deg);
  }
}

/* trombone */
.playing-trombone .notey-hand-right {
  transform: scale(-1) rotate3d(-4.5, 3, 1, -60deg) rotate3d(1, 0, 0, 180deg);
  left: -5%;
  top: 63%;
  z-index: 1;
  animation: hand_right_playing_trombone 3s ease-in-out infinite;
}

.playing-trombone .notey-trombone {
  animation: trombone_playing_trombone 3s ease-in-out infinite;
}

.playing-trombone .notey-hand-left {
  right: 69%;
  top: 81%;
  z-index: 2;
  transform: rotate(45deg) rotate3d(0, 3, 1, 60deg);
  animation: hand_left_playing_trombone 3s ease-in-out infinite;
}

@keyframes trombone_playing_trombone {
  50% {
    transform: scalex(-1) scale(1.4) rotate(-5deg);
  }
}

@keyframes hand_right_playing_trombone {
  50% {
    top: 60%;
  }
}

@keyframes hand_left_playing_trombone {
  50% {
    top: 78%;
  }
}

/* score, conductor, baton */

.playing-score .notey-score {
  animation: score_playing_score 2s ease-in-out infinite;
  right: 25%;
  top: -59%;
  transform: scalex(-1) rotate(65deg);
}

.playing-score .notey-hand-right {
  transform: scale(-0.9) rotate3d(2, 1, 1, -60deg) rotate3d(1, 0, 0, 180deg);
  left: -47%;
  top: 53%;
  z-index: 1;
  animation: hand_right_playing_score 2s ease-in-out infinite;
}

@keyframes hand_right_playing_score {
  50% {
    transform: scale(-0.9) rotate3d(2, 1, 1, -60deg) rotate3d(1, 0, 0, 180deg);
    top: 37%;
  }
}

@keyframes score_playing_score {
  50% {
    top: -75.5%;
  }
}


/* Notey Decorations */
#notey .decorations {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
}

/* notey hats */
#notey .decorations .hat {
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position-x: center;
  background-position-y: bottom;
  position: relative;
}

#notey .decorations .hat[filename="adventurer_hat"] {
  top: calc(-100% + 34px);
  right: 2px;
  transform: scale(1.2);
  z-index: -1;
}

#notey .decorations .hat[filename="flower_bow_hat"] {
  top: calc(-100% + 14px);
  right: -6px;
  transform: scalex(-1) scale(1.1) rotate(-14deg);
}

#notey .decorations .hat[filename="jesterhat"] {
  top: calc(-100% + 0px);
  left: 0px;
  transform: scalex(-1) scale(1.2);
}

#notey .decorations .hat[filename="PartyHat"] {
  top: calc(-100% + 11px);
}

#notey .decorations .hat[filename="propeller_hat"] {
  top: calc(-100% + 28px);
  left: 0px;
  transform: scale(0.8);
}

#notey .decorations .hat[filename="purple-witch-hat"] {
  top: calc(-100%);
  left: 3px;
  transform: scalex(-1) scale(1.2);
}

#notey .decorations .hat[filename="Red_fedora"] {
  top: calc(-100% + 26px);
  transform: scalex(-1);
}

#notey .decorations .hat[filename="student-hat-2"] {
  top: calc(-100% + 29px);
  left: 2px;
  transform: scale(1.5) scalex(-1);
}

#notey .decorations .hat[filename="Top-hat-Blue"] {
  transform: scale(0.8) scalex(-1);
  top: calc(-100% + 20px);
  left: 2px;
}

#notey .decorations .hat[filename="fedora"] {
  top: calc(-100% + 16px);
  transform: scalex(-1);
}

#notey .decorations .hat[filename="minuteman_hat"] {
  transform: scale(1.4) rotate3d(0, 0, 1, 11deg);
  top: calc(-100% + 32px);
  left: 6px;
}

#notey .decorations .hat[filename="purple_hat"] {
  transform: scale(1.6) rotate(8deg);
  top: calc(-100% + 8px);
  left: 14px;
}

#notey .decorations .hat[filename="pilgrim-hat"] {
  top: calc(-100% + 16px);
  left: 3px;
  transform: rotate(7deg);
}


/* Notey Expression */
/* Put the following classes on the ".notey" div
  __Class__             __Description__
  .frowning             frown
  .eyes-winking-left    left eye blink
  .eyes-winking-right   right eye blink
  .eyes-blinking        both eyes blink
  .looking-at-user      eyes turn to face user
  .looking-forward      eyes turn to face 'forward'
  .looking-backward     eyes turn to face 'backward'
  .looking-at-left-hand eyes turn to face left hand
  .looking-at-right-hand eyes turn to face right hand

  .playing-violin       
  .holding-violin
  .playing-viola
 */



/* Fix bug in ios chrome: Script Error on line 0  
    See here:
      https://stackoverflow.com/questions/58088832/how-to-debug-scripterror-on-line-0-on-webview
 */
@namespace svg url(http://www.w3.org/2000/svg);

svg|a {
  -webkit-touch-callout: none;
}


/* MOBILE */
@media (max-width: 768px) {
  .header_button {
    font-size: 18px;
  }

  #sidebar.hidden {
    width: 0;
  }

  #sidebar {
    width: 235px;
  }
}