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

::-webkit-scrollbar {
  width: 10px; /* Largura da scrollbar vertical */
  height: 10px; /* Altura da scrollbar horizontal */
}

::-webkit-scrollbar-thumb {
  background-color: #222; /* Cor do "polegar" (a parte que você arrasta) */
  border-radius: 10px; /* Borda arredondada */
}

::-webkit-scrollbar-track {
  background-color: #0f0f11; /* Cor da trilha da scrollbar */
}

/* Para navegadores Firefox */
* {
  scrollbar-width: thin; /* Define a espessura da scrollbar */
  scrollbar-color: #222 #f1f1f1; /* Cor do "polegar" e da trilha */
}

body {
  background: #191919;
  color: #ddd;
  display: flex;
  width: 100%;
  font-family: sans-serif;
  min-height: 100vh;
}

.coding {
  min-height: 100vh;
  width: calc(100% / 2);
  min-width: 200px;
  flex-shrink:0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
}

.coding > div {
  height: calc((100vh / 3));
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background-color: #08080d;
  width: 100%;
  border-right: 3px solid #08080d;
  border-top: 1px solid #222;
}

.coding > div h2 {
  font-size: 16px;
  font-weight: 600;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaaadd;
  background: #0f0f11;
  width: 90px;
  align-items: center;
  margin-left: 12px;
  border: 1px solid #333;
  border-bottom-color: #08080d;
}

.wrapper {
  position: relative;
  width: 100%;
  height: calc(100% - 32px);
}

.editing, .editing:focus, .editing:hover{
  outline: none;
  border: none;
}

.editing,
.coding pre.highlighting {
  border: 0;
  width: 100%;
  white-space: pre;
  max-width: 100%;
  height: 100%;
  word-break: break-all;
  padding: 10px;
  border-radius: 0px;
  scrollbar-color: #444 #08080d;
}

.editing,
.coding pre.highlighting  ,
.coding pre.highlighting   * {
  /* Also add text styles to highlighting tokens */
  font-size: 13px;
  font-family: monospace;
  line-height: 18px;
  tab-size: 2;
}

.editing,
.coding pre.highlighting  {
  position: absolute;
  top: 0px;
  left: 0;
  overflow: auto;
}

.editing {
  z-index: 1;
  resize: none;
}

.coding pre.highlighting  {
  z-index: 0;
  background: #0f0f11;
}

.editing {
  color: transparent;
  background: transparent;
  caret-color: white; /* Or choose your favorite color */
}

pre {
  margin: 0px !important;
}

pre,
code {
  color: #fff;
}

/* PREVIEW */

.preview{
    width: calc(100% / 2);
}

.code-preview {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  border: none;
  min-height: 100vh;
}

.code-preview iframe {
  height: 100%;
  width: 100%;
  flex-grow: 1;
  margin: 0 auto;

  border: 0;
  background: #28282a;
  color: #ddd;
}

.code-preview::before {
  width: 80%;
  height: 50%;
  margin: 5px auto;
  box-sizing: border-box;

  color: #828282;
  background: #010101;
  border-radius: 5px;
  border-width: 6px 20px;
  text-align: center;
  font-size: 8pt;
  padding: 5px;
}