html {
    background-color: #000000;
    opacity: 0.9;
    background-image:  radial-gradient(#3d3846 1.85px, transparent 1.85px), radial-gradient(#3d3846 1.85px, #080809 1.85px);
    background-size: 74px 74px;
    background-position: 0 0,37px 37px;
}
body {
    margin: 0;
    padding: 2rem;
    height: 100%;

}
.main {
    --main: #0d1b2a;
    --main2: #1b263b;
    --mid: #415a77;
    --text: #e0e1dd;
    --spacing: 2em;
    --border: 20px;

    background-color: var(--main);
    padding: var(--spacing);
    border-radius: var(--border);
    color: var(--text);

    font-family: "Faculty Glyphic", sans-serif;
    font-weight: 400;
    font-style: normal;

    display: flex;
    gap:var(--spacing);
    justify-content: stretch;
    align-items: stretch;
    flex-direction: row;
}

h1 {
    margin: 0;
    font-family: "Faculty Glyphic", sans-serif;
    font-weight: 900;
    font-style: normal;

    margin-bottom: 20px;
    text-align: center;
    color: #fff;
}
select {
    width: 100%;
}
.select2-results img {
    max-width: 50px;
}
#items {
    width:65%;
}
#output {
    width: 35%;
    height: auto;
    background-color: rgba(0,0,0,0.5);
    padding: var(--spacing);
    border-radius: var(--border);
    align-self: stretch;
}
#output #result {
    white-space: pre-line;
}
input[type='checkbox'][disabled] + label {
    opacity: .5;
    text-decoration: line-through;
}
.group {
    display: flex;
    label {
        flex-grow: 1;
        width: 50%;
    }
    margin-bottom: 5px;
}
.group:has([parent]) {
    border: 2px solid var(--mid);
    padding: 10px;
    border-radius: 10px;
}

.select2, .select2-dropdown {
    font-family: "Faculty Glyphic", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 13px;
}
.select2 button {
    color: #fff;
    padding: 0;
}
.select2-container--default .select2-selection--single {
    border: 0;
    border-radius: 10px;
}
.select2-container--default .select2-selection--single {
    background-color: var(--mid);
}
.select2-container--default .select2-selection--multiple, .select2-selection__rendered {
    background-color: var(--mid) !important;
    color: var(--text) !important;
    border-color:var(--mid) !important;
    border-radius: 10px;
}
.select2-container--default .select2-search--inline .select2-search__field::placeholder {
    color: rgba(255,255,255,0.7);
}
.select2-container {
    margin-bottom: 10px !important;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: var(--main) !important;
    border-color: var(--main) !important;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    border-color: var(--main) !important;
}
button {
    background: transparent;
    outline: 0;
    padding: 10px 35px;
    box-shadow: none;
    color: var(--mid);
    border-radius: var(--border);
    border: 2px solid var(--mid);
    font-family: "Faculty Glyphic", sans-serif;
    font-weight: 800;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 350ms all;
    filter: brightness(1.6);
}
button:active, button:hover {
    filter: brightness(1.6) saturate(4);
}

@media screen and (max-width:768px) {
    .main {
        flex-direction: column;
        box-sizing: border-box;
    }
    #items, #output {
        width:100%;
        box-sizing: border-box;
    }
}