/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */
 .tools-container {
	font-family: monospace;
	padding: 0;
	margin: 0;
	height: 100vh;
	-webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
}
.tools-container input[type="color"] {
	appearance: none;
	border: none;
	width: 32px;
	height: 32px;
	cursor: pointer;
}
.tools-container input[type="color"]::-webkit-color-swatch-wrapper {
	padding: 0;
}
.tools-container input[type="color"]::-webkit-color-swatch {
	border: none;
}
.tools-container input::-webkit-outer-spin-button, .tools-container input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
.tools-container input[type="number"] {
	appearance: textfield;
}
.tools-container .wrapper {
	display: flex;
	flex-direction: row-reverse;
	height: 100%;
}
.tools-container .row {
	display: block;
}
.tools-container .row.flex {
	display: flex;
}
.tools-container .row.grid {
	display: grid;
}
.tools-container aside {
	flex-basis: 50%;
	max-width: 400px;
	background-color: #0d1122;
	overflow: auto;
}
.tools-container .preview {
	flex: 1;
	max-width: none;
	background-color: #fff;
	position: relative;
	border: 1px solid #0d1122;
}
.tools-container .preview iframe {
	width: 100%;
	height: 100%;
	border: none;
	display: block;
}
.tools-container .preview .btns {
    position: absolute;
    top: 8px;
    left: 8px;
}
.tools-container .preview .btns span.copy-css {
    cursor: pointer;
    border: 1px solid #fff;
    color: #fff;
    background: #000;
    font-size: 14px;
    padding: 5px 14px;
    font-size: 12px;
    display: block;
    white-space: nowrap;
}
.tools-container section {
	margin: 0;
}
.tools-container section ul {
	list-style-type: none;
	padding: 0;
	margin: 0;
	min-height: 1px;
}
.tools-container section li {
	background-color: #0d1122;
	border-bottom: 1px solid #2c2c2e;
	display: flex;
	justify-content: space-between;
	flex-direction: column;
	position: relative;
}
.tools-container section li:first-child {
	border-top: 1px solid #2c2c2e;
}
.tools-container section li.dragging {
	background-color: #61ce3c;
	color: #fff;
}
.tools-container section li .handler {
	background-image: radial-gradient(#b0b0b0 1px, transparent 0);
	background-size: 4px 4px;
	background-position: -19px -19px;
	height: 14px;
	width: 10px;
	display: block;
	margin-left: 5px;
	position: absolute;
	right: 10px;
	top: 14px;
	cursor: grab;
	z-index: 7;
}
.tools-container section .item-name {
	background-color: #0d1122;
	color: #787878;
	cursor: pointer;
	display: block;
	outline: none;
	padding: 10px 18px;
	text-transform: uppercase;
	position: sticky;
	top: 0;
	z-index: 5;
	font-size: 14px;
}
.tools-container section span.item-name:empty:after {
	content: "#Untitled";
}
.tools-container section li.dragging .item-name {
	color: #fff;
}
.tools-container section.rules .item-content {
	display: grid;
	grid-template-rows: 0fr;
	transition: 0.4s;
}
.tools-container section li.active .item-content {
	grid-template-rows: 1fr;
}
.tools-container section .item-content > div {
	background-color: #2c2c2e;
	color: #fff;
	overflow: hidden;
	padding: 0;
	transition: 0.4s;
	display: flex;
	flex-direction: column;
	gap: 0;
}
.tools-container section li.active .item-content > div {
	padding: 0;
	border-top: 1px solid #3c3c3c;
}
.tools-container section.rules .item-content > div div:has(> input[type="color"]) {
	background: repeating-conic-gradient(#808080 0% 25%, transparent 0% 50%) 50% / 17px 17px;
	border: 1px solid #fff;
}
.tools-container section .item-content > div input, .tools-container section .item-content > div select {
	text-align: right;
    outline: none;
    padding: 5px !important;
    box-sizing: border-box;
    font-size: 12px;
    background: transparent;
    border: none;
    color: #fff;
}
.tools-container section .item-content > div input[type="number"] {
	position: relative;
	z-index: 2;
}
.tools-container section .item-content > div input[type="color"] {
	width: 50%;
	height: 22px;
	padding: 0 !important;
}
.tools-container section.extra .item-content > div input[type="color"] {
	width: 100%;
	border: 1px solid #fff;
}
.tools-container section .item-content > div input[type="range"] {
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
	cursor: pointer;
	width: 100%;
	padding: 0px 0;
	flex: 1;
}
/* Removes default focus */
.tools-container section .item-content > div input[type="range"]:focus {
	outline: none;
}
/******** Chrome, Safari, Opera and Edge Chromium styles ********/
/* slider track */
.tools-container section .item-content > div input[type="range"]::-webkit-slider-runnable-track {
	background-color: #cccccc;
	border-radius: 34px;
	height: 4px;
}
/* slider thumb */
.tools-container section .item-content > div input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	/* Override default look */
	appearance: none;
	margin-top: -6px;
	/* Centers thumb on the track */
	background-color: #ffffff;
	border-radius: 50%;
	height: 16px;
	width: 16px;
}
.tools-container section .item-content > div input[type="range"]:focus::-webkit-slider-thumb {
	background-color: #61ce3c;
}
/*********** Firefox styles ***********/
/* slider track */
.tools-container section .item-content > div input[type="range"]::-moz-range-track {
	background-color: #cccccc;
	border-radius: 34px;
	height: 4px;
}
/* slider thumb */
.tools-container section .item-content > div input[type="range"]::-moz-range-thumb {
	background-color: #ffffff;
	border: none;
	/*Removes extra border that FF applies*/
	border-radius: 50%;
	height: 26px;
	width: 26px;
}
.tools-container section .item-content > div input[type="range"]:focus::-moz-slider-thumb {
	background-color: #61ce3c;
}
.tools-container section .item-content > div .switch-field {
	display: flex;
	overflow: hidden;
	border-left: 1px solid #fff;
}
.tools-container section .item-content > div .switch-field input {
	position: absolute !important;
	clip: rect(0, 0, 0, 0);
	height: 1px;
	width: 1px;
	border: 0;
	overflow: hidden;
}
.tools-container section .item-content > div .switch-field label {
	background-color: #2c2c2e;
	color: #fff;
	font-size: 12px;
	line-height: 1;
	text-align: center;
	justify-content: center;
	padding: 4px 16px;
	margin-left: -1px;
	border: 1px solid #fff;
	border-top: 0;
	border-bottom: 0;
	box-shadow: none;
	transition: all 0.1s ease-in-out;
}
.tools-container section .item-content > div .switch-field label:hover {
	cursor: pointer;
}
.tools-container section .item-content > div .switch-field label:has(input:checked) {
	background-color: #fff;
	color: #2c2c2e;
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.1);
}
/* The switch - the box around the slider */
.tools-container section .item-content > div .switch {
	position: relative;
	display: inline-block;
	width: 26px !important;
	height: 4px;
	margin: 10px 0;
}
/* Hide default HTML checkbox */
.tools-container section .item-content > div .switch input {
	opacity: 0;
	width: 0;
	height: 0;
}
/* The slider */
.tools-container section .item-content > div .switch .slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	-webkit-transition: 0.4s;
	transition: 0.4s;
}
.tools-container section .item-content > div .switch .slider:before {
	position: absolute;
	content: "";
	height: 16px;
	width: 16px;
	left: 0px;
	bottom: -5.5px;
	background-color: white;
	-webkit-transition: 0.4s;
	transition: 0.4s;
}
.tools-container section .item-content > div .switch input:checked + .slider {
	background-color: #61ce3c;
}
.tools-container section .item-content > div .switch input:focus + .slider {
	box-shadow: 0 0 1px #2196f3;
}
.tools-container section .item-content > div .switch input:checked + .slider:before {
	background-color: #61ce3c;
	-webkit-transform: translateX(13px);
	-ms-transform: translateX(13px);
	transform: translateX(13px);
}
/* Rounded sliders */
.tools-container section .item-content > div .switch .slider.round {
	border-radius: 34px;
}
.tools-container section .item-content > div .switch .slider.round:before {
	border-radius: 50%;
}
.tools-container section .item-content > div .readonly {
	text-align: right;
	background-color: transparent;
	border: none;
	color: #fff;
	padding: 0 5px;
	appearance: none;
	position: relative;
	z-index: 2;
	max-width: 40px;
	font-size: 12px;
}
.tools-container section .item-content > div select.readonly {
	opacity: 0;
	position: absolute;
	z-index: 1;
	cursor: pointer;
	font-size: 12px;
}
.tools-container section .item-content .row {
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	padding: 12px 18px;
	border-bottom: 1px solid #44444d;
	line-height: 23px;
	text-transform: uppercase;
}
.tools-container section .item-content .row div.CodeMirror {
    display: block !important;
    text-transform: none;
    line-height: 1 !important;
	font-size: 14px;
	min-height: 70px;
}
.tools-container section .item-content .row label {
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	flex-direction: column;
	gap: 5px;
	width: 100%;
	font-size: 12px;
}
.tools-container section.extra .item-content .row label {
    /* align-items: flex-start; */
}
@media (max-width: 767px) {
	.tools-container section .item-content .row label {
		flex-direction: column;
		align-items: stretch;
	}
}
.tools-container section .item-content .row label div {
	flex: 1;
}
.tools-container section .item-content .row > label > div:first-child {
	flex-basis: 40%;
	max-width: 60px;
}
.tools-container section.rules .item-content .row label div:first-child {
	max-width: 70px;
}
.tools-container section .item-content .row > label > div:last-child {
	display: flex;
}
.tools-container section.extra .item-content .row > label > div:last-child {
    flex-direction: column;
}
.tools-container section .item-content .row label div:last-child > span {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0;
	width: 100%;
	max-width: 90px;
}
.tools-container section .item-content .row label div:last-child > span span.append, .tools-container section .item-content .row label div:last-child > span span.selected {
	border: 1px solid #e4e4e4;
	display: block;
	padding: 5px 5px;
	text-transform: none !important;
}
.tools-container section .item-content .row label div:last-child > span span.append {
	border-color: transparent;
}
.tools-container section .item-content .row.row-title {
	display: none;
}
.tools-container section .item-content .row.end span {
	cursor: pointer;
	border: 1px solid #fff;
	color: #fff;
	font-size: 14px;
	padding: 5px 14px;
	font-size: 12px;
}
.tools-container section .item-content .row.end span.delete {
	float: right;
	border-color: #ff6400;
	background-color: #ff6400;
	color: #fff;
	line-height: 1;
}
.tools-container section li:first-child .item-content .row.end span.delete {
	display: none;
}
.tools-container section li:first-child:has(+ li) .item-content .row.end span.delete {
	display: block;
}
.tools-container section.extra small {
    line-height: 1.4;
    display: block;
    margin-top: 5px;
}
.tools-container section.extra small pre {
    display: inline;
    background: #111;
    padding: 3px;
}
.tools-container section .add-item {
	margin: 20px auto;
	border-radius: 99px;
	background: #61ce3c;
	aspect-ratio: 1/1;
	display: flex;
	align-items: center;
	justify-content: center;
	max-width: 30px;
	color: #fff;
	font-size: 20px;
	cursor: pointer;
	text-decoration: none;
}
.tools-container #drag-ghost {
	width: 1px;
	height: 1px;
}
@media (max-width: 1400px) {
    .tools-container .wrapper {
        display: block;
    }

    .tools-container aside {
        max-width: none;
    }

    .tools-container .preview {
        height: 50vh;
        min-height: 350px;
    }
}
/* Codemirror */
.cm-s-default span.cm-meta {color: #569cd6}
.cm-s-default span.cm-number {color: #b5cea8}
.cm-s-default span.cm-keyword {line-height: 1em; font-weight: bold; color: #569cd6;}
.cm-s-default span.cm-def {color:#9cdcfe}
.cm-s-default span.cm-variable {color: #ddd6a3}
.cm-s-default span.cm-variable-2 {color: #9cdcfe}
.cm-s-default span.cm-variable-3,
.cm-s-default span.cm-type {color: #A9B7C6}
.cm-s-default span.cm-property {color: #9cdcfe}
.cm-s-default span.cm-operator {color: #d4d4d4}
.cm-s-default span.cm-string {color: #ce9178}
.cm-s-default span.cm-string-2 {color: #6A8759}
.cm-s-default span.cm-comment {color: #6A9955}
.cm-s-default span.cm-link {color: #287BDE}
.cm-s-default span.cm-atom {color: #569cd6}
.cm-s-default span.cm-error {color: #BC3F3C}
.cm-s-default span.cm-tag {color: #569cd6}
.cm-s-default span.cm-attribute {color: #9cdcfe}
.cm-s-default span.cm-qualifier {color: #d7ba7d}
.cm-s-default span.cm-bracket {color: #808080}

.cm-s-default.CodeMirror {background: #1e1e1e; color: #e9e9e9;}
.cm-s-default .CodeMirror-cursor {border-left: 1px solid #bebebe;}
.CodeMirror-activeline-background {background: #3A3A3A;}
.cm-s-default div.CodeMirror-selected {background: #1e496c}
.cm-s-default .CodeMirror-gutters {background: #252526; border-right: 1px solid grey; color: #606366}
.cm-s-default span.cm-builtin {color: #A9B7C6;}
.cm-s-default {font-family: Consolas, 'Courier New', monospace, serif;}
.cm-s-default .CodeMirror-matchingbracket {background-color: #3b514d; color: yellow !important;}

.CodeMirror-hints.default {
  font-family: Consolas, 'Courier New', monospace;
  color: #9c9e9e;
  background-color: #3b3e3f !important;
}

.CodeMirror-hints.default .CodeMirror-hint-active {
  background-color: #494d4e !important;
  color: #9c9e9e !important;
}
/* Tabs */
/* Style the tab */
.tab {
  overflow: hidden;
}

.tab.flex {
    display: flex;
}

/* Style the buttons that are used to open the tab content */
.tab button {
  background-color: inherit;
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  transition: 0.3s;
}

/* Change background color of buttons on hover */
.tab button:hover {
  background-color: #ddd;
    color: #acacac !important;
}

.tab.flex > button,
.tab.flex > button:focus {
    flex: 1;
    color: #acacac;
    font-size: 12px;
    text-transform: uppercase;
}

.tab.flex > button.active  {
    background: transparent;
    color: #fff !important;
}

/* Style the tab content */
.tab-content:not(.active) {
  height: 0;
  overflow: hidden;
}