foreignobject {
    display: none;
}

.display-none {
    display: none;
}

*::-webkit-scrollbar {
    /* width: .625rem;
    height: .625rem; */
    width: .25rem;
    height: .25rem;
}

*::-webkit-scrollbar-thumb {
    /* background: linear-gradient(180deg, #6366f1 0, #a855f7 50%, #ec4899); */
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 8px;
    box-shadow: 0 -.5rem 1.5rem 0 rgba(var(--primary-rgb), var(--glow-intensity)), 0 .5rem 1.5rem 0 rgba(var(--secondary-rgb), var(--glow-intensity));
    opacity: .75;
}

*::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, .5);
}

* {
    box-sizing: border-box;
    user-select: auto;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    outline: none;
}

:root {
    --input-rgb: 255, 255, 255;
    --input-color: rgb(var(--input-rgb));
    --primary-rgb: 236, 72, 153;
    --primary-color: rgb(var(--primary-rgb));
    --secondary-rgb: 53, 160, 255;
    --secondary-color: rgb(var(--secondary-rgb));
    --glow-intensity: 1.0;
    --admin-username-rgb: 255, 0, 0;
    --admin-username-color: rgb(var(--admin-username-rgb));
}

html {
    background: #020817 url(../img/bg.webp);
    background-size: cover;
    background-position: center;
}
body {
    background-color: unset;
}
html, body {
    font-family: Arial, Helvetica, sans-serif;
    padding: 0;
    margin: 0;
    color: var(--input-color);
    width: 100%;
    height: 100%;
}

html {
    overflow: hidden;
}

body {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: stretch;
    gap: 1rem;
    overflow: auto;
}

body::after {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    content: 'LOADING';
    opacity: 0;
    box-shadow: 0px .25rem 1rem 0 rgb(0 0 0 / 50%), inset 0 0 2rem 0 rgba(var(--primary-rgb), calc(var(--glow-intensity) / 3));
    text-shadow: 0 .5rem 1.5rem rgba(var(--secondary-rgb), var(--glow-intensity));
    border: 1px solid var(--primary-color);
    background: rgba(0, 0, 0, .5);
    border-radius: .25rem;
    /* transition: opacity .5s; */
    color: var(--secondary-color);
    font-size: 1.5rem;
    padding: 1rem;
    font-weight: 400;
    pointer-events:none;
    transition: all .5s;
}

body .scroll-to-top {
    position: fixed;
    width: 3rem;
    height: 3rem;
    background: rgba(0, 0, 0, .75);
    border-radius: 50%;
    padding: .5rem;
    cursor: pointer;
    overflow: hidden;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    transition: opacity .2s;
    opacity: 0;
    pointer-events: none;
}

body .scroll-to-top * {
    pointer-events: none;
}

body .scroll-to-top svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 .25rem .75rem rgba(var(--primary-rgb), var(--glow-intensity)));
}

body .scroll-to-top svg path {
    fill: var(--primary-color);
}

body.needs-scroll-to-top .scroll-to-top {
    opacity: 1;
    pointer-events: all;
}

@keyframes glowing {
    from {
        opacity: .5;
    }

    to {
        opacity: 1;
    }
}

body.loading > *:not(the-header) {
    opacity: 0;
}
body > * {
    transition: opacity .2s;
}
/* body.loading > * {
    opacity: 0;
} */

body.loading::after {
    opacity: 1;
    animation: glowing .5s ease-in-out infinite alternate;
}

a {
    outline: none;
}

svg * {
    user-select: none;
}

button {
    outline: none;
}
button * {
    pointer-events: none;
    user-select: none;
}
svg * {
    pointer-events: none;
}

fieldset {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    border: none;
    padding: 0;
    margin: 0;
    outline: 0;
}

label {
    flex: 0 0 auto;
    font-size: .8rem;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--secondary-color);
    cursor: pointer;
    text-shadow: 0 .5rem 1.5rem rgba(var(--secondary-rgb), var(--glow-intensity));
    /* margin-bottom: .5rem; */
    position: relative;
}

