:root {
  --cell-header-bg-color: #2e303f;
}

.hidden {display: none; }
.hidden-important {/* display: none !important; */}


.dialog.progress-dialog {
  height: fit-content;
}

.progress-status {
  margin-top: 40px;
  font-size: 100%;
}

.progress-bar {
  height: 1em;
  margin: 1em 2em 0.3em 2em;
  background-color: #0002;
  border: 1px solid #0006;
  border-radius: 4px;
  position: relative;
}

.progress-bar-fill {
  background-color: var(--active-color);
  width: 0%;
  height: 100%;

}

.track-userlist-wrapper{
  display: flex;
  flex-direction: column;
  align-items: center;
}

.track-userlist-wrapper .user-list{
  height: 18px;
  max-width: 200px;
  padding: 7px;
  background-color: lightgray;
  border-radius: 9px;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all .25s ease-in-out;
  position: relative;
}

.track-userlist-wrapper .user-list:before{
  font-family: 'Font Awesome\ 5 Free';
  content: "\f0c0"; /* FontAwesome Unicode */
  width: 30px;
  height: 30px;
  border-radius: 50%;
  position: absolute;
  font-weight: 900;
  color: #465572;
  background-color: lightgray;
  display: flex;
  align-items: center;
  justify-content: center;
  left: -21px;
  font-size: 17px;
}

.track-userlist-wrapper .user-list:hover{
  cursor: pointer;
  height: 36px;
  max-width: 400px;
  padding: 10px;
  border-radius: 22px;
}

.track-userlist-wrapper .user-list:hover .collaborator{
  height: 15px;
  width: 15px;
  margin: 0 5px;
  position: relative;
}

.track-userlist-wrapper .user-list .collaborator{
  height: 10px;
  width: 10px;
  border-radius: 50%;
  margin: 0 2px;
  transition: all .25s ease-in-out;
  position: relative;
}

.track-userlist-wrapper .user-list .collaborator:hover{
  height: 20px;
  width: 20px;
}

.track-userlist-wrapper .user-list .collaborator .display-name{
  display: none;
  max-width: 90px;
  height: 25px;
  border-radius: 10px;
  padding: 5px;
  font-size: 12px;
  overflow: hidden;
  text-overflow:ellipsis;
  white-space: nowrap;
  background-color: #FFF;
  position: absolute;
  top: -27px;
  font-weight: 700;
}

.track-userlist-wrapper .user-list .collaborator:hover .display-name{
  display: block;
}

.track-container {
  width: calc(100vw - 215px);
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 20em;
  justify-content: center;
  align-items: start;
  /* height: calc(100vh - 55px); */
}

.track-container.compact {
  min-width: 300px;
  width: 325px;
}

.track-container.expand{
  width: calc(100vw - 75px);
}

