/* Global reset */
* {
  box-sizing: border-box;
}
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
/* Grid container spanning the viewport */
#container {
  display:flex;
  flex-direction: row;
  position:fixed;
  top:0rem;
  left:0rem;
  width:100%;
  height:100%;
}
#control-panel {
  width:10rem;
  padding:1rem;
  background-color: #ccc;
  border:4px solid purple;
  border-right:none;
}
#panel-container {
  display: grid;
  flex: 1;
  /* Initially two columns: left panel 40%, right panel 60% */
  grid-template-columns: 50% 50%;
  /* width: 100vw;
  height: 100vh; */
  overflow: hidden;
}
/* Panel styling */
.panel {
  overflow: auto;
  transition: all 0.3s ease;
}
#leftPanel {
  background: #f0f0f0;
  padding:1rem;
  border:4px solid red;
}
#rightPanel {
  background: #fff;
  padding:1rem;
  border:4px solid green;
}
/* Controls for demo */
.controls {
  display:flex;
  flex-direction: column;
  position: fixed;
  bottom: 86px;
  left: 10px;
  width:calc(10rem - 24px);
  z-index: 10;
  border:2px solid black;
}
.controls button {
  flex: 1;
}

.label {
  flex: 1;
  background-color: #333;
  color: #fafafe;
  font-size: 0.9rem;
  text-align: center;
}

.hidden {
  display: none;
}