input {
    flex: 0 0 auto;
    width: 14rem;
    color: var(--input-color);
    background: #000000;
    border: 1px solid var(--primary-color);
    border-radius: .25rem;
    padding: .25rem;
    font-size: 1rem;
    outline: none;
    resize: none;
}

textarea {
    flex: 0 0 auto;
    width: 100%;
    color: var(--input-color);
    background: #000000;
    border: 1px solid var(--primary-color);
    border-radius: .25rem;
    padding: .25rem;
    font-size: 1rem;
    outline: none;
    resize: none;
}

input::placeholder, textarea::placeholder {
    color: var(--primary-color);
    font-style: italic;
    opacity: .75;
}

select {
    min-width: 0;
    color: var(--input-color);
    background: #000000;
    border: 1px solid var(--primary-color);
    border-radius: .25rem;
    padding: .25rem;
    font-size: 1rem;
    outline: none;
    text-align: center;
}

input[type=number] {
    -webkit-appearance: none;
    -moz-appearance: textfield;
    min-width: 0;
}
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type='checkbox'] {
    /* accent-color: var(--primary-color);
    border: 1px solid var(--primary-color);
    outline: none; */

    -webkit-appearance: none;
    -moz-appearance:    none;
    appearance:         none;

    width: 1rem;
    height: 1rem;
    border: solid 1px var(--primary-color);
    border-radius: .25rem;
    position: relative;
}
input[type='checkbox']:checked::before {
    content: '✓';
    width: calc(1rem - 2px);
    height: calc(1rem - 2px);
    color: var(--primary-color);
    position: absolute;
    top: 1px;
    left: 1px;
}

input[type='range'] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 1.5rem;
    background: rgba(0, 0, 0, 0);
    border: 1px solid rgba(var(--primary-rgb), .5);
    outline: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.range-value {
    position: absolute;
    top: 0;
    right: 0;
    color: var(--input-color);
}

input[type='range']::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 1.5rem;
    height: 1.5rem;
    background: var(--primary-color);
    box-shadow: 0 .5rem 1.5rem rgba(var(--primary-rgb), calc(var(--glow-intensity) / 5));
    border-radius: .25rem;
    cursor: pointer;
}

input[type='range']::-moz-range-thumb {
    width: 1.5rem;
    height: 1.5rem;
    background: var(--primary-color);
    box-shadow: 0 .5rem 1.5rem rgba(var(--primary-rgb), calc(var(--glow-intensity) / 5));
    border-radius: .25rem;
    cursor: pointer;
}

input[type="color"] {
    width: 100%;
    height: 2rem;
    outline: none;
    padding: 0;
    margin: 0;
    border-radius: 0;
    border: none;
    /* box-shadow: 0px .25rem 1rem 0 rgb(0 0 0 / 50%); */
    cursor: pointer;
    background: rgba(0, 0, 0, 0);
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    align-self: stretch;
}
input[type="color"].primary {
    box-shadow: 0 .5rem 1.5rem rgba(var(--primary-rgb), calc(var(--glow-intensity) / 5));
}
input[type="color"].secondary {
    box-shadow: 0 .5rem 1.5rem rgba(var(--secondary-rgb), calc(var(--glow-intensity) / 5));
}
input[type="color"].input {
    box-shadow: 0 .5rem 1.5rem rgba(var(--input-rgb), calc(var(--glow-intensity) / 5));
}
input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
    margin: 0;
}

input[type="color"]::-webkit-color-swatch,
input[type="color"]::-moz-color-swatch {
    border-radius: 0;
}

input[type="color"]:focus {
    border-radius: 0;
    outline: none;
}

input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

input[type="color"]::-webkit-color-swatch {
    border: 0;
    border-radius: 0;
}

