.configs-text {
  display: flex;
  align-content: center;
  flex-wrap: wrap;
  background-color: var(--color-006);
  padding: 20px;
  border-radius: var(--border-radius-padrao);
  margin: 10px 0;
  box-shadow: var(--shawdow-standart) inset;
  border: 1px solid var(--color-007);
  gap: 10px;
  justify-content: space-between;
}

.format-text-geral {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 100%;
}

.format-size {
  border-radius: var(--border-radius-total);
  border: 1px solid var(--color-007);
  display: flex;
  padding: 5px 20px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.format-size button,
.format-size input {
  background-color: transparent;
  border: none;
  text-align: center;
  font-size: 2em;
  font-weight: bold;
}

.format-size button {
  cursor: pointer;
  position: relative;
  transition: 0.2s;
  height: fit-content;
  width: 40px;
}

.format-size input {
  width: 100px;
  padding: 0 10px;
}

.format-size::before {
  content: "";
  display: block;
  background-color: var(--color-007);
  width: 0;
  height: 2px;
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translate(-50%);
  transition: 0.2s;
}

.format-size:has(input:focus)::before {
  width: 100px;
  transition: 0.2s;
}

.format-size button,
.format-size input:focus {
  outline: none;
}

.font-manipulator:hover,
.font-manipulator:focus {
  transform: scale(1.1);
  transition: 0.2s;
}

.font-manipulator::before,
.configs__other-button::before,
.format-text::before {
  content: "";
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  background-color: var(--color-008);
  border-radius: var(--border-radius-total);
  transition: 0.2s;
}

.font-manipulator svg,
.configs__other-button svg,
.format-text span {
  position: relative;
  z-index: 333;
}

body[data-theme="rantool-original"] main path {
  fill: var(--color-007);
}

.font-manipulator:active::before,
.configs__other-button:active:before,
.format-text:active::before {
  width: 100%;
  height: 100%;
  transition: 0.2s;
}

.format-text-place {
  display: flex;
  gap: 10px;
  align-items: center;
}

.format-text {
  background-color: transparent;
  padding: 10px;
  border: 1px solid var(--color-007);
  border-radius: var(--border-radius-total);
  font-size: 1.2em;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: 0.2s;
  cursor: pointer;
}

.input-format-text:checked + .format-text {
  background-color: var(--color-001);
  color: var(--color-002);
}

.format-text:hover,
.format-text:focus {
  user-select: none;
  transform: scale(1.2);
  transition: 0.2s;
}

#negrito + label {
  font-weight: bold;
}
#italico + label {
  font-style: italic;
}

#delete + label {
  text-decoration: line-through;
}

.--big {
  width: 200px !important;
}

.title-level {
  min-width: 200px;
  flex-grow: 1;
}

.select:has(button) li {
  min-width: fit-content;
  width: 100%;
  padding: 0;
}

.select button {
  cursor: pointer;
  width: 100%;
  background-color: transparent;
  border: none;
  font-weight: bold;
  font-size: 0.9em;
  padding: 10px 20px;
  font-family: var(--main-font);
}

.select button:focus,
.select button:hover {
  outline: none;
  background-color: var(--color-001);
  color: var(--color-005);
}

.select:has(button) li:hover button {
  color: var(--color-005);
}

.configs__other-button:hover,
.configs__other-button:focus {
  transform: scale(1.1);
  transition: 0.2s;
}

.configs__other-button {
  box-sizing: content-box;
  background-color: transparent;
  border: none;
  padding: 10px;
  border-radius: var(--border-radius-total);
  border: 1px solid var(--color-007);
  width: 24px;
  height: 24px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: 0.2s;
  cursor: pointer;
}

.configs__button {
  display: flex;
  gap: 10px;
}

.option-to-do-file {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 10px;
}

.text-result {
  --font-size: 24px;
  width: 100%;
  height: 500px;
  background-color: var(--color-006);
  border-radius: var(--border-radius-padrao);
  box-shadow: var(--shawdow-standart) inset;
  border: 1px solid var(--color-007);
  padding: 20px;
  font-size: var(--font-size);
  overflow: auto;
  font-family: var(--sub-font);
  position: static;
  transition: 0.2s;
}

.text-result * {
  color: var(--color-005) !important;
}

body[data-theme="rantool-original"] .text-result *{
  color: var(--color-007) !important;
}

.text-result.resultado {
  height: 300px;
}

.text-result *[tabindex="0"] {
  outline: none;
}

.text-show {
  max-width: 100%;
}

.text-result *,
.text-show * {
  font-family: var(--sub-font);
  color: inherit;
}

.text-result > h1,
.text-result > h1,
.text-result > h1,
.text-result > h3,
.text-result > h4,
.text-result > h5,
.text-show > h1,
.text-show > h1,
.text-show > h1,
.text-show > h3,
.text-show > h4,
.text-show > h5 {
  font-weight: bold;
  text-transform: none;
}

.text-result > h1,
.text-show > h1 {
  font-size: 1.9em;
}

.text-result ul,
.text-result ol,
.text-show ul,
.text-show ol {
  list-style-position: inside;
  list-style-type: disc;
}

.placeholder {
  color: var(--color-007);
}

.cursor {
  position: absolute;
  display: block;
  width: 2px;
  height: var(--font-size);
  background-color: var(--color-007);
  animation: pisca 0.5s infinite alternate;
  top: 0;
  left: 0;
}

.resultado ol {
  counter-reset: counter-ol;
}

.text-result ol > li,
.text-result ol > p {
  counter-increment: counter-ol;
  list-style-type: none;
}

.text-result ol > li::before {
  content: counter(counter-ol) ".";
  font-weight: bold;
  margin-right: 10px;
}

.text-result {
  resize: none;
}

.text-result:focus {
  outline: none !important;
}

@keyframes pisca {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@media screen and (max-width: 900px) {
  .--big {
    width: 100% !important;
  }

  .select-place:has(button) {
    width: auto;
    flex-grow: 1;
    min-width: 0;
  }

  .option-to-do-file {
    width: 100%;
  }
}

@media screen and (max-width: 300px) {
  .configs-text {
    padding: 5px;
  }
}

code {
  background-color: var(--color-008);
  border-radius: var(--border-radius-padrao);
}
