* {
  box-sizing: border-box;
  background-color: #282c35;
  color: aliceblue;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
}

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

.editor pre,
.editor .input {
  position: absolute;
  inset: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  font: 16px/1.5 monospace;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  padding-left: 20px;
}

.editor pre {
  pointer-events: none;
  overflow: auto;
}

.editor pre code {
  display: block;
  min-height: 100%;
}

.editor .input {
  border: none;
  outline: none;
  resize: none;
  background: transparent;
  color: transparent;
  caret-color: #000;
  overflow: auto;
}

h1 {
  background-color: #1d1f25;
}

.toolbar {
  position: absolute;
  top: 10px;
  right: 3vw;
  z-index: 1;
  background-color: #1d1f25;
  padding: 5px;
  border-radius: 4px;
}

.buttons {
  display: flex;
  justify-content: space-between;
  padding: 2px;
  gap: 10px;
}

button {
  position: relative;
  padding: 5px 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

button::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 8px;
  background-color: #1d1f25;
  color: aliceblue;
  border-radius: 4px;
  white-space: nowrap;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out;
}

button:hover::after {
  opacity: 1;
}

i {
  font-size: 24px;
}

i:hover {
  font-size: 24px;
  color: rgb(189, 191, 192);
}

.info {
  opacity: 0;
}

.info.show {
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}
