@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@300&display=swap');

* {
  padding: 0;
  margin: 0;
  font-family: 'IBM Plex Mono', monospace;
}

html, body {
  width: 100%;
  height: 100%;
  background: #232b32;
}

.container {
  width: 100%;
  height: 100%;
}

.content {
  width: 100%;
  height: 100%;
  position: relative;
}


#editor, #visual, #preview {
  width: calc(100% - 42px);
  height: calc(100% - 110px);
  padding: 20px;
  resize: none;
  font-size: 16px;
  overflow-y: scroll;
  font-family: 'IBM Plex Mono', monospace;
  position: absolute;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}
#editor {
  color: transparent;
  background: transparent;
  z-index: 1;
  caret-color: white;
}

#visual {
  z-index: 0;
  color: white;
}

#preview {
  color: white;
}

.menubar {
  position: absolute;
  z-index: 2;
  background: white;
  min-width: 60%;
  min-height: 40px;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between;
  padding: 3px 20px;
  align-items: center;
  width: 60%;
  border-radius: 10px;
  background: #2F3A44;
  box-shadow: 4px 6px 6px #000000;
  color: white;
}

.menubar .actions {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 3px;
}

.menubar .actions > *:active, .menubar .dropdown .dropdown-button:active {
  background: #B0B0B05C;
}
.active {
  color: limegreen;
}


.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: -900%; /* Position the dropdown above the button */
  background-color: #002620;
  color: white;
  padding: 10px;
  min-width: 160px;
  overflow: auto;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 3;
}

.dropdown-content.show {
  display: block;
}

.dropdown-content > p {
  padding: 10px 20px;
}
.dropdown-content.show > p:active {
  background: #C1C1C16E;
}
