html, body {
  text-align:center;
  position: 50% 50%;
  background: black;
  margin: 0;
  padding: 0;
}
canvas {
  display: block;
}

body{
  color: rgb(0, 255, 241);
  font-family: bitcount-grid-single-circle, sans-serif;
  font-size: 2em;
  font-weight: 400;
  font-style: normal;
}

#instructions{
  font-family: bitcount-grid-single-circle, sans-serif;
  font-size: .7em;
  margin: 0 0 2em 0;
}

#enterscreen{
  background: black;
}

#entermenu{
    text-align: center;
    overflow: clip;
    position: absolute;
    top: 50%;
    left: 50%;
    padding: 1em;
    border-radius: .5em;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.72);
    box-shadow: inset 0 0 80px 1px rgba(0, 255, 241, 0.15);
    border: dashed;
}

.entermenubutton,
.entermenubutton *,
.entermenubutton :after,
.entermenubutton :before,
.entermenubutton:after,
.entermenubutton:before {
  border: 0 solid;
  box-sizing: border-box;
}
.entermenubutton {
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: button;
  background-color: rgba(0, 0, 0, 0.57);
  background-image: none;
  color: rgb(0, 255, 241);
  cursor: pointer;
  font-family: bitcount-grid-single-circle, sans-serif;
  font-size: 100%;
  font-weight: 900;
  line-height: 1.5;
  margin: 0;
  -webkit-mask-image: -webkit-radial-gradient(#000, #fff);
  padding: 0;
}
.entermenubutton:disabled {
  cursor: default;
}
.entermenubutton:-moz-focusring {
  outline: auto;
}
.entermenubutton svg {
  display: block;
  vertical-align: middle;
}
.entermenubutton [hidden] {
  display: none;
}
.entermenubutton {
  border-radius: 99rem;
  border-width: 2px;
  overflow: hidden;
  padding: 0.8rem 3rem;
  position: relative;
}
.entermenubutton span {
  mix-blend-mode: difference;
}
.entermenubutton:before {
  -webkit-animation: move-out 0.3s;
  animation: move-out 0.3s;
  background: rgba(0, 255, 241, 0.82);
  content: "";
  height: 100%;
  left: -100%;
  position: absolute;
  top: 0;
  width: 100%;
  will-change: transform;
}
.entermenubutton:hover:before {
  -webkit-animation: move-in 0.3s forwards;
  animation: move-in 0.3s forwards;
}
@-webkit-keyframes move-in {
  0% {
    transform: translateX(0);
  }
  to {
    transform: translateX(100%);
  }
}
@keyframes move-in {
  0% {
    transform: translateX(0);
  }
  to {
    transform: translateX(100%);
  }
}
@-webkit-keyframes move-out {
  0% {
    transform: translateX(100%);
  }
  to {
    transform: translateX(200%);
  }
}
@keyframes move-out {
  0% {
    transform: translateX(100%);
  }
  to {
    transform: translateX(200%);
  }
}

/* Container for editor panel inputs - horizontal scroll */
#inputs {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  gap: 20px;
  padding: 10px;
  height: auto;
  margin-left: 10px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  /* Ensure children can receive clicks */
  -webkit-overflow-scrolling: touch;
}

#panelTop{
  padding: 10px;
  z-index: 999999;
}

hr{
  border: dashed rgb(0, 255, 241);
  border-width:thin;
}

.board-card {
  flex: 0 0 auto;
  width: 90%;
  border: 1px solid rgb(0, 255, 241);
  border-radius: .8em;
  padding: 1em;
  background: rgba(0, 0, 0, 0.2);
  scroll-snap-align: start;
  box-shadow: inset 0 0 80px 1px rgba(0, 255, 241, 0.15);
  border: dashed;

  /* ensure inputs inside are clickable */
  pointer-events: auto;
}

/* Board header */
.board-header {
  text-align: center;
  margin-top: 0;
  font-weight: bold;
  margin-bottom: .1em;
  font-size: 1.4em;
}

/* Chord label */
.chord-label {
  color: rgb(0, 255, 241);
  font-weight: 600;
  margin-bottom: 5px;
  font-size: 1.2em;
}

/* Note row */
.note-row {
  display: flex;
  align-items: center;
  margin-bottom: .3em;
}

/* Note label */
.note-label {
  color: rgb(0, 255, 241);
  margin-right: 5px;
}

  #editorPanel input[type="number"] {
  width: 40%;
  padding: .2em .2em 0 .2em;
  margin: 0 1em;
  border: 1px solid #888;
  border-radius: 4px;
  font-family: bitcount-grid-single-circle, sans-serif;
  font-size: 1.2em;
  font-weight: 400;
  font-style: normal;
  margin-left: 5px;
  color: rgb(0, 255, 241);
  background: rgba(0, 255, 241, 0.14);
  box-shadow: inset 0 0 80px 1px rgba(0, 255, 241, 0.15);
  
  }


input[type="range"] {
  padding: 0;
  width: 100px;
  accent-color: rgb(0, 255, 241);
}

/* Volume input */
.note-vol {
}

#editorPanel {
  display: none;  
  position: fixed;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 3.2em;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.72);
  border-radius: .6em;
  box-shadow: inset 0 0 80px 1px rgba(0, 255, 241, 0.15);
  border: dashed;
  z-index: 999999 !important;
  box-sizing: border-box;
  transition: .45s;
  padding: 0 .2em .8em;
  }

#editorPanel, #editorPanel * {
  pointer-events: auto !important;
}

#editorPanel.open {
  height: 70%;
}

#editorToggle {
  margin: 10px 0;
  padding: 14px 20px;
  background: rgba(0, 0, 0, 0.2);
  color: rgb(0, 255, 241);
  border-radius: 15px;
  text-align: center;
  font-size: 1.5em;
  cursor: pointer;
  z-index: 10000;
  user-select: none;
  transition: background 0.25s ease;
  font-weight: 600;
}

canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -100 !important;
  pointer-events: none; /* optional if you never need canvas clicks */
}

#consolePanel{
  display: none;  
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 3.2em;
  overflow-y: hidden;
  background: rgba(0, 0, 0, 0.72);
  border-radius: .6em;
  box-shadow: inset 0 0 80px 1px rgba(0, 255, 241, 0.15);
  border: dashed;
  z-index: 888888 !important;
  box-sizing: border-box;
  transition: .45s;
  padding: .5em .8em;
  }


#consolePrint {
  max-height: 50%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.2em;
  box-sizing: border-box;
}

#consolePanel, #consolePanel * {
  pointer-events: auto !important;
  margin: 0 !important;
  padding: .28em !important;
  z-index: 999999;
}

#consolePanel.open {
  height: 30%;      /* panel visible */
}

#consoleToggle {
  margin: 10px 0;
  padding: 14px 20px;
  background: rgba(0, 0, 0, 0.2);
  color: rgb(0, 255, 241);
  border-radius: 15px;
  text-align: center;
  font-size: 1.5em;
  cursor: pointer;
  z-index: 10000;
  user-select: none;
  transition: background 0.25s ease;
  font-weight: 600;
}