@import url("https://fonts.googleapis.com/css?family=Orbitron:400,500,700,900&display=swap");
@import url("https://fonts.googleapis.com/icon?family=Material+Icons");

:root {
  --main-bg-color: #333;
  --max-width: 1100px;
}

body *,
* {
  font-family: verdana;
  font-size: 16px;
  box-sizing: border-box;
}

table,
tr,
td {
  /*    box-sizing: content-box;*/

}

h1 {
  font-size: 32px;
}

h2 {
  font-size: 26px;
}

h3 {
  font-size: 22px;
}

body {
  background-color: #3e4444;
  padding: 0;
  margin: 0;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}


#container {
  display: flex;
  flex-direction: column;
  border: 1px solid #333;
  background-color: var(--main-bg-color);
  margin: auto;
  width: 100%;
  max-width: var(--max-width);
}

.cpath {
  font-size: 22px;
  color: #c1946a;
}

#left-panel {
  width: 100%;
  min-width: 300px;
  max-width: var(--max-width);
  background-color: #bbb;
  /*background-color:#bfc9ca;*/
  padding: 16px;
  /*position: fixed;*/
  height: 148px;
  box-sizing: border-box;
  z-index: 1100;
  margin-top: -3px;
  color: #000;
  border-bottom: 8px solid var(--main-bg-color);

}

#left-panel>div {
  padding: 0 8px;
  margin: auto;

}

#left-panel select {
  font-size: 12px;
}

#left-panel select option {
  font-size: 12px;
  padding: 4px 8px;
}

#left-panel ul {
  list-style: none;
  display: flex;
  margin: 0;
  margin-left: 8px;
  font-size: 12px;


  padding: 0;
}

#left-panel ul li {
  padding: 8px 8px 12px;
  margin-right: 3px;
  letter-spacing: 2px;
  color: #000;
  background-color: #fafafa;
  cursor: pointer;
  border-radius: 4px 4px 0px 0px;
  text-transform: uppercase;
  font-size: 12px !important;
}

#left-panel ul li span {
  font-size: 12px;
}

input[type="button"]:hover {
  background-color: #a00c0d !important;
  color: #fff;
}

#left-panel ul li:hover {
  background-color: #000;
  color: #fff;
}

#left-panel ul li.selected {
  background-color: var(--main-bg-color);
  color: #FFF;
}

#left-panel ul li a {
  display: block;
  color: #000;
  text-decoration: none;
  color: #f12c2c;
}

#header {
  display: flex;
  flex: 1;
  max-width: 1140px;
  margin: auto;
  padding: 0 8px;

}

#info {
  color: #fff;

}

#midi {
  margin-bottom: 16px;
  color: #000;
  display: flex;

  flex-direction: column;
}

#midi label {
  width: 96px;
}

#midi select {
  margin-right: 4px;
  flex: 1;
}

.apptitle {
  display: flex;
  margin-bottom: 8px;
  min-width: 500px;
  flex-grow: 1;
  align-items: flex-start;
  flex-direction: column;
  justify-content: flex-start;
}

.apptitle h1 {
  font-family: Orbitron, "Sans-Serif";
  margin: 0;
  margin-top: -8px;
}

.prow {
  display: flex;
  margin-bottom: 8px;
  justify-content: space-around;
}

.prow label {
  white-space: nowrap;
  margin: 0px 4px 0px 16px;
}

.error {
  color: crimson !important;
  font-weight: bold;
}

.version {
  color: green !important;
  font-weight: bold;
}

#ctitle {
  text-align: center;
  width: 100%;
  background-color: #004d40;
  color: #fff;
  padding: 16px;

  font-family: "Helvetica,verdana,arial";
  font-size: 32px;
}

#main {
  background-color: #bfc9ca;
  background-color: var(--main-bg-color);
  margin-top: 4px;
  box-sizing: border-box;
  padding: 0 32px 32px 32px;
  /*min-width: var(--max-width);*/
  width: 100%;

  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;

}

#disclaimer {
  font-size: 80%;
  margin-top: 32px;
}

#channels {
  display: flex;
  flex-direction: column;
}

.channel {
  margin: 8px 0px;
  padding: 0;
  /*border: 1px solid #000;
  background-color: #E8F5E9;*/
  min-width: 150px;
  display: flex;
  min-height: 72px;
}

.channel .data {
  /* padding: 2px;*/
  display: flex;
}

.chtitle {
  padding: 8px;
  background-color: #004d40;
  color: #fff;
  text-align: center;
  min-width: 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}


.filter-item {
  padding: 8px 8px;
  margin: 0;
  cursor: pointer;
  border: 1px solid #111;
  font-size: 12px;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  text-align: center;
}

.desc {
  padding: 6px;
  font-size: 12px;
  margin-top: -12px;
  display: block;
}

.desc-main {
  display: flex;
  margin-left: 16px;
}

.desc-main:hover .desc {
  display: block;
}

div.disabled {
  border: 1px dashed #000;
  background-color: rgba(0, 0, 0, 0.3);
}

div.disabled button:not(.disabled) {
  display: none;
}

div.disabled .filter-name,
div.disabled .filter-label {
  opacity: 0.2;
}

