body {
  font-family: system-ui, sans-serif;
  display: flex;
  flex-direction: column;
  margin: 0;
  height: 100vh;
}

#editorsContainer {
  display: flex;
  height: 100ch;
  border-bottom: solid rgb(196, 196, 196) 1px;
}

#editorsContainer > div {
  height: 100%;
}

#editorsContainer > div:nth-child(2) {
  border-left: solid rgb(196, 196, 196) 1px;
  padding-left: 7px;
  margin-left: 2px;
}

#editorsContainer > div:nth-child(2):hover {
  cursor: col-resize;
}

#editorsContainer > div:nth-child(2).active {
  background-color: rgb(204 228 246);
}

#editorsContainer > div:nth-child(2n - 1) {
  width: calc(50% - 5px);
  display: flex;
  flex-direction: column;
}

#editorsContainer > div:nth-child(2n - 1) > :first-child {
  height: 1.5rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  padding: 0;
  padding-bottom: 1rem;
  border-bottom: solid rgb(196, 196, 196) 1px;
}

#editorsContainer > div:nth-child(2n - 1) > :last-child {
  height: calc(100% - 4.5rem);
}

#editorsContainer > div:nth-child(2n - 1) > ul {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 1.5rem;
}

#editorsContainer > div:nth-child(1) > ul {
  margin-right: -2px;
}

#editorsContainer > div:nth-child(3) > ul {
  margin-left: -7px;
}

#editorsContainer > div:nth-child(2n - 1) > ul h4 {
  margin-left: 1rem;
}

#editorsContainer > div:nth-child(1) > ul > li:last-child {
  margin: 0 1rem 0 auto;
}

label {
  margin-right: .5rem;
}

.output-container {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.output-container > h5 {
  margin: 1.5rem 1rem .75rem;
}

.output-container > textarea {
  width: 100%;
  min-height: 20ch;
  resize: none;
  box-sizing: border-box;
  flex-grow: 1;
  border: none;
  border-top: solid rgb(196, 196, 196) 1px;
  padding: 1rem;
}

button {
  padding: .4rem 1rem;
  border-radius: 0.5rem;
  border: none;
  color: white;
  background-color: rgb(26 86 219);
}

button:hover {
  cursor: pointer;
  background-color: rgb(30 66 159);
}

select {
  padding: .4rem;
  border-radius: 0.5rem;
  border: solid rgb(196, 196, 196) 1px;
}

@media (max-width: 768px) {
  #editorsContainer {
    flex-direction: column;
    height: 200ch;
  }

  #editorsContainer > div:nth-child(2) {
    display: none;
  }
  
  #editorsContainer > div:nth-child(2n - 1) {
    width: 100%;
    height: 50%;
  }

  .output-container > textarea {
    min-height: 10ch;
  }

  label {
    display: none;
  }
}
