html,
body {
  width: 100%;
  height: 100%;
  margin: 0px;
  padding: 0px;
  overflow: hidden;

  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;

  font-family: verdana, meiryo, sans-serif, Arial Unicode MS, Cambria Math;
}

#loadingImg {
  position: fixed;
  top: 1em;
  left: 1em;
  width: 10em;
  height: 10em;
  background-color: #ffffffaa;
  border-radius: 5em;
  z-index: 999;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  visibility: hidden;
  opacity: 0;
  transition: visibility .2s ease, opacity .2s ease;
}

#loadingImg.vis {
  visibility: visible;
  opacity: 1;
}

#sysinfo {
  position: absolute;
  z-index: 999;
  display: none;
}

#plotdiv {
  width: 100%;
  height: 35%;
  border-bottom: 1px solid black;
  display: inline-block;
  position: relative;
}

#plotdiv>.js-plotly-plot {
  height: 100%;
}

#plotdiv-overlay-open {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.plot-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.plot-overlay-inner {
  position: relative;
  width: 90vw;
  height: 90vh;
  max-width: 90%;
  max-height: 90%;
  background-color: #fff;
  box-sizing: border-box;
  padding: .5em;
}

#plotdiv-overlay-close {
  position: absolute;
  top: .25em;
  right: .5em;
  background: transparent;
  border: none;
  cursor: pointer;
}

#plotdiv-overlay-content {
  width: 90%;
  height: 90%;
}

#plotdiv-overlay-content>.js-plotly-plot {
  width: 100% !important;
  height: 100% !important;
}

#uidiv {
  width: 33em;
  height: 100%;
  border-left: 1px solid black;
  display: inline-block;
  margin-left: -6px;
  overflow-y: auto;
}

#uidiv-table-wrapper {
  max-height: calc(100vh - 35%);
  overflow-y: auto;
}

#uidiv tr:nth-child(3),
#uidiv tr:nth-child(4),
#uidiv tr:nth-child(5),
#uidiv tr:nth-child(6),
#uidiv tr:nth-child(7),
#uidiv tr:nth-child(9),
#uidiv tr:nth-child(10),
#uidiv tr:nth-child(12),
#uidiv tr:nth-child(13),
#uidiv tr:nth-child(14),
#uidiv tr:nth-child(15),
#uidiv tr:nth-child(1) td:nth-child(2),
#uidiv tr:nth-child(16) td:nth-child(2) {
  position: relative;
  left: 1em;
}

#uidiv input::-webkit-outer-spin-button,
#uidiv input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#uidiv input[type=number] {
  width: 4em;
  -moz-appearance: textfield;
}

#uidiv tr:nth-child(16) td:nth-child(2) div:nth-child(1),
#uidiv tr:nth-child(16) td:nth-child(2) div:nth-child(2) {
  display: inline-block;
  width: 2em;
  height: 1em;
  border: 1px solid grey;
  margin-right: .5em;
  vertical-align: middle;
}

#uidiv tr:nth-child(16) td:nth-child(2) div:nth-child(1) {
  background-color: white;
}

#uidiv tr:nth-child(16) td:nth-child(2) div:nth-child(2) {
  background-color: black;
}

#uidiv tr:nth-child(16) td:nth-child(2) div:nth-child(1):hover,
#uidiv tr:nth-child(16) td:nth-child(2) div:nth-child(2):hover {
  cursor: pointer;
  border: 1px solid red;
}


#fv_merged2_min,
#fv_merged2_max {
  width: 6em !important;
}

#fv_ribbon_toggle {
  transform: scale(1.2);
}

#uidiv input[type=color] {
  width: 2em;
  vertical-align: middle;
}

#plotdiv>div {
  height: 22em;
}

.molmil_UI_container {
  top: -35%;
  width: calc(100% - 33em - 1px);
  height: calc(100vh - 35%);
}

#help {
  position: absolute;
  top: 1.5em;
  left: 1em;
  z-index: 999;
  cursor: pointer;
  border: 1px solid black;
  border-radius: 1em;
  padding: .2em .5em .2em .5em;
}

#help:hover {
  color: #C8323A;
  border: 1px solid #C8323A;
}

#help_content {
  position: absolute;
  top: 2.25em;
  left: 1em;
  border: 1px solid black;
  border-radius: 1em;
  padding: .5em .5em .5em 2em;
  width: 30em;
  background-color: white;
}