* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
  font-size: 10px;
}

.editor-menu {
  width: 100%;
  height: 6rem;
  background-color: #eee;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 5px 0 5px 10px;
}

.btn {
  border: none;
  outline: none;
  cursor: pointer;
  background-color: pink;
  padding: 8px 5px;
  border-radius: 3px;
  font-size: 1.6rem;
  margin-right: 8px;
  color: #000000;
  min-width: 5rem;
  transition: all ease-in 0.2s;
}

.btn:hover {
  background-color: deeppink;
  color: #fff;
}

.live {
  font-size: 1.6rem;
  font-weight: bold;
  border: 2px solid orangered;
  display: flex;
  align-items: center;
  border-radius: 3px;
  cursor: pointer;
  padding: 6px 5px;
}

.live > * {
  cursor: pointer;
}

.container {
  position: absolute;
  bottom: 0;
  top: 7rem;
  width: 100%;
  display: flex;
}

.left {
  height: 100%;
  width: 50%;
}

.bar {
  width: 3px;
  height: 100%;
  background-color: #ddd;
  cursor: w-resize;
}

.right {
  flex: 1;
}

.editor {
  width: 100%;
  height: 100%;
  font-size: 1.8rem;
  outline: none;
  padding: 1rem 0 0 1rem;
  border: 2px solid #ccc;
  white-space: pre-line;
}

.display {
  border: 2px solid #ccc;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  white-space: pre;
  right: 0;
  padding: 4px;
  right: 0;
  padding: 4px;
}