.track-container .instrument-outline-wrapper{
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  position: relative;
  min-width: 50vw;
  min-height: 80vh;

    margin-top: 35px;
}
.track-container .instrument-outline-wrapper .instrument-outline{
  position: absolute;
  top: 0;
  min-height: 80vh;
  min-width: 50vw;

    background-image: url(../images/instruments/placeholder-outline.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  border: none;
  z-index: 0;
}

.track-container .instrument-outline-wrapper .add-cell{
  width: 100px;
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  font-size: 18px;
  font-weight: 700;
  z-index: 1;
  color: #FFF;
  border-radius: 5px;
  padding:0;
  border: none;
  text-align: center;
}

.track-container .instrument-outline-wrapper .add-cell .add-icon{
  color: rgba(200, 200, 200, 0.5) !important;
  align-items: center !important;
  border-radius: 50% !important;
  z-index: 1;
  width: 70px !important;
  height: 70px !important;
  display: flex !important;
  justify-content: center !important;
  border: 2px solid rgba(200, 200, 200, 0.5) !important;
  transition: all 0.25s !important;
  text-align: center !important;
  padding: 0 !important;
}

.track-container .instrument-outline-wrapper .add-cell .add-icon:hover{
  cursor: pointer;
  box-shadow: var(--main-box-shadow);
  background-color: rgba(0,0,0,0.03) !important;
  color: rgba(0,0,0, 0.4) !important;
}

.track-container .instrument-outline-wrapper .add-cell .add-icon i {
  margin: 0 !important;
  font-size: 30px !important;
}

.add-cell .add-text {
  z-index: 1;
  color: rgba(0,0,0,0.3);
}

.gadget-container {
  margin: 35px 85px 35px 30px;
  width: calc(100vw - 215px);
  min-width: 400px;
  max-width: 750px;
  padding: 0 10px;
  border-radius: 10px;
  position: relative;
  background-color: #946161;
  align-self: flex-start;
}

.gadget-container.compact {
  min-width: 500px;
  width: 450px;
}

.gadget-container.expand{
  width: calc(100vw - 75px);
}

.cell-contents {
  padding: 0 15px;
  border-left: 2px solid #414252;
  border-right: 2px solid #414252;
  background-color: #535563;
  position: relative;
}

.cell-contents .user-list{
  width: 15px;
  min-height: 35px;
  max-height: 140px;
  background-color: rgba(250, 250, 250, 0.95);
  position: absolute;
  top: 0;
  left: -48px;
  flex-direction: column;
  padding: 2px;
  z-index: 5;
}

.cell-contents .user-list:hover{
  cursor: pointer;
  padding: 10px;
  border-radius: 22px;
  min-height: 60px;
  max-height: 180px;
  max-width: unset;
  width: 20px;
}

.cell-contents .user-list .collaborator{
  margin: 2px 0;
}

.cell-contents .user-list:hover .collaborator{
  margin: 2px 0;
  position: relative;
  width: 12px;
  height: 12px;
}

.cell-contents .user-list .collaborator:hover{
  width: 15px;
  height: 15px;
}

.cell-contents .user-list:before{
  content: unset;
}

.gadget-container.text .cell-contents .user-list{
  left: -20px;
  z-index: 1;
}

.toolbar,
.timeline-container,
.instrument-container,
.editor-container,
.output-container,
.recording-container,
.user-message-container,
.error-container {
  position: relative;
  padding: 0 0 15px 0;
}

.instrument-wrapper {
  margin-top: 2px;
  touch-action: none;
}
.instrument-wrapper.armed {
  outline: 2px solid #fc0;
}


/* HEADER BAR */
.header-bar {
  background-color: var(--cell-header-bg-color);
  height: 60px;
  border-top: 2px solid #667;
  border-bottom: 2px solid #667;
  border-left: 2px solid #414252;
  border-right: 2px solid #414252;
  padding: 10px 20px;
  box-sizing: border-box;
  display: flex;
}

.gadget-icon {
  width: 40px;
  height: 40px;
  position: relative;
  top: -2px;
  background-color: var(--piano-color);
  border-radius: 50%;
  margin-right: 10px;
  background-image: url('../images/instruments/synth.svg');
  background-size: 70%;
  background-repeat: no-repeat;
  background-position: center;
}
.guitar .gadget-icon {
  background-color: var(--guitar-color);
  background-image: url('../images/instruments/bass.svg');
}
.bass .gadget-icon {
  background-color: var(--bass-color);
  background-image: url('../images/instruments/bass.svg');
}
.marimba .gadget-icon {
  background-color: var(--marimba-color);
  background-image: url('../images/instruments/marimba.svg');
}
.piano .gadget-icon {
  background-color: var(--piano-color);
  background-image: url('../images/instruments/synth.svg');
}
.drums .gadget-icon, .drumkit .gadget-icon {
  background-color: var(--drum-color);
  background-image: url('../images/instruments/drumkit.svg');
}
.definitions .gadget-icon {
  background-color: var(--definitions-color);
  background-image: url('../images/instruments/definitions.svg');
}
.gadget-icon.sound {
  background-color: var(--sound-color);
  background-image: url('../images/instruments/sampler.svg');
}

.definitions .copy-definitions-icon {
  font-size: small;
}

.definitions .module-name:hover {
  opacity: 0.8;
  cursor: pointer;
}


.header-bar .expander { flex: 1; }
.header-bar .gadget-name {
  width: 100%;
  color: white;
  font-weight: bold;
  font-family: var(--main-font);
  font-size: 15px;
  margin-bottom: 3px;
  border: 1px solid transparent;
  outline: none;
  background-color: transparent;
  padding: 4px 5px;
  position: relative;
  top: -5px;
  border-radius: 3px;
}
.header-bar .gadget-name:hover {
  background-color: #fff2;
  border: 1px solid #fff6;
}
.header-bar .gadget-name:focus {
  background-color: #fffd;
  color: #333;
  font-weight: normal;
  border: 1px solid black;
}
.header-bar .gadget-info,
.header-bar .gadget-error {
  color: #fff8;
  font-size: 12px;
  font-weight: 500;
  padding-left: 7px;
  position: relative;
  top: -8px;
}
.header-bar .gadget-error {
  color: #da575d;
  display: none;
}
.gadget-container.error .header-bar .gadget-info { display: none; }
.gadget-container.error .header-bar .gadget-error { display: block; }


/* PYTHON EDITOR */
.python-editor {
  /*min-height: 140px;*/
  max-height: 1000px;
  overflow-y: auto;
  margin: 0;
}

.CodeMirror {
  /*min-height: 140px;*/
  height: unset;
}
.gadget-container.locked .CodeMirror {
  pointer-events: none;
}

/* BUTTON TOOLBAR */
.toolbar {
  display: flex;
  padding: 8px 15px;
  background-color: #535563;
  border-left: 2px solid #414252;
  border-right: 2px solid #414252;
  color: #fffc;
  line-height: 34px;
}
.gadget-container.definitions .toolbar .module-name {
  font-weight: bold;
}
.toolbar button,
.toolbar .voice-selector,
.toolbar .menu-button {
  outline: none;
  border: 2px solid #9194A1;
  color: rgba(255, 255, 255, 0.75);
  background-color: #fff2;
  box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.1);
  width: 45px;
  height: 40px;
  border-radius: 5px;
  margin: 3px;
  font-size: 14px;
  text-align: center;
  white-space: nowrap;
  line-height: 40px;
  -webkit-transition: all 200ms ease-out;
  -moz-transition: all 200ms ease-out;
  -o-transition: all 200ms ease-out;
  transition: all 200ms ease-out;
}

