body {
  background-color: 'white';
  max-height: 100vh;
  overflow: hidden;
}



/* Define the grid of widgets. */

#main-grid {
  height: calc(100vh - 64px);
  overflow: hidden;
}

#left-panel {
  height: 100%;
  resize: horizontal;
}

#right-panel {
  overflow: auto;
  height: 100%;
  border-left: 1px solid rgb(33, 150, 243);
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
  background-color: #fff;
}

::-webkit-scrollbar-thumb {
  background-color: rgb(33, 150, 243);
  border-radius: 5px 0 0 5px;
}

textarea {
  font-family: monospace;
  width: 100%;
  min-height: 100px;
  height: 200px;
  border: 0;
  color: rgba(0, 0, 0, 0.87);
  resize: vertical;
}

/* Controls */
div#controls {
  margin: 0.5em 0;
}

div#controls>input {
  padding: 0.5em;
  margin: 0 0.5em;
}

div#pipeline td {
  padding: 0.1em 12px;
}

td.instructionName {
  width: 11em;
}

/* CSS classes for pipeline stages */
.stageIf {
  background-color: rgba(255, 255, 0, 0.5);
}

.stageId {
  background-color: rgba(0, 0, 255, 0.5);
}

.stageEx {
  background-color: rgba(255, 0, 0, 0.5);
}

.stageMem {
  background-color: rgba(0, 255, 0, 0.5);
}

.stageWb {
  background-color: rgba(255, 0, 255, 0.5);
}

.stageFPAdder {
  background-color: rgba(0, 128, 0, 0.5);
}

.stageFPMultiplier {
  background-color: rgba(0, 128, 128, 0.5);
}

.stageFPDivider {
  background-color: rgba(128, 128, 0, 0.5);
}

#errorCount {
  color: #cc6054;
}

#warningCount {
  color: #e6ba79;
}

#nojs {
  width: 22em;
  position: absolute;
  left: 50%;
  margin-left: -11em;
  color: red;
  background-color: white;
  border: 1px solid red;
  padding: 4px;
  font-family: sans-serif;
}

footer {
  color: rgb(167, 167, 167);
  text-align: right;
}

#memory-view {
  box-sizing: border-box;
  margin: 5px 0;
}

div.error-list-item {
  min-width: unset;
  margin-right: 10px;
}

div.error-accordion {
  position: sticky;
  top: 0;
  z-index: 10000;
  border-bottom: 1px solid rgb(33, 150, 243);
}

/* Dark Mode Specific Styles */
@media screen and (prefers-color-scheme: dark) {
  #right-panel {
    border-left-color: rgba(255, 255, 255, 0.188);
  }

  div.error-accordion{
    border-bottom-color: rgba(255, 255, 255, 0.188);
  }
  
  textarea {
    background: transparent;
    color: white;
  }

  ::-webkit-scrollbar {
    background-color: #1e1e1e;
  }

  ::-webkit-scrollbar-thumb {
    background-color: rgb(97, 97, 97);
  }
}