body {
  font-family: Verdana;
  margin: 0;
  padding: 0;
}
button {
  background-color: #E3E3E3;
  border: 1px solid #777;
  font-size: 15px;
  padding: 8px;
  outline: 0;
}
button:hover {
  background-color: #C7C7C7;
}

/* ### Title Bar ### */
/* Top bar wrapper */
#titleBar {
  /*display: flex;
  flex-direction: row;*/
  position: relative;
  padding-left: 71px;
  padding-top: 6px;
  padding-right: 86px;
  background-color: black;
  height: 38px;
}
/* Title bar text */
#titleLeft {
  width: 100%;
  color: white;
  font-size: 26px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  /*border: 1px solid red;*/
}
/* Qubit logo image */
#logo {
 position:absolute;
 left:1px;
 top:1px;
 z-index: 10;
}

.functionButton {
  position: absolute;
  top: 7px;
  height: 30px;
  width: 30px;
  border: none;
  border-radius: 4px;
}
/* Hamburger button to toggle menu */
#menuBtn {
  right: 18px;
}
#menuBtn:before {
  position: absolute;
  top: 6px;
  right: 5px;
  border-bottom: 11px double black;
  border-top: 4px solid black;
  content: "";
  height: 3px;
  width: 20px;
}
#yoyo {
  right: 54px;
  padding: 0px 0px;
}


/* ### Secondary Bar ### */
/* Sub bar wrapper */
#subBar {
  position: relative;
  width:100%;
  background-color: #282828;
  height: 26px;
}

/* Zoom-in, zoom-out and moves screen buttons */
.navButton {
  position:absolute;
  top: 2px;
  height: 22px;
  width: 22px;
  border: none;
  border-radius: 2px;
}
/* Zoom in button */
#zoomInButton {
  left: 73px;
}
#zoomInButton::before {
  background-color: #282828;
  width: 2px;
  height: 12px;
  position: absolute;
  top: 5px;
  left: 10px;
  content:"";
}
#zoomInButton::after {
  background-color: #282828;
  width: 12px;
  height: 2px;
  position: absolute;
  top: 10px;
  left: 5px;
  content:"";
}
/* Zoom out button */
#zoomOutButton {
  left: 98px;
}
#zoomOutButton::after {
  background-color: #282828;
  width: 12px;
  height: 2px;
  position: absolute;
  top: 10px;
  left: 5px;
  content:"";
}
/* Move graph button */
#subRegionButton {
  left: 123px;
  padding: 1px 1px;
}
#subRegionButton.active {
  filter: invert(100%);
}
/* Toggle graph type button */
#gridTypeButton {
  left: 148px;
  padding: 1px 1px;
}
#moveOriginButton {
  left: 173px;
  padding: 1px 1px;
}


/* play-pause button */
#playButton {
  position: absolute;
  right: 283px;
  top: 2px;
  border: none;
  border-radius: 2px;
  height: 22px;
  width: 22px;
}
#playButton:after {
  content: "";
  position: absolute;
  top: 3px;
  left: 5px;
  border-top: 8px solid transparent;
  border-left: 13px solid #282828;
  border-bottom: 8px solid transparent;
}
#playButton.active:after {
  border-width: 0px;
  content: "";
  width: 4px;
  height: 14px;
  background: transparent;
  position: absolute;
  top: 4px;
  left: 5px;
  border-left: 4px solid #282828;
  border-right: 4px solid #282828;
}
/* Precent value indicator */
#percentSpeed {
  position: absolute;
  right:19px;
  background: #e3e3e3;
  top: 2px;
  border: none;
  border-radius: 2px;
  width: 46px;
  height: 20px;
  text-align: center;
  font-size: 15px;
}
/* SLIDER */
/* Remove old formating */
#speedSlider {
  z-index: 10;
  position: absolute;
  right:66px;
  top: 1px;
  -webkit-appearance: none;
  background: transparent;
  width: 216px;
  margin: 0px;
  cursor: pointer;
}
#speedSlider:focus {
  outline: none;
}
/* Add new formating */
#speedSlider::-webkit-slider-runnable-track {
  height: 14px;
  background: #e3e3e3;
  border: none;
  margin-top: 5px;
}
#speedSlider::-webkit-slider-thumb {
  border: 1px solid black;
  height: 24px;
  width: 16px;
  border-radius: 0px;
  background: #e3e3e3;
  -webkit-appearance: none;
  margin-top: -5px;
}
#speedSlider::-webkit-slider-thumb:hover {
  background: #C7C7C7;
}
#speedSlider::-moz-range-track {
  height: 14px;
  background: #e3e3e3;
  border: none;
}
#speedSlider::-moz-range-thumb {
  border: 1px solid black;
  height: 22px;
  width: 16px;
  border-radius: 0px;
  background: #e3e3e3;
}
#speedSlider::-moz-range-thumb:hover {
  background: #C7C7C7;
}
#speedSlider::-ms-track {
  height: 14px;
  background: #e3e3e3;
  border: none;
}
#speedSlider::-ms-thumb {
  border: 1px solid black;
  height: 22px;
  width: 16px;
  border-radius: 0px;
  background: #e3e3e3;
  margin-top: 0px;
}
#speedSlider::-ms-thumb:hover {
  background: #C7C7C7;
}
#speedSlider::-ms-tooltip {
  display: none;
}