.toolbar button:hover,
.toolbar .menu-button:hover,
.toolbar .voice-selector:hover {
    cursor: pointer;
    color: #DDD;
    border: 2px solid #DDD;
    background-color: #797B8A !important; }
.toolbar .voice-selector {
  border-radius: 4px;
  margin-right: 5px;
}
.toolbar .edit-current-patch {
  border-radius: 0px 4px 4px 0px;
  margin-left: 0px;
  border-left: none;
  display: none;
}
.toolbar button.hidden,
.toolbar button:hover,
.toolbar .voice-selector:hover,
.toolbar .menu-button:hover { background-color: rgba(255, 255, 255, 0.25); }
.toolbar button:active,
.toolbar .menu-button:active { background-color: rgba(255, 255, 255, 0.45); }
.toolbar .expander { flex: 1; }
.toolbar .voice-selector {
  flex: 1;
  box-sizing: border-box;
  display: flex;
  position: relative;
  min-width: 135px;
  margin-left: 0px;
  /* flex-wrap: wrap; */
}
.toolbar .load-button {
  font-size: 100%;
  line-height: 100%;
}
.toolbar .load-button i.fas {
  animation-name: spin;
  animation-duration: 5000ms;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}
.toolbar.instrument-toolbar {
  padding: 0 0 8px 0;
  border: none;
  border-color: transparent;
  font-weight: 700;
}

.toolbar button:last-child {margin-right: 0;}

.voice-selector .drop-menu.voice-menu {
  top: 29px;
  overflow: visible;
  width: 200px;
}
.drop-menu.voice-menu .menu-item:hover .drop-menu {
  /*  left: 195px; */
  overflow: visible;
  min-width: 200px;
}
.drop-menu.voice-menu .menu-item .fas,
.drop-menu.voice-menu .menu-item .menu-icon {
  width: 1.5em;
  font-size: 75%;
}
.voice-selector .voice-name {
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  text-align: left;
  padding-left: 10px;
  overflow-wrap: break-word;
  width: 100%;
}
.voice-selector i.fa {
  width: 15px;
  font-size: 16px;
  line-height: 40px;
  margin-right: 5px;
}
.gadget-container.readonly .voice-selector {
  display: none;
}
.menu-button {
  line-height: 40px;
  position: relative;
}
.menu-button.right{margin-right: 0px;}

.readonly .gadget-container .collapse-cell-button,
.readonly .gadget-container .menu-button {
  display: none;
}
#export-menu > .drop-menu {
  overflow-y: visible;
  right: 0;
}
#export-menu > .drop-menu > .drop-menu {
  left: 155px;
}