input[type="color"]::-moz-color-swatch,
input[type="color"]::-moz-focus-inner {
    border: 0;
}

input[type="color"]::-moz-focus-inner {
    padding: 0;
}

parameter-helper {
    margin-left: .5rem;
    user-select: none;
    position: relative;
}

parameter-helper span {
    display: inline-block;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50%;
    width: 1rem;
    height: 1rem;
    line-height: 1rem;
    text-align: center;
    vertical-align: text-bottom;
    text-decoration: none;
    user-select: none;
    position: relative;
    pointer-events: none;
}

parameter-helper div {
    opacity: 0;
    transition: opacity .2s, left .2s;
    z-index: 999;
    position: absolute;
    bottom: calc(100% + .5rem);
    max-width: 12rem;
    width: max-content;
    height: min-content;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 1);
    border-radius: .25rem;
    padding: .5rem;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    box-shadow: 0 0rem 1rem 1rem rgba(0, 0, 0, .75);
    text-transform: none;
    font-weight: 400;
    line-height: 1.25rem;
    pointer-events: none;
}

parameter-helper div a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
}

parameter-helper.active div {
    opacity: 1;
    left: 1rem;
    pointer-events: all;
}

seed-input {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: stretch;
    gap: .5rem;
}

seed-input input {
    flex: 0 0 10rem;
    width: 10rem;
    text-align: center;
    color: var(--input-color);
    background: #000000;
    border: 1px solid var(--primary-color);
    border-radius: .25rem;
    padding: .25rem;
    font-size: 1rem;
    outline: none;
    resize: none;
}

seed-input input::placeholder {
    color: var(--primary-color);
    font-style: italic;
    text-transform: uppercase;
    font-weight: 600;
    opacity: .75;
}

seed-input button {
    flex: 0 0 auto;
    border: 1px solid var(--primary-color);
    background: #000000;
    color: var(--primary-color);
    font-weight: 800;
    border-radius: .25rem;
    width: 1.75rem;
    height: 1.75rem;
    padding: .25rem;
    font-size: 1rem;
    cursor: pointer;
    overflow: hidden;
}

seed-input button svg {
    width: 100%;
    height: 100%;
    fill: var(--primary-color);
}

.glow-button {
    --glow-color: rgba(var(--primary-rgb), var(--glow-intensity));
    position: relative;
    color: var(--secondary-color);
    cursor: pointer;
    padding: 0.5rem 1rem;
    border: 0.15rem solid var(--primary-color);
    border-radius: 0.45rem;
    background: none;
    perspective: 1.5rem;
    font-size: 1.25rem;
    font-weight: 400;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: inset 0px 0px 0.5em 0px rgba(var(--primary-rgb), var(--glow-intensity)),
        0px 0px 0.5em 0px rgba(var(--primary-rgb), var(--glow-intensity));
}

.glow-button span {
    font-weight: 800;
    text-transform: uppercase;
    text-shadow: 0 .5rem 1.5rem rgba(var(--secondary-rgb), var(--glow-intensity));
}

.glow-button::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    z-index: -1;
    background-color: var(--glow-color);
    box-shadow: 0 0 2rem 0.2rem var(--glow-color);
    transition: all .1s;
}

.glow-button:hover {
    color: var(--input-color);
    text-shadow: none;
    animation: none;
}

.glow-button:hover:before {
    filter: blur(1.5rem);
    opacity: 1;
}

/* .glow-button:hover:after {
    opacity: 1;
} */

/*********** MEDIA QUERIES START HERE ***********/


@media only screen and (max-width: 720px) {

    body {
        gap: .5rem;
    }

    seed-input {
        gap: .25rem;
    }

    body > div.scroll-to-top {
        bottom: .5rem;
    }
}

@media only screen and (min-width: 1280px) {
    *::-webkit-scrollbar {
        width: .5rem;
        height: .5rem;
    }
}

/*********** MEDIA QUERIES END HERE ***********/