#filter {
    position: absolute;
    z-index: 3;
    width: 100vw;
    height: 100vh;
    backdrop-filter: brightness(0.8) blur(2px);
}

#editor {
    z-index: 4;
    display: flex;
    flex-flow: row nowrap;
    position: absolute;
    width: 60vw;
    height: 60vh;
    min-width: max-content;
    max-width: 1000px;
    overflow: hidden;
}

.panel {
    background-color: #1d1f21;
    border: 2px solid #303233;
    border-radius: 16px;
    box-shadow: 0 0 18px #00000040;
}

.raised {
    border: 1px solid #303233;
    border-radius: 8px;
    background: linear-gradient(180deg, #3d3d3d, #303233 80%);
    box-shadow: 2px 2px 8px #00000040;
}

#editor-config p {
    font-weight: 500;
    width: 100%;
    text-align: center;
    color: #949495e0;
    font-size: 16px;
    margin: 0;
    margin-bottom: 8px;
}

#editor-config {
    display: flex;
    flex-flow: column nowrap;
    position: relative;
    z-index: 3;
    /* min-width: 560px; */
    /* flex: 60; */
    flex-shrink: 0;
    box-shadow: 4px 0 16px #00000040;
    padding: 8px;
    padding-right: 4px;
    overflow-y: scroll;
}

#editor-meta {
    padding: 8px;
    margin-bottom: 8px;
}

#editor-meta div {
    display: flex;
    flex-flow: row nowrap;
}

#editor-meta textarea {
    width: 100%;
    heigh: 4em;
    min-height: 4em;
    resize: vertical;
    padding-top: 8px;
}

#editor-meta textarea::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background-color: #3d3d3d;
}

#editor-meta textarea::-webkit-scrollbar-thumb:hover {
    background-color: #94949580;
}

#editor-right {
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    position: relative;
    height: 100%;
    width: 100%;
    min-width: 260px;
    /* flex: 40; */
    border-left: 2px solid #303233;
    background-color: #1d1f21;
    /* overflow: hidden; */
}

#editor-preview {
    display: flex;
    /* display: none; */
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

#editor-template {
    display: flex;
    flex-flow: column nowrap;
    width: 100%;
    height: 100%;
    padding: 8px;
    margin-top: 44px;
    margin-bottom: 44px;
}

#editor-template > div {
    display: flex;
    flex-flow: column nowrap;
    height: 100%;
    padding: 8px;
}

#editor-template > div div {
    display: flex;
    justify-content: center;
    width: 100%;
}

#editor-template span {
    margin-bottom: 8px;
    text-align: center;
}

.help {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #94949540;
    color: #303233;
    transition: background-color 0.15s;
    cursor: help;
}

.help:hover {
    background-color: #94949580;
    transition: background-color 0.15s;
}

.editor-template {
    padding: 8px;
    border: 1px solid #3d3d3d;
    border-radius: 6px;
    background-color: #303233;
    box-shadow: inset 2px 2px 4px #00000040;
    font-weight: 400;
    font-size: 15px;

    width: 100%;
    height: 100%;
    font-family: monospace;
    font-size: 16px;
    resize: none;
    tab-size: 4;
}

#editor-viewtype {
    display: flex;
    z-index: 9;
    position: absolute;
    top: 8px;
}

#editor-active-output {
    display: flex;
    z-index: 9;
    position: absolute;
    bottom: 8px;
}

#editor-active-output .editor-button {
    max-width: 48px;
    margin-left: 2px;
    margin-right: 2px;
}

/* #editor-viewtype,
#editor-finalize {
    width: 100%;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-evenly;
} */

#editor-inputs,
#editor-outputs {
    /* padding: 8px; */
    display: flex;
    flex-flow: column nowrap;
    /* margin-bottom: 8px; */
}

.editor-input {
    display: flex;
    flex-flow: column;
    overflow: hidden;
    margin-bottom: 8px;
}

.editor-input-header {
    display: flex;
    width: 100%;
    flex-flow: row wrap;
    align-items: center;
    /* justify-content: space-between; */
    padding: 4px 12px;
    padding-bottom: 0;
}

.editor-input-details {
    display: none;
    min-height: 40px;
    background-color: #303233;
    box-shadow: inset 2px 2px 4px #00000040;
}

.editor-input,
#editor-meta {
    transition: border-color 0.15s;
}

.editor-input:focus-within,
#editor-meta:focus-within {
    border-color: #6a9fb580;
    transition: border-color 0.15s;
}

.editor-input-header > div,
#editor-meta div > div {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    margin-bottom: 4px;
}

.editor-input div:not(:last-child),
#editor-meta div > div:not(:last-child) {
    margin-right: 8px;
}

#editor-config input,
#editor-config select,
#editor-meta textarea {
    height: 24px;
    padding-left: 8px;
    border: 1px solid #3d3d3d;
    border-radius: 6px;
    background-color: #303233;
    box-shadow: inset 2px 2px 4px #00000040;
    font-weight: 400;
    font-size: 15px;
}

#editor input[type="text"] {
    max-width: 120px;
}

#editor input[type="number"] {
    max-width: 80px;
}

#editor select {
    padding-right: 8px;
}

#editor-config span,
#editor-template span {
    user-select: none;
    margin-right: 8px;
    font-weight: 500;
    font-size: 15px;
}

#editor-nav {
    display: flex;
    position: absolute;
    bottom: 8px;
    align-self: center;
}

/* .editor-input input:focus,
.editor-input select:focus,
.editor-input-remove:not(:active):focus {
    border-color: #6a9fb580;
    outline: 2px solid #6a9fb540;
    transition: border-color 0.15s;
} */

.editor-button {
    font-weight: 500;
    width: 120px;
    height: 28px;
    font-size: 15px;
}

#editor input:hover,
#editor textarea:hover,
#editor select:hover {
    border-color: #6a9fb540;
    transition: 0.15s;
}

#editor input,
#editor textarea,
#editor select {
    outline: 2px solid transparent;
    transition: border-color 0.15s;
}

.editor-input-remove,
.editor-input-expand {
    background-color: transparent;
    border-radius: 4px;
    border: 1px solid #3d3d3d;
    margin-right: 8px;
    margin-left: -4px;
    margin-bottom: 4px;
    /* color: #949495a0; */
    box-shadow: 0 0 4px #00000040;
}

.editor-input-remove:active,
.editor-input-expand:active,
.editor-button:active,
.editor-button:disabled {
    /* We don't want outlines on pressed buttons */
    outline: inherit !important;
    border: inherit !important;
    box-shadow: inset 2px 2px 4px #00000040;
    background: none;
    background-color: #303233;
    color: #94949580;
}
