body, html {
  height: 100vh;
  margin: 0px;
  padding: 0px;
}

#mainDiv {
  width: 100vw;
  height: 100vh;
  display: block;
  background-color: gray;
}

#mainCanvas {
  margin: 2px;
  display: inline-block;
  background-color: white;
}

select {
  background-color: rgba(0, 0, 100, 0.8) !important;
  color: #00ccaa !important;
  border: 0px;
  font-family: monospace;
}

input.btn {
  background: rgba(0, 0, 100, 0.8) !important;
  color: #00ccaa !important;
  border: 1px solid #00ccaa;
  font-family: monospace;
  margin: 2px;
}

input.btn:hover {
  background: rgba(50, 50, 150, 0.8) !important;
}

input.btn:active {
  background: rgba(100, 100, 200, 0.8) !important;
}



#code-editor-toolbar {
  position: absolute;
  top: 0;
  left: 50vw;
  width: 50vw;
  height: 24px;
  background-color: rgba(0, 0, 100, 1.0) !important;
  color: #00ccaa !important;
  font-family: monospace;
  padding: 3px;
  overflow: hidden;
}

#code-editor-container {
  position: absolute;
  top: 30px;
  left: 50vw;
  width: 50vw;
  height: calc(100vh - 30px);
  background: rgba(0, 0, 0, 0.85); /* Semi-transparent background */
  z-index: 9999;
}


/* Make the text area fill the entire screen */
.CodeMirror {
  width: 100%;
  height: calc(100vh - 30px); /* Full screen height */
  background-color: transparent !important; /* Ensure the editor itself is transparent */
  pointer-events: auto; /* Enable interactions with the editor */
  font-size: 16px;
}

.CodeMirror-gutters {
  background-color: rgba(0, 0, 100, 0.8) !important; /* Make the gutter transparent */
  border-right: none !important; /* Optional: remove border on right side of gutter */
}

/* Change the comment color for the current theme */
.cm-s-monokai .cm-comment {
  color: #00ccaa !important; /* Tomato color for comments */
}