html { 
  background: url('../img/castle.jpg') no-repeat center center fixed; 
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

body {
  max-width: 1300px; margin: auto;
  background-color: transparent;
}

@font-face {
  font-family: "music";
  src: url("../webfonts/NotoMusic-Regular.ttf") format("truetype");
}
@font-face {
  font-family: "creepy";
  src: url("../webfonts/Creepster-Regular.ttf") format("truetype");
}
@font-face {
  font-family: "coralinescat";
  src: url("../webfonts/Coralines-Cat.ttf") format("truetype");
}

/*General table settings*/
table {
  width: 100%;
}

.table td, .table th{
  padding: 0;
  border-bottom: 0px solid #fff;
  border-top: 0px solid #fff;
  position: relative;
}
@supports (-moz-appearance:none) { /*hack for firefox td borders in relative tr*/
  table td, table th { background-clip: padding-box; } 
}
.table thead th {
  padding: 0; 
  border: 0px solid #fff;
  position: relative;
}
.table-fix-head { 
  overflow: auto; 
}
.table-fix-head thead th, .table-fix-head thead td { 
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1;
}
thead > tr {
  line-height:1em;
}
.display-3 { 
  font-size: 6rem;
}
.display-4 { 
  font-size: 5rem;
}
.display-5 { 
  font-size: 3.5rem; 
}
.display-6 { 
  font-size: 2.5rem;
}
.creepy {
  font-family: "coralinescat";
  font-size: smaller;
  color: #4d0909;
}

/*lines, bars, clefs, and notes*/
.staff {
  position: absolute;
  left: 0.2em !important;
  font-size: 0.8em !important;
  letter-spacing: -0.1em;
  -webkit-text-size-adjust: 100%;
}
.gclef {
  top: -0.0em;
  left: 0.3em;
  position: relative;
  font-family: "music", sans-serif;
  font-size: 0.78em;
  float:left;
}
.fclef {
  top: -0.09em;
  left: 0.3em;
  position: relative;
  font-family: "music", sans-serif;
  font-size: 0.75em;
  float:left;
}
.accolade {
  top: -0.48em;
  left: -0.15em;
  position: absolute;
  font-family: "Times";
  transform: scale(0.7,3.1);
}
.measurebar {
  left: -1.2em !important;
}
.accoladebar {
  top: -0.2em;
  left: 0.19em;
  position: absolute;
  font-family: "music", sans-serif;
}
.spacer {
  height: 61px;
}

.note {
  font-size: 1.2em;
  font-family: "music", sans-serif;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  width: max-content;
}
.wholenote {
  font-size: 0.5em;
  font-family: "music", sans-serif;
}

 .C2 { 
  top: 0.55em;
  position: absolute;
}
 .C2::after { content: "\1D116\00000a\1D116";
  white-space: break-spaces;
  position: absolute;
  top: 1.05em;
  right: -0.35em;
  font-size: 0.75em;
  line-height: 0.21em;
  transform: scaleX(0.4);
  float: right;
}
 .D2 { 
  top: 0.47em;
  position: absolute;
}
 .D2::after {
  content: "\1D116";
  position: absolute;
  top: 1.15em;
  right: -0.35em;
  font-size: 0.75em;
  line-height: 0.21em;
  transform: scaleX(0.4);
  float:right;
}
 .E2 {
  top: 0.38em;
  position: absolute;
}
 .E2::after {
  content: "\1D116";
  position: absolute;
  top: 1.25em;
  right: -0.35em;
  font-size: 0.75em;
  line-height: 0.21em;
  transform: scaleX(0.4);
  float:right;
}
 .F2 {
  top: 0.32em;
  position: absolute;
}
 .G2 {
  top: 0.24em;
  position: absolute;
}
 .A2 {
  top: 0.16em;
  position: absolute;
}
 .B2 {
  top: 0.068em;
  position: absolute;
}
 .C3 { 
  top: 0.0em;
  position: absolute;
}
 .D3 { 
  top: 0.73em;
  position: absolute;
}
 .E3 { 
  top: 0.65em;
  position: absolute;
}
 .F3 { 
  top: 0.57em;
  position: absolute;
}
 .G3 { 
  top: 0.49em;
  position: absolute;
}
 .A3 { 
  top: 0.4em;
  position: absolute;
}
 .B3 { 
  top: 0.33em;
  position: absolute;
}
 .C4 {
  top: 0.26em;
  position: absolute;
}
.C4::after {
  content: "\1D116";
  position: absolute;
  top: 0.15em;
  right: -0.35em;
  font-size: 0.75em;
  line-height: 0.21em;
  transform: scaleX(0.4);
  float:right;
}
 .C9 {
  top: -0.93em;
  position: absolute;
}
 .C9::after {
  content: "\1D116";
  position: absolute;
  top: 1.25em;
  right: -0.35em;
  font-size: 0.75em;
  line-height: 0.21em;
  transform: scaleX(0.4);
  float:right;
}
 .D4 { 
  top: -0.99em;
  position: absolute;
}
 .E4 { 
  top: -1.06em;
  position: absolute;
}
 .F4 { 
  top: -1.14em;
  position: absolute;
}
 .G4 { 
  top: -1.23em;
  position: absolute;
}
 .A4 { 
  top: -1.31em;
  position: absolute;
}
 .B4 { 
  top: -1.39em;
  position: absolute;
}
 .C5 {
  top: -0.65em;
  position: absolute;
}
 .D5 { 
  top: -0.74em;
  position: absolute;
}
 .E5 { 
  top: -0.81em;
  position: absolute;
}
 .F5 { 
  top: -0.9em;
  position: absolute;
}
 .G5 { 
  top: -0.97em;
  position: absolute;
}
 .A5 { 
  top: -1.06em;
  position: absolute;
}
 .A5::after {
  content: "\1D116";
  position: absolute;
  top: 0.16em;
  right: -0.35em;
  font-size: 0.75em;
  line-height: 0.21em;
  transform: scaleX(0.4);
  float:right;
}
 .B5 { 
  top: -1.13em;
  position: absolute;
}
 .B5::after {
  content: "\1D116";
  position: absolute;
  top: 0.25em;
  right: -0.35em;
  font-size: 0.75em;
  line-height: 0.21em;
  transform: scaleX(0.4);
  float:right;
}
 .C6 {
  top: -1.22em;
  position: absolute;
}
 .C6::after { 
  content: "\1D116\00000a\1D116";
  white-space: break-spaces;
  position: absolute;
  top: 0.15em;
  right: -0.35em;
  font-size: 0.75em;
  line-height: 0.21em;
  transform: scaleX(0.4);
  float: right;
}

.rotated {
  display: inline-block;
  transform: rotate(-180deg);
  }

.flat {
  top: -0.05em;
  left: 0.1em;
  font-size: 0.6em;
  position: relative;
}
.flatrotated {
  top: -1.4em;
}
.sharp {
  top: -0.05em;
  left: 0.1em;
  font-size: 0.4em;
  position: relative;
}
.sharprotated {
  top: -2.05em;
}
.natur {
  top: -0.05em;
  left: 0.1em;
  font-size: 0.4em;
  position: relative;
}
.naturrotated {
top: -2.05em;
}

/*input*/
.noteinput {
  caret-color: #007bff;
  background-color: #ece0be;
  border-radius: 10px;
  text-align: center;
  text-transform: lowercase;
  padding: 5px;
  width: 100%;
}
.keyboard {
  padding-left: 0;
  padding-right: 0;
  font-size: 1.1em;
}
.keyboard {
  min-width: 3.5em !important;
}
.keyboard:hover {
  background-color: #60abc2;
}

.hidden {
  display: none;
  /*visibility:hidden;*/
}
.text-orange {
  color: #fd7e14;
}
.table-orange {
  caret-color: #fd7e14 ;
  background-color: #ffddc2;
}
.text-purple {
  color: #6f42c1;
}
.table-purple {
  background-color: #a5bfca;
  caret-color: #6f42c1;
}
.text-pink {
  color: #e83e8c;
}
.table-pink {
  caret-color: #e83e8c;
  background-color: #e4b2c9;
}
.bg-started {
  background-color: #b9dbff !important;
}
.bg-notes{
  background-color: #f7ede5;;
  /*opacity: 70%;*/
}
/*.text-ok {
  color: #28a745;
  border-bottom-color: #28a745;
}
.text-wrong {
  color: #dc3545;
  border-bottom-color: #dc3545;
}*/
.text-ok::after {
  /*content: "\2713";*/
  content: url('../img/note_green.svg');
  color: #28a745;
}
.text-wrong::after {
  /*content: "×";*/
  content: url('../img/note_red.svg');
  color: #dc3545;
}
.text-ok::after, .text-wrong::after {
  font-weight: 300;
  /*font-size: 1em;*/
  position: absolute;
  z-index: 2;
  border: 0px;
  right: 0.3em;
}
.disabled::before {
  content: "\2713";
  position: absolute;
  font-size: larger;
  left: 0.5em;
}
.finished::after {
  font-weight: 300;
  font-size: 2em;
  position: absolute;
  content: "\2713";
  color: #1d8636;
}
.aborted::after {
  font-weight: 300;
  font-size: 2em;
  position: absolute;
  content: "\2717";
  color: grey;
}
.started::after {
  font-weight: 300;
  font-size: 2em;
  position: absolute;
  /*display: inline-block;*/
  content: "\25E0";
  color: #0059b7;
  animation-name: spinner;
  animation-duration: 2s;
  animation-iteration-count: infinite;
}
  @keyframes spinner {
    /*0% { transform: rotate(0deg); }*/
    50% { transform: rotate(360deg); }
  }

.input-wrong {
  background-image: url("../img/note_red.svg") !important;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: right;
}
.input-ok {
  background-image: url("../img/note_green.svg") !important;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: right;
}

/*banner on svg path on welcome screen*/
path {
  fill: transparent;
}
.banner {
  font-size: 2.8rem;
  font-weight: 600;
  fill: #4d0909;
}

/*modal styling and background pictures*/
.modal-header, .modal-footer {
  border: 0px;
  background-position: bottom center;
}
#startModal .modal-footer {
  background-image: url("../img/note2.svg") !important;
  background-repeat: no-repeat;
  background-size: contain;
  margin: 5px;
}
#helpModal .modal-footer {
  background-image: url("../img/note2.svg") !important;
  background-repeat: no-repeat;
  background-size: contain;
  margin: 5px;
}
#checkModal .modal-body {
  background-image: url("../img/note2.svg");
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: 30%;
  opacity: 100%;
}
#hallOfFameModal .modal-footer {
  background-image: url("../img/note2.svg") !important;
  background-repeat: no-repeat;
  background-size: contain;
  margin: 5px;
}/*
#finishedModal .modal-body {
  background-image: url("../img/note2.svg") !important;
  background-repeat: no-repeat;
  background-size: auto 50%;
  background-position: bottom right;
  margin: 5px;
}*/
#checkModal .modal-content {
  background-image: url("../img/ghost2.svg") !important;
  background-repeat: no-repeat; 
  background-position: center center;
  background-color: transparent;
  background-size: 100% 95%;  
  border: none;
}
.modal-title{
  font-family: "coralinescat";
  color: #4d0909;
  font-size: small;
  line-height: normal;
  text-align: center !important;
}