/* Main content wrapper */
#canvasContainer {
  position: relative;
  width: auto;
  height: auto;
}

/* Canvas Elements */
#background {
  position: absolute;
  z-index: 1;
}
#paint {
  position: absolute;
  z-index: 2;
}
#foreground {
  position: absolute;
  z-index: 3;
  cursor: crosshair;
}
#buffer {
  position: absolute;
  z-index: 0;
}



/* Menu Items */
.clearReset {
  /*padding: 6px 0 5px 0;*/
  display: flex;
  flex-direction: row;
  margin: 0px -3px 5px -3px;
}
.clearReset div {
  flex: auto;
}

button.CR {
  width: 1px;
  text-align: center;
  flex-grow: 1;
  margin: 0px 3px 0px 3px;
}

/* Accordion Menu */
button.accordion {
  width: 100%;
  text-align: left;
  transition: 0.4s;
  margin: -1px 0px 0px 0px;
}
button.accordion.active {
  background-color: #C7C7C7;
}
button.accordion:after {
  content: '\002B';
  color: #777;
  font-weight: bold;
  float: right;
  margin-left: 5px;
}
button.accordion.active:after {
  content: "\2212";
}

#energyBar {
  position: absolute;
  top: 5px;
  left: 5px;
  width: auto;
  height: auto;
  z-index: 4;
  border: 1px solid black;
}




#recordFunctions {
  display: none;
}

.nestedBtn{
  font-size: 12px;
  margin-bottom: 10px;
}





/* Menu display settings for hiding menu */
#energyBar {
  display: none;
}
#energyBar.active {
  display: block;
}


#propChangeAlert {
  font-size: 10px;
  display: none;
  color: red;   
}



/* Menu display settings for hiding menu */
#menu {
  display: block;

  position: absolute;
  top: 7px;
  right: 18px;
  line-height: 2;
  width: 340px;
  z-index: 5;
}
#menu.active {
  display: none;
}

div.panel {
  font-size: 13px;
  padding: 0 18px;
  background-color: white;
  max-height: 0;
  overflow: hidden;
  transition: 0.6s ease-in-out;
  opacity: 0;

}
div.panel.show {
  opacity: 1;
  max-height: 500px;
}

/* Input Style */
input[type="number"] {
  width: 50px;
  margin-right: 15px;
  text-align: right;
}
input[type=text] {
  /*width: 100px;*/
  background: rgba(0,0,0,0);
  border: none;
  margin-right: 15px;
  font-size: 13px;
}



.noSelect {
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
       -moz-user-select: none; /* Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently supported by Chrome and Opera */
}

.pop-outer {
  background-color: rgba(0, 0, 0, 0.5);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.pop-inner {
  background-color: #fff;
  width: 500px;
  height: 300px;
  padding: 25px;
  margin: 15% auto;
}