.warn {
  min-width: 600px;
  font-size: 16px;
  text-align: center;
  width: 100%;
  margin: 32px, auto, 16px, auto !important;
  align-self: center;
}

.prow h1 {
  white-space: nowrap;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 24px;
  margin: 0;
}

.prow select {
  max-width: 200px;
}

.prow {
  align-items: center;
}

.vb {
  height: 96px;
}

h1 .stitle {
  color: green;
  font-size: 1em;
  vertical-align: middle;
}

.contentdescription {
  color: #fff;
}


#editor td label,
td select,
td option {
  font-size: 12px;
  margin-right: 8px;
}

td option {
  padding: 8px;
  margin: 8px;
  display: block;
}

#APP {
  padding: 16px;
  border-radius: 8px;
  background-color: #111;
  display: flex;
  justify-content: center;
  /*align-items: center;*/
  flex: 1;
  min-height: 300px;
  overflow: hidden;
}

#appmain {
  display: flex;
  flex-direction: column;
  background-color: #111;
}

#appmain>.row {
  display: flex;
  gap: 32px;
}

#frameset {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 720px;
  overflow-y: scroll;
}

#frameset li {
  height: 24px;
  border: 1px solid #888;
  position: relative;
  width: 180px;
  display: flex;
  align-items: center;
  padding: 4px;
  gap: 3px;
  background-color: lightblue
}

#frameset li.selected {
  height: 24px;
  border: 1px solid #888;
  position: relative;
  width: 180px;
  display: flex;
  align-items: center;
  padding: 4px;
  gap: 3px;
  background-color: yellowgreen;
}

#frameset li .frame {
  flex: 1;
  cursor: pointer;
  display: flex;
  gap: 4px;

}

#frameset li .frame span {
  font-size: 12px;
}

#frameset li .frame:hover {
  background-color: #00000033;
}

#frameset li .remove,
#frameset li .add {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  border: 1px solid #000;
  align-items: center;
  justify-content: center;
  right: 0;
  cursor: pointer;
}

.remove span,
.add span {
  font-size: 12px;
  margin-top: -2px;
}

.row.flexcenter {
  display: flex;
  justify-content: center;
}

::-webkit-scrollbar {
  width: 12px;
  /* width of the entire scrollbar */
}

::-webkit-scrollbar-track {
  background: transparent;
  /* color of the tracking area */
}

::-webkit-scrollbar-thumb {
  background-color: salmon;
  /* color of the scroll thumb */
  border-radius: 20px;
  /* roundness of the scroll thumb */
  border: 4px solid black;
  /* creates padding around scroll thumb */
}

#library {
  position: absolute;
  z-index: 999999999;
  max-width: 400px;
  padding: 4px;
  background-color: #222;
  border-radius: 4px;
  cursor: pointer;
}

#library h3 {
  margin: 0;
  font-size: 16px;
  text-transform: uppercase;
  color: #777;
}

#library:hover h3::before {
  content: 'Frame & Project ';

}

#library h4 {
  margin: 0;
  font-size: 14px;
  text-transform: uppercase;
  color: #777;
}

#library #lib-inner {
  margin-top: 16px;
  display: none;
}

#library:hover #lib-inner,
#library:focus-within #lib-inner {
  min-width: 300px;
  display: block;

}

#library #lib-inner .patches {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 660px;
  min-height: 660px;
  overflow-y: scroll;
  margin: 16px;
  padding-right: 16px;

}

#library #lib-inner .patches li {
  padding: 16px 8px 4px;
  position: relative;
  font-size: 12px;
  border-radius: 8px;
  color: #ddd;
  cursor: pointer;
  background-color: #111;
}


#library #lib-inner .patches li::before {
  content: 'FRAME';
  font-size: 9px;
  position: absolute;
  top: 4px;
  right: 8px;
  color: #444;
}

#library #lib-inner .patches li.LIBProject {
  color: palevioletred
}

#library #lib-inner .patches li:hover {
  color: yellow;
}

#library #lib-inner .patches li:hover::before {

  color: darkkhaki;
}



#library #lib-inner .patches li.LIBProject::before {
  content: 'PROJECT';
  /*font-size: 9px;
    position: absolute;
    top: 4px;
    right: 8px;*/
}

#lib-filter {
  display: flex;
  width: 100%;
  justify-content: center;
  padding: 0 4px;
  gap: 4px;
}

#lib-select {
  display: flex;
  padding: 0 4px;
}

#lib-select ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

#lib-select ul li {
  flex: 1;
  display: flex;
  border: 1px solid #000;
  background-color: #ccc;
  justify-content: center;
  font-size: 12px;
  padding: 4px;
  opacity: 0.45;
}

#lib-select ul li.active {
  background-color: yellowgreen;
  opacity: 1;
}


#lib-filter input {
  flex: 1;
  background-color: #333;
  font-size: 12px;
  color: yellowgreen;
  padding: 4px;
}

#lib-filter button {
  background: #333;
  color: #ccc;
}

@media(max-width:920px) {
  #header {
    flex-direction: column;
    justify-content: center;
  }

  .apptitle {
    justify-content: center;
    align-items: center;
    flex: 1;
  }

  #midi .prow {
    justify-content: center;
  }

}