/*Miscellaneous*/
.nopadding { /*for icon buttons*/
  padding: 0px;
  min-width: 1em;
}
.wider {
  min-width: 85px;
}
.btn-wide { 
  min-width: 4.4em;
  display: inline-block;
}
.logo {
  position: fixed; 
  width: 25%;
  margin: 10px;
}
#main { /*for maximized view*/
  margin-left: 0%; margin-right: 0%;
}
#problem {
  overflow-x: auto;
  margin-left: 10px;
  margin-right: 10px;
  max-width: max-content;
}
#header { 
  padding-top: 2em;
  padding-bottom: 0em;
  height: 6em;
}
#welcome { 
  padding-top: 1em;
}
.outline { 
  text-shadow: -1px -1px 0 white, 1px -1px 0 white, -1px 1px 0 white, 1px 1px 0 white;
}
#menu, #playerdisplay {
  margin-bottom: 0.5em;
}

#ghost { 
  position: fixed;
  z-index: -1;
  top: 10%;
  left: 10%;
  width: 20%;
}

.sprite {
  position: fixed;
  width: 6.5em;
  z-index: 1;
  top: 0.2em;
  left: 50%;
}

.activity { 
  width: 50%;
  /*max-width: 150px;*/
}

.form-control:hover:enabled, #classesDropdown > .dropdown-toggle:hover  {
  background-color: #eee;
}
.form-control:enabled, #classesDropdown > .dropdown-toggle  {
  background-color: #fff;
}
#classesDropdown > .dropdown-menu  {
  background-color: #ddd;
}
.classes:hover {
  background-color: #ccc !important;
}

