:root {
  --sage: #d8e2dc;
  --sage-dark: #b7c9c2;
  --olive: #a3b18a;
  --blue-muted: #b0bec5;
  --text: #282624;
}

::-webkit-scrollbar {width: 10px;}
::-webkit-scrollbar-track {background: #eee;}
::-webkit-scrollbar-thumb {background: var(--olive);border-radius: 5px;}
::-webkit-scrollbar-thumb:hover{background: darkred;}

body {
  margin: 0;
  font-family: "Google Sans", sans-serif;
  background: var(--blue-muted);
  color: var(--text);
  transition: 0.3s;
  padding: 10px 0;
}

body.dark {
  background: #121212;
  color: #eee;
}

label, select{
  font-size: 1.2em;
}

section{
  font-family: "Google Sans", sans-serif;
}

bold{
	font-weight:bold;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 10px;
}

.container p {
    margin: 30px 0;
    text-align: justify;
}

.toggle-btn {
    font-size: 1em!important;
    margin: 0!important;
}

.toolbar, .quickbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center; 
    gap: 10px; 
    padding: 10px; 
}

button{
  margin:10px;
}

.btn {
  background: #222;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.btn.active {
  background: #2563eb;
}

.quickbar .btn {
  background: #16a34a;
}

.panels {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.panel {
  flex: 1;
  min-width: 300px;
}

.prev{
  display: flex;
  width:100%;
  gap: 10px;
  flex-wrap: wrap;
}

textarea {
  width: 100%;
  height: 200px;
  padding: 10px;
    font-family: "Google Sans", sans-serif;
  border-radius: 8px;
  border: 1px solid #444;
  background: #FFF;
  color: #000;
}

iframe {
  width: 100%;
  height: 400px;
  background: white;
  border:none;
}

.preview {
  border: 2px dashed #555;
  min-height: 400px;
  background: white;
  color: black;
  overflow: auto;
  height: 400px;
}

.block {
  padding: 8px;
  margin: 5px;
  background: #eee;
  cursor: grab;
  border-radius: 6px;
  font-size: 1.2em;
  border: 1px solid black;
}

.block:active {
  opacity: 0.6;
  background:grey;
}

.element {
  display: block;
  position: relative;
  margin: 10px;
  padding: 5px;
  border-radius: 4px;
  border: 1px solid grey;
  text-align:center;
}

.element.selected {
  background-color: #ebebeb;
  border:1px solid black;
  font-size:initial;
}

#htmlPanel{
  display: block;
  width:100%;
}

.remove-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  background: red;
  color: white;
  border: none;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 12px;
  cursor: pointer;
}

.hidden { display:none; }