:root {

  --grey: rbg(85, 92, 105);
  --purple: rgb(182, 33, 112);
}

* {

  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {

  font-family: sans-serif;
}

#main {

  display: grid;
  grid-template-columns: auto;
  grid-template-rows: auto auto;

  border: solid 5px var(--purple);
}

#status-pane {

  grid-column: 1 / 2;
  grid-row: 1 / 2;
  
  border-bottom: solid 3px var(--purple);
}

#connect-status {

  width: 90%;
  color: var(--grey);
  text-align: center;
  margin: 4px auto 4px auto;
}  

#connect-button {

  width: 65%;
  color: var(--grey);
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  text-align: center;
  background-color: gainsboro;
  border: solid 1px var(--grey);
  border-radius: 5px;
  padding: 4px 0 4px 0;
  margin: 4px auto 8px auto;
  cursor: pointer;
}           

/* 
Keep video-pane and canvas-pane in the same grid cell
The canvas elements needs to overlay the video element
*/
#video-pane {

  grid-column: 1 / 2;
  grid-row: 2 / 3;

  background-color: gainsboro;
}

/* 
Keep video-pane and canvas-pane in the same grid cell
The canvas elements needs to overlay the video element
*/
#canvas-pane {

  grid-column: 1 / 2;
  grid-row: 2 / 3;

  background-color: gainsboro;  
}

#video, #canvas {

  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  margin: 5px auto 5px auto;
}

#output-pane {

  grid-column: 1 / 2;
  grid-row: 3 / 4; 

  background-color: gainsboro;
  border-top: solid 3px var(--purple);
  padding-bottom: 10px;

  overflow-x: hidden;
  overflow-y: scroll;
}

#output-type {

  font-size: 13px;
  text-align: center;
  text-transform: uppercase;
  padding: 4px 0 4px 0;
}

#output-type .selected {
  
  color: blue;
  font-weight: bold;
}

#output-type .divider {

  color: var(--purple);
  font-weight: bold;
}

#output-type .unselected {

  color: slategrey;
  text-decoration: none;
}

.table-row {

  width: 90%;

  font-size: 12px;
  border-bottom: solid 2px var(--purple);
  padding: 5px 0 5px 0;
  margin: 0 auto 0 auto;
}

.table-header {

  width: 95%;
  color: var(--purple);
  font-weight: bold;
  text-transform: uppercase;
  vertical-align: middle;
  display: inline-block;
}

.table-label {

  width: 40%;
  color: slategrey;
  font-weight: bold;
  text-transform: uppercase;
  vertical-align: middle;
  display: inline-block;
}

.table-value {

  width: 58%;
  color: blue;
  font-weight: bold;
  padding: 0 0 0 12px;
  vertical-align: middle;
  display: inline-block;
}

.table-value .left-bar {
  
  width: 36%;
  color: white;
  font-size: 10px;
  text-align: center;
  text-transform: uppercase;
  background-color: skyblue; /* #FFCCE5;*/
  background-image: linear-gradient(lightgrey, lightgrey);
  background-repeat: no-repeat;
  background-size: 50% 100%;
  border: solid 1px slategray;
  padding: 2px 0 2px 0;
  vertical-align: middle;
  display: inline-block;
}

.table-value .right-bar {

  width: 36%;
  color: white;
  font-size: 10px;
  text-align: center;
  text-transform: uppercase;
  background-color: lightgrey;
  background-image: linear-gradient(skyblue, skyblue); /*#FFCCE5, 	#FFCCE5);*/
  background-repeat: no-repeat;
  background-size: 25% 100%;
  border: solid 1px slategray;
  padding: 2px 0 2px 0;
  vertical-align: middle;
  display: inline-block;

}

.table-value .value {

  width: 28%;
  text-align: center;
  vertical-align: middle;
  display: inline-block;
}