/*animations*/
.sway { /*ghosts*/
  animation: sway 2s;
  animation-iteration-count: infinite;
}
@keyframes sway {
  0% { transform: rotate(20deg); }
  50% { transform: rotate(-20deg); }
  100% { transform: rotate(20deg); }
}

.shake, .activityimg:hover { /*activity buttons*/
  animation: shake 0.5s;
  animation-iteration-count: infinite;
}
@keyframes shake {
  0% { transform: translate(1px, 1px) rotate(0deg); }
  10% { transform: translate(-1px, -2px) rotate(-1deg); }
  20% { transform: translate(-3px, 0px) rotate(1deg); }
  30% { transform: translate(3px, 2px) rotate(0deg); }
  40% { transform: translate(1px, -1px) rotate(1deg); }
  50% { transform: translate(-1px, 2px) rotate(-1deg); }
  60% { transform: translate(-3px, 1px) rotate(0deg); }
  70% { transform: translate(3px, 1px) rotate(-1deg); }
  80% { transform: translate(-1px, -1px) rotate(1deg); }
  90% { transform: translate(1px, 2px) rotate(0deg); }
  100% { transform: translate(1px, -2px) rotate(-1deg); }
}

.pulse { /*smiling notes in*/
  animation: pulse 3s;
  animation-iteration-count: infinite;
}
@keyframes pulse {
	0% { transform: scale(0.8); }
  50% { transform: scale(1); }
	100% { transform: scale(0.8); }
}