.menu-icon.hero-img {
  background-image: url('/assets/images/sound-wave.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 65%;
  height: 20px;
}
.timeline-loading {
  position: absolute;
  top: 20px;
  left: 0;
  width: 100%;
  height: calc(100% - 35px);
  /*
  background-color: #0008;
  background-image: url(/assets/images/sinewave.svg);
  background-repeat: repeat-x;
  background-position-y: center;
  background-size: 5%;
  animation-name: background-slide;
  animation-duration: 14s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
  font-weight: bold;
  */
  color: #fff;
  font-size: 15px;
  padding: 10px;
}
.timeline-loading.hidden {
  display: none;
}
@keyframes background-slide {
  0% { background-position-x: 0%; }
  100% { background-position-x: -100%; }
}

.view-selector {
  margin: 0;
  padding: 0;
  height: 29px;
  width: 100%;
}

.view-button {
  cursor: pointer;
  outline: none;
  height: 30px;
  width: 70px;
  color: rgba(255, 255, 255, 0.75);
  background-color: #414251;
  border-radius: 6px 6px 0px 0px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-bottom: 0px;
  overflow: hidden;
}

.view-button:hover {  background-color: rgba(255, 255, 255, 0.25);  }

.view-button.selected:hover {
  color: rgba(255, 255, 255, 0.75);
  background-color: #414251;
  cursor: default;
}


.selected#toggle-roll {
  border: 1px solid tomato;
  border-bottom: 0px;
}

.selected#toggle-music {
  border: 1px solid yellowgreen;
  border-bottom: 0px;
}

.selected#toggle-wave {
  border: 1px solid teal;
  border-bottom: 0px;
}



#wave-icon {
  width: 85%;
  height: 85%;
  margin: 0;
  vertical-align: middle;
}

.gadget-container.readonly .menu-button {
  display: none;
}

/* HIDDEN UNLESS AUTHENTICATED */
.gadget-container .logged-in-only { display: none; }
main.authenticated .logged-in-only { display: inherit; }


/* ERROR MESSAGES */
.error-message {
  background-color: white;
  padding: 15px;
  border-left: 14px solid #da575d;
  font-size: 13px;
}
.error-name-container { font-weight: 200; color: #445; margin-bottom: 5px; }
.error-name-container .fas { color: #da575d; margin-right: 5px; font-size: 120%; }
.error-name { position: relative; top: -2px; }
.error-description {
  background-color: #f9e4e5;
  padding: 15px 20px;
  font-family: monospace;
  color: #444;
  margin-top: 12px;
  line-height: 150%;
}
.error-info-link-wrapper{
  position: absolute;
  display: flex;
  justify-content: space-between;
  align-items: center;
  top:-2px;
  right: 15px;
  width: 80px;
  height: 50px;
}
.error-info-link.btn {
  width: 35px;
  height: 35px;
  padding: 7px;
  border-radius: 50%;
  transition: box-shadow 0.4s cubic-bezier(0.075, 0.82, 0.165, 1) 0s;
  box-shadow: 0px 10px 5px -10px rgb(50 50 93 / 25%), 0 30px 60px -30px rgb(0 0 0 / 0%);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  background-origin: content-box;
  filter: grayscale(100%);
  background-color: rgba(242, 242, 242, 0.5);
}
.error-info-link.btn:hover{box-shadow: 0px 15px 5px -10px rgb(50 50 93 / 25%), 0 30px 65px -30px rgb(0 0 0 / 0%); filter: none;}
.error-info-link.btn.google{background-image:url("../images/google_logo.svg"); padding: 9px;}
.error-info-link.btn.ddg{background-image:url("../images/ddg_logo.svg");}
[data-tooltip]:before {
  position : absolute;
  top: -45px;
  right: 0px;
  content : attr(data-tooltip);
  opacity : 0;
  width: 150px;
  font-weight: 700;
  border-radius: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5px 5px;
  background-color: rgba(249, 228, 229, 0.75);
  color: #333;
  text-align: center;
}
[data-tooltip]:hover:before {opacity : 1;}
.error-info-link.btn.ddg[data-tooltip]:hover:before {top: -63px;}
[data-tooltip]:not([data-tooltip-persistent]):before {
    pointer-events: none;
}

/* USER MESSAGES */
.user-messages {
  list-style: none;
  display: flex;
  flex-direction: column;
  padding: 0;
}
.user-message {
  background-color: #fed;
  padding: 15px;
  border-left: 14px solid orange;
  font-size: 15px;
  font-weight: 500;
  margin-top: 3px;
}
.user-message.fail {
  border-left: 14px solid #da575d;
  background-color: #f9e4e5;
}
.user-message.pass {
  border-left: 14px solid green;
  background-color: #ded;
}
.user-message i.fas {
  font-size: 130%;
  color: orange;
  margin-right: 15px;
  position: relative;
  top: 2px;
}
.user-message.pass i.fas { color: green; }
.user-message.fail i.fas { color: #da575d; }


/* PYTHON OUTPUT */
.output-container { }
.output-container .output {
  min-height: 100px;
  max-height: 250px;
  overflow: auto;
  background-color: #fffe;
  box-shadow: 0 0 10px 4px #3331 inset;
  font-family: monospace;
  color: #333;
  font-size: 14px;
  padding: 10px 15px;
  margin: 0;
}
.output .println.preview { color: #ccc; font-weight: 200; }
.output .println.highlight { color: black; font-weight: bold; background-color: #ddd; }

.gadget-container .close-button {
  top: 0;
  right: 20px;
  width: 26px;
  height: 26px;
  background-color: transparent;
  color: #555;
  outline: none;
  border-radius: 50%;
  border: 1px solid #333;
  position: absolute;
  margin: 10px;
}
.gadget-container .output-container .close-button { right: 0; }
.gadget-container .close-button:hover { background-color: #0001; }
.gadget-container .close-button:active { background-color: #0002; }

.output-hint {
  position: absolute;
  bottom: 10px;
  right: 20px;
  color: white;
  background-color: #87c44e;
  padding: 3px 14px;
  font-size: 12px;
  font-weight: 300;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 1s;
  outline: none;
  border: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  z-index: 100;
  pointer-events: none;
}
.output-hint.visible { opacity: 1.0; pointer-events: all; }

.output-hint .output-count {
  display: inline-block;
  color: #87c44e;
  background-color: white;
  border-radius: 12px;
  height: 24px;
  font-weight: bold;
  line-height: 24px;
  min-width: 30px;
  margin-left: 8px;
  text-align: center;
  font-size: 13px;
}

/* RECORDING BOX */
.gadget-container .stop-button { display: none; }
.gadget-container.recording .stop-button { display: block; }
.recording-container.hidden { display: none; }
.gadget-container .record-button {
  padding: 0 10px;
  width: 5.5em;
  user-select: none;
  font-weight: 700;
  font-family: var(--main-font);
}
.recording-container pre {
  height: 150px;
  overflow: auto;
  background-color: #2E303F;
  font-family: monospace;
  color: #29C;
  font-size: 13px;
  padding: 10px 15px;
  margin: 0;
}

.recording-container .toolbar {
  padding: 0 0 10px 0;
  border: none;
}

.recording-container .metronome-button {
  background-image: url('../images/metronome.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 55%;
  width: 50px;
}
.recording-container .metronome-button.playing { background-color: rgba(255, 255, 255, 0.45); }
.recording-container .metronome-button.tock {
  background-image: url('../images/metronome-tock.svg');
}

.stop-button {
  color: #fff9 !important;
  background: #da575d !important;
}

.recording-container button {
  padding: 0 10px;
  font-size: 14px;
  height: 32px;
  line-height: 32px;
  font-family: var(--main-font);
  width: auto;
  user-select: none;
  --webkit-user-select: none;
}

.recording-container .toolbar .button {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
}

/* SHARE DIALOG */
.dialog.share {
  color: #333;
  width: 60%;
  max-height: 80vh;
  max-width: 700px;
  padding: 25px 45px;
  overflow-y: auto;
  height: fit-content;
}

.dialog.share .dialog-button-row {
  margin-top: 0;
}

.track-info {
  font-size: 13px;
  padding: 13px 20px;
  box-sizing: border-box;
  display: flex;
  line-height: 90%;
  background-color: #fbfbfb;
  border-radius: 7px;
  margin-bottom: 1em;
  box-shadow: var(--main-box-shadow);
}

.track-info .gadget-icon {
  width: 45px;
  height: 45px;
}

.track-details {
  font-size: 14px;
  color: #333;
  width: 500px;
  margin: 0 0 0 15px;
  display: flex;
  flex-flow: row;
  flex-wrap: wrap;
  text-align: left;
}

.track-details.hidden { display: none; }

.track-details dt {
  flex: 0 0 20%;
  line-height: 2em;
  font-weight: bold;
}

.track-details dd {
  flex: 0 0 75%;
  line-height: 2em;
  font-weight: normal;
  margin: 0;
}

.track-details dd.track-description textarea {
  width: 300px;
  height: 100px;
  margin-top: 6px;
  font-size: 15px;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #aaa;
  background-color: #eee;
  color: #555;
  font-family: var(--main-font);
}

.gadget-container.text {
  padding: 0;
  background-color: white;
  border-radius: 0;
  box-shadow: 0px 0px 5px #0002;
}
.gadget-container.text .cell-contents {
  padding: 0;
  border: none;
  background-color: white;
}

.gadget-container.text .header-bar {
  background-color: white;
  border: none;
  border-top: 9px solid var(--text-color);
  border-bottom: 1px solid #ccc;
  padding: 1em 2em;
  height: 80px;
}
.gadget-container.text .header-bar .gadget-name {
  color: #535563;
  font-size: 18px;
  margin-left: 8px;
  margin-top: 5px;
}
.gadget-container.text .header-bar .gadget-name:hover {
  border: 1px solid #ddd;
}
.gadget-container.text.readonly .header-bar .gadget-name:hover,
.gadget-container.text.readonly .header-bar .gadget-name:focus,
.gadget-container.text.readonly .header-bar .gadget-name:focus{
  border: 1px solid transparent;
  font-weight: bold;
}
.gadget-container.text .header-bar .menu-button {
  background-color: #e4e4e6;
  width: 35px;
  height: 35px;
  text-align: center;
  line-height: 35px;
  border-radius: 5px;
  color: #555;
  margin-left: 15px;
}
.gadget-container.text .expand-cell-button,
.gadget-container.text .collapse-cell-button {
  width: 35px;
  height: 35px;
  background-color: #e4e4e6;
  color: #555;
  border: none;
  outline: none;
  margin-left: 10px;
  border-radius: 5px;
}
.gadget-container.text .menu-button:hover,
.gadget-container.text .expand-cell-button:hover,
.gadget-container.text .collapse-cell-button:hover {
  background-color: #ccc;
}

.gadget-container.text .gadget-icon,  .text .gadget-icon{
  background-color: var(--text-color) !important;
  background-image: url(../images/instruments/text.svg);
  background-color: white;
}

.gadget-container .last-saved {
  position: absolute;
  width: 100%;
  text-align: right;
  font-size: 11px;
  padding-top: 0.5em;
  padding-right: 25px;
  color: #0009;
  user-select: none;
  --webkit-user-select: none;
}

button.midi-button {
  width: 90px;
  min-width: 85px;
  background-image: url(/assets/images/instruments/piano.svg);
  background-repeat: no-repeat;
  background-size: 25%;
  background-position: 6px center;
  font-family: var(--main-font);
  font-weight: 700;
  text-align: left;
  user-select: none;
  --webkit-user-select: none;
  padding-left: 32px;
}
button .led {
  width: 8px;
  height: 8px;
  background-color: #555;
  display: inline-block;
  border-radius: 50%;
}
button.armed .led {
  background-color: #0d0;
  box-shadow: 0 0 5px #0f0;
}
button.armed .led.red {
  background-color: #d00;
  box-shadow: 0 0 8px #f55;
}
button.midi-button .led {
  position: relative;
  left: 5px;
  top: -1px;
}
button.record-button .led {
  position: relative;
  left: 9px;
  top: -1px;
}

@media only screen and (max-width: 600px) {
  .track-container, .track-container.expand{
    max-width: 100vw;
    width: auto;
    align-items: center;
    justify-content: center;
  }
  .track-container .gadget-container, .gadget-container.expand{
    margin: 35px auto;
    width: calc(100vw - 20px);
    min-width: 300px;
    max-width: 100vw;
    touch-action: none;
  }
  .track-container .gadget-container .menu-button,
  .track-container .gadget-container .record-button,
  .track-container .gadget-container .collapse-cell-button {
    display: none;
  }
  .toolbar button, .toolbar .voice-selector, .toolbar .menu-button{
    font-size: 13px;
  }
  .voice-selector .voice-name{
    padding-left: 5px;
  }
  .track-container .instrument-outline-wrapper{
    width: 95vw;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
  }
}

@media only screen and (max-width: 400px){
  .track-container .instrument-outline-wrapper{
    display: none;
  }
}