.dance {
  position:absolute;
  top: 50px;
  right: 20px;
  width: 80px;
  animation: dance 3s;
  animation-iteration-count: infinite;
}
@keyframes dance{
  /*100%{ transform: rotate(-20deg); }*/
  50%{ transform: translateY(30px) scaleY(1.3); }
  /*67%{ transform: rotate(40deg); }*/
}

.blink {
  animation: blink 0.5s 3;
}
@keyframes blink {
	0% { transform: scale(1) }
  50% { transform: scale(1.1); color: #4d0909 }
	100% { transform: scale(1) }
}

#list td {
  max-width: 5em;
  min-width: 2em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/*responsive table settings*/
@media only screen and (min-width: 769px) and (max-width: 992px) {
  .display-3 { font-size: 5rem; }
  .display-4 { font-size: 4.5rem; }
  .display-6 { font-size: 2rem; }
  thead > tr {height: 1em; }
  .wider { min-width: 75px; }
  #header { height: 6em; }
  .sprite { width: 5.5em; }
  .spacer { height: 50px; }
  .keyboard { min-width: 3em !important; }
  .accoladebar { top: -0.22em; left: 0.17em; }
  .accolade { top: -0.52em; transform: scale(0.7,2.9); }
}
@media only screen and (min-width: 577px) and (max-width: 768px) {
  .display-3 { font-size: 4.5rem; }
  .display-4 { font-size: 4rem; }
  .display-6 { font-size: 1.5rem; }
  h1 { font-size: 32px; }
  thead > tr {height:1em; }
  .wider { min-width: 65px; }
  #header { height: 5.5em; }
  button > .btn-text { display: none; }
  .sprite { width: 5em; }
  .spacer { height: 46.5px; }
  .keyboard { min-width: 2.6em !important; }
  .accoladebar { top: -0.2em; left: 0.175em; }
  .accolade { top: -0.5em; left: -0.15em; transform: scale(0.7,2.95); }
}
@media only screen and (min-width: 361px) and (max-width: 576px) {
  .display-3 { font-size: 4rem; }
  .display-4 { font-size: 3.5rem; }
  .display-6 { font-size: 1.4rem; }
  h1 { font-size: 28px; }
  thead > tr {height:2em; }
  #header { padding-top: 1.5em; font-size: 0.7rem; }
  button > .btn-text { display: none; }
  .wider { min-width: 55px; }
  #header { height: 4em; }
  .modal-sm { max-width: 300px; }
  .modal-dialog {margin: auto; }
  .sprite { width: 4em; }
  .spacer { height: 40.5px; }
  .keyboard { min-width: 2.1em !important; }
  .accoladebar { top: -0.2em; left: 0.175em; }
  .accolade { top: -0.5em; left: -0.15em; transform: scale(0.7,3); }
}
@media only screen and (max-width: 360px) {
  .display-3 { font-size: 3.5rem; }
  .display-4 { font-size: 3rem; }
  .display-6 { font-size: 1.3rem; }
  h1 { font-size: 24px; }
  thead > tr {height:1.8em; }
  #header { padding-top: 1.5em; font-size: 0.6rem; }
  button > .btn-text { display: none; }
  .wider { min-width: 50px; }
  #header { height: 4em; }
  .sprite { width: 3.5em; }
  .spacer { height: 35px; }
  .keyboard { min-width: 1.7em !important; }
  .accoladebar { top: -0.2em; left: 0.185em; }
  .accolade { top: -0.5em; left: -0.15em; transform: scale(0.7,3); }
}