@font-face {
    font-family: 'default';
    src: url("i/medium.ttf") format('truetype');
}

@font-face {
    font-family: 'bold';
    src: url("i/bold.ttf") format('truetype');
}

@font-face {
    font-family: 'pacifico';
    src: url("i/pacifico.ttf") format('truetype');
}

:root {
    --bg: #F0F1F2;
    --bgSub: #FFFFFF;
    --bgLight: #FAFAFA;
    --theme: #B2FF47;
    --contentBold: #000000;
    --warning: #FF4747;
    --content: #A7AAB6;
    --success: #4763FF;
    --bgBox: rgba(0, 0, 0, .8);
    --bgBoxSub: rgba(0, 0, 0, .04);
}

/*  Scrollbar  */

::-webkit-scrollbar {
    width: 4px;
    height: 4px;
    background-color: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: var(--content);
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--content);
}

::-webkit-scrollbar-corner {
    background-color: transparent;
}

::selection {
    background-color: var(--theme);
    color: var(--contentBold);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "default";
    font-size: 14px;
    line-height: 100%;
    border: 0;
    outline: 0;
    word-wrap: break-word;
    transition: .2s;
}

html {
    height: 100%;
}

body {
    display: flex;
    height: 100%;
    padding: 24px;
    align-items: flex-start;
    gap: 24px;
    background: var(--bg);
    color: var(--content);
}

ul,
li {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--contentBold);
}

/*  ------------------------------------------------  */

input,
button,
textarea {
    cursor: pointer;
    border-radius: 12px;
    display: flex;
    padding: 24px;
    gap: 8px;
    flex: 1 0 0;
    background: var(--bgLight, #FAFAFA);
    font-family: "bold";
}

input,
button {
    height: 64px;
    align-items: center;
    justify-content: center;
}

input:hover,
button:hover {
    box-shadow: inset 0 0 0 1px var(--bgBoxSub);
}

input:focus {
    background: var(--bg);
}

input[type="text"],
input[type="number"],
input[type="password"],
input[type="file"] {
    padding-left: 48px;
    background-position: 24px center;
    background-size: 16px;
    background-repeat: no-repeat;
}

textarea::placeholder,
input[type="text"]::placeholder,
input[type="number"]::placeholder,
input[type="password"]::placeholder {
    color: var(--content);
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

input[type="text"].inpUser {
    background-image: url("i/iconMini=user.png");
}

input[type="text"].inpName {
    background-image: url("i/iconMini=title.png");
}

input[type="text"].inpHost {
    background-image: url("i/iconMini=server.png");
}

input[type="text"].inpEmail {
    background-image: url("i/iconMini=email.png");
}

input[type="text"].inpOption {
    background-image: url("i/iconMini=options.png");
}

input[type="number"].inpCoins {
    background-image: url("i/iconMini=coins.png");
}

input[type="number"].inpID {
    background-image: url("i/iconMini=id.png");
}

input[type="number"].inpCount {
    background-image: url("i/iconMini=count.png");
}

input[type="password"] {
    background-image: url("i/iconMini=password.png");
}

input[type="file"] {
    user-select: none;
    background-image: url("i/iconMini=file.png");
}

input[type="file"]::file-selector-button {
    display: none;
}

input[type="file"]:invalid {
    color: transparent;
}

input[type="file"]:invalid::before {
    content: "JSON FILE";
    color: var(--content);
}

button:hover {
    box-shadow: inset 0 -4px 0 1px var(--bgBoxSub);
}

button:active {
    box-shadow: inset 0 0 0 1px var(--bgBoxSub);
}

button.sub {
    flex: none;
    width: 200px;
    background: var(--theme);
}

button.disable {
    background: var(--bg);
}

button.btnClear {
    flex: none;
    padding: 0;
    width: 64px;
    height: 64px;
    background-image: url("i/iconMini=close.png");
    background-size: 16px;
    background-repeat: no-repeat;
    background-position: center center;
}

select {
    cursor: pointer;
    border-radius: 12px;
    width: 100%;
    height: 64px;
    padding: 24px 48px;
    font-family: "bold";
    appearance: none;
    -webkit-apperance: none;
    -moz-appearance: none;
    background: url("i/iconMini=selectArrow.png") right 24px center no-repeat, url("i/iconMini=type.png") 24px center no-repeat var(--bgLight);
    background-size: 16px;
    color: var(--contentBold);
}

select:hover {
    box-shadow: inset 0 0 0 1px var(--bgBoxSub);
}

select:invalid {
    color: var(--content);
}

select option {
    color: var(--contentBold);
}

/*  ------------------------------------------------  */

.w100 {
    width: 100%;
}

/*  ------------------------------------------------  */

side {
    display: flex;
    height: 100%;
    padding: 24px;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    align-self: stretch;
    border-radius: 24px;
    background: var(--bgSub);
}

.logo {
    width: 48px;
    height: 48px;
    background: url("i/logo.png") no-repeat center center;
    background-size: 100% 100%;
}

.nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    flex: 1 0 0;
    background: url("i/navCut.png") no-repeat center 0;
    background-size: 100% 2px;
    padding-top: 26px;
}

.nav a {
    display: block;
    width: 100%;
    font-size: 10px;
    font-family: "bold";
    text-align: center;
    padding-top: 32px;
    background-position: center 0;
    background-size: 24px;
    background-repeat: no-repeat;
    color: var(--content);
}

.nav a:hover {
    color: var(--contentBold);
}

.nav a:nth-child(1) {
    background-image: url("i/iconNav=server.png");
}

.nav a:nth-child(1):hover {
    background-image: url("i/iconNav=serverC.png");
}

.nav a:nth-child(1).active {
    background-image: url("i/iconNav=serverC.png");
    color: var(--contentBold);
}

.nav a:nth-child(2) {
    background-image: url("i/iconNav=workflow.png");
}

.nav a:nth-child(2):hover {
    background-image: url("i/iconNav=workflowC.png");
}

.nav a:nth-child(2).active {
    background-image: url("i/iconNav=workflowC.png");
    color: var(--contentBold);
}

.nav a:nth-child(3) {
    background-image: url("i/iconNav=user.png");
}

.nav a:nth-child(3):hover {
    background-image: url("i/iconNav=userC.png");
}

.nav a:nth-child(3).active {
    background-image: url("i/iconNav=userC.png");
    color: var(--contentBold);
}

.nav a:nth-child(4) {
    background-image: url("i/iconNav=history.png");
}

.nav a:nth-child(4):hover {
    background-image: url("i/iconNav=historyC.png");
}

.nav a:nth-child(4).active {
    background-image: url("i/iconNav=historyC.png");
    color: var(--contentBold);
}

.nav a:nth-child(5) {
    background-image: url("i/iconNav=box.png");
}

.nav a:nth-child(5):hover {
    background-image: url("i/iconNav=boxC.png");
}

.nav a:nth-child(5).active {
    background-image: url("i/iconNav=boxC.png");
    color: var(--contentBold);
}

side .avatar,
side .logOut {
    width: 48px;
    height: 48px;
    border-radius: 24px;
    border: 2px var(--bgSub) solid;
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--bgLight);
}

side .logOut {
    background-size: 16px;
    background-image: url("i/iconMini=logOut.png");
}

side .logOut:hover {
    background-color: var(--bg);
}

side .avatar a,
side .logOut a {
    display: block;
    width: 100%;
    height: 100%;
}

/*  ------------------------------------------------  */

main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    flex: 1 0 0;
    align-self: stretch;
}

.preTitle {
    display: flex;
    align-items: center;
    gap: 8px;
    align-self: stretch;
    background: url("i/iconPreTitle.png") 0 center no-repeat;
    background-size: 4px 12px;
    padding-left: 12px;
    font-family: "bold";
    color: var(--contentBold);
}

.preTitle i {
    font-style: normal;
    color: var(--content);
}

.guide {
    display: flex;
    padding: 24px;
    align-items: center;
    gap: 8px;
    border-radius: 24px;
    background: var(--bgSub);
}

.guide a {
    font-family: "bold";
    color: var(--content);
    padding-right: 24px;
    background: url("i/iconMini.png") no-repeat right center;
    background-size: 16px;
}

.guide a:hover {
    color: var(--contentBold)
}

.frame {
    display: flex;
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    flex: 1 0 0;
    align-self: stretch;
    border-radius: 24px;
    background: var(--bgSub);
}

.grid {
    display: flex;
    padding: 24px;
    align-items: flex-start;
    align-content: flex-start;
    gap: 24px;
    flex: 1 0 0;
    align-self: stretch;
    flex-wrap: wrap;
    border-radius: 24px;
    background: var(--bgSub);
    overflow: auto;
}

.tableTR {
    display: flex;
    height: 64px;
    padding: 24px 12px 24px 24px;
    align-items: center;
    gap: 12px;
    align-self: stretch;
    border-radius: 12px;
    border: 1px var(--bgLight) solid;
}

.tableHead {
    background: var(--bgLight);
}

.tableList {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    flex: 1 0 0;
    align-self: stretch;
    overflow: auto;
}

.tableTR span {
    font-family: "bold";
}

.tableTR span:nth-child(1) {
    width: 64px;
}

.tableTR span:nth-child(2) {
    width: 128px;
}

.tableTR span:nth-child(3) {
    flex: 1 0 0;
}

.tableTR span:nth-child(4) {
    width: 240px;
}

.tableTR span:nth-child(5) {
    width: 168px;
    text-align: right;
}

.tableHead span:nth-child(5) {
    padding-right: 12px;
}

.pre .tableTR span:nth-child(1) {
    width: auto;
    flex: 1 0 0;
}

.pre .tableTR span:nth-child(2) {
    width: 64px;
}

.pre .tableTR span:nth-child(3) {
    width: 160px;
}

.pre .tableTR span:nth-child(4) {
    width: 96px;
}

.pre .tableTR span:nth-child(5) {
    width: 168px;
}

.tableTR .status {
    display: flex;
    width: 64px;
    height: 16px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100%;
}

.tableTR .status.online {
    background-image: url("i/iconStatus=online.png");
}

.tableTR .status.offline {
    background-image: url("i/iconStatus=offline.png");
}

.tableTR .status.disable {
    background-image: url("i/iconStatus=disable.png");
}

.tableTR .name {
    color: var(--contentBold);
}

.tableTR .host {
    font-family: "default";
}

.tableTR .queueOnline {
    color: var(--success);
}

.tableTR .queueOffline {
    color: var(--warning);
}

.tableTR .queueDisable {
    color: var(--content);
}

.tableTR .actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 24px;
}

.tableTR .actions a {
    display: flex;
    width: 40px;
    height: 40px;
    padding: 12px;
    align-items: center;
    gap: 12px;
    border-radius: 8px;
    background-color: var(--bgLight);
    background-position: center;
    background-size: 16px;
    background-repeat: no-repeat;
}

.tableTR .actions a:hover {
    background-color: var(--bg);
    box-shadow: inset 0 0 0 1px var(--bgBoxSub), inset 0 -4px 0 0 var(--bgBoxSub);
}

.tableTR .actions a:active {
    box-shadow: inset 0 0 0 1px var(--bgBoxSub);
}

.tableTR .actions a.disable {
    background-image: url("i/iconMini=disable.png");
}

.tableTR .actions a.enable {
    background-image: url("i/iconMini=enable.png");
}

.tableTR .actions a.edit {
    background-image: url("i/iconMini=edit.png");
}

.tableTR .actions a.delete {
    background-image: url("i/iconMini=trash.png");
}

.tableTR .actions a.image {
    background-image: url("i/iconMini=image.png");
}

.createBar {
    display: flex;
    padding: 24px;
    align-items: flex-start;
    gap: 24px;
    align-self: stretch;
    border-radius: 32px;
    background: var(--bgSub);
}

.gridCard {
    display: flex;
    width: calc((100% - 72px)/4);
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    border-radius: 12px;
    background: var(--bgLight);
}

.gridCard:hover {
    cursor: pointer;
    box-shadow: inset 0 0 0 1px var(--bgBoxSub), inset 0 -4px 0 0 var(--bgBoxSub);
}

.gridCard:active {
    box-shadow: inset 0 0 0 1px var(--bgBoxSub);
}

.cardHead {
    display: flex;
    align-items: center;
    align-self: stretch;
    gap: 24px;
}

.iconCard {
    display: flex;
    height: 40px;
    align-items: center;
    flex: 1 0 0;
    background-position: 0 center;
    background-repeat: no-repeat;
    background-size: 40px;
}

.iconCard.avatar {
    background-image: url("i/avatar.png");
}

.iconCard.green {
    background-image: url("i/logoIcon=green.png");
}

.iconCard.blue {
    background-image: url("i/logoIcon=blue.png");
}

.iconCard.purple {
    background-image: url("i/logoIcon=purple.png");
}

.iconCard.pink {
    background-image: url("i/logoIcon=pink.png");
}

.iconCard.red {
    background-image: url("i/logoIcon=red.png");
}

.iconCard.yellow {
    background-image: url("i/logoIcon=yellow.png");
}

.iconCard.gray {
    background-image: url("i/logoIcon=gray.png");
}

.iconCard.check {
    width: 24px;
    height: 24px;
    background-size: 24px;
    background-image: url("i/formCheck.png");
}

.iconCard.checked {
    width: 24px;
    height: 24px;
    background-size: 24px;
    background-image: url("i/formChecked.png");
}

.cardHead .actions {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: var(--bgSub);
    background-position: center;
    background-size: 16px;
    background-repeat: no-repeat;
}

.cardHead .actions:hover {
    background-color: var(--bg);
    box-shadow: inset 0 0 0 1px var(--bgBoxSub), inset 0 -4px 0 0 var(--bgBoxSub);
}

.cardHead .actions:active {
    box-shadow: inset 0 0 0 1px var(--bgBoxSub);
}

.cardHead .actions.edit {
    background-image: url("i/iconMini=edit.png");
}

.cardHead .actions.delete {
    background-image: url("i/iconMini=trash.png");
}

.cardTitle {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    align-self: stretch;
}

.cardTitle h3 {
    font-size: 20px;
    color: var(--contentBold);
    font-family: "bold";
}

.cardAvatar {
    display: flex;
    align-items: flex-start;
    align-self: stretch;
}

.cardAvatar span {
    width: 24px;
    height: 24px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100%;
    background-image: url("i/avatar.png");
    border-radius: 50%;
    margin-left: -4px;
    outline: 4px var(--bgLight) solid;
}

.cardAvatar span:first-child {
    margin-left: 0;
}

.cardInfo {
    display: flex;
    font-size: 12px;
}

.cardInfo span {
    font-size: 12px;
    font-family: "bold";
    margin-right: 8px;
}

.cardInfo span.admin {
    color: var(--warning);
}

.cardInfo span.user {
    color: var(--success);
}

.cardPreview {
    display: flex;
    aspect-ratio: 4 / 3;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    background: var(--content);
    border-radius: 8px;
    overflow: hidden;
}

.cardPreview img {
    display: block;
    width: 100%;
    object-fit: cover;
}

/*  ------------------------------------------------  */

.layout {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    flex: 1 0 0;
    align-self: stretch;
}

.layout .pre {
    display: flex;
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    flex: 1 0 0;
    align-self: stretch;
    border-radius: 24px;
    background: var(--bgSub);
    overflow: auto;
}

.preAdd {
    display: flex;
    height: 64px;
    align-items: center;
    align-self: stretch;
}

.preAdd a {
    display: block;
    width: 100%;
    height: 64px;
    border-radius: 12px;
    background: url("i/iconMini=add.png") center no-repeat var(--bgLight);
    background-size: 16px;
}

.preAdd a:hover {
    box-shadow: inset 0 0 0 1px var(--bgBoxSub), inset 0 -4px 0 0 var(--bgBoxSub);
}

.preAdd a:active {
    box-shadow: inset 0 0 0 1px var(--bgBoxSub);
}

/*  ------------------------------------------------  */

.formSelect {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.formSelectIMG {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.formSelectIMG span {
    cursor: pointer;
    display: flex;
    width: 64px;
    height: 64px;
    padding: 12px;
    border-radius: 12px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 40px;
    background-color: var(--bgLight);
}

.formSelectIMG span:hover {
    box-shadow: inset 0 0 0 1px var(--bgBoxSub), inset 0 -4px 0 0 var(--bgBoxSub);
}

.formSelectIMG span:active {
    box-shadow: inset 0 0 0 1px var(--bgBoxSub);
}

.formSelectIMG span.iconGray {
    background-image: url("i/logoIcon=gray.png");
}

.formSelectIMG span.iconBlack {
    background-image: url("i/logoIcon=black.png");
}

.formSelectIMG span.iconGreen {
    background-image: url("i/logoIcon=green.png");
}

.formSelectIMG span.iconRed {
    background-image: url("i/logoIcon=red.png");
}

.formSelectIMG span.iconBlue {
    background-image: url("i/logoIcon=blue.png");
}

.formSelectIMG span.iconYellow {
    background-image: url("i/logoIcon=yellow.png");
}

.formSelectIMG span.iconPurple {
    background-image: url("i/logoIcon=purple.png");
}

.formSelectIMG span.iconPink {
    background-image: url("i/logoIcon=pink.png");
}

input[type=file].inpAvatar {
    display: flex;
    flex: none;
    width: 64px;
    height: 64px;
    padding: 0;
    background: url("i/avatar.png") center no-repeat var(--bgLight);
    background-size: 40px;
}

input[type="file"].inpAvatar:invalid::before {
    content: "";

}

/*  ------------------------------------------------  */

.outputCanvas {
    display: flex;
    padding: 24px;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex: 1 0 0;
    align-self: stretch;
    border-radius: 12px;
    background: url("i/bgCanvas.png");
    background-size: 24px;
    overflow: hidden;
}

.outputCanvas img {
    max-width: 100%;
    max-height: 100%;
}

/*  ------------------------------------------------  */

.pre.preForm {
    width: 440px;
    flex: none;
}

.pre.preHistory {
    width: 208px;
    flex: none;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

.pre.preForm form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    flex: 1 0 0;
    align-self: stretch;
    overflow-x: hidden;
    overflow-y: auto;
}

.pre.preForm form textarea {
    resize: none;
    display: flex;
    flex: none;
    width: 100%;
    height: 154px;
    padding: 24px;
    align-items: flex-start;
    gap: 24px;
    border-radius: 12px;
    background: var(--bgLight);
    line-height: 150%;
}

.pre.preForm form textarea:hover {
    box-shadow: inset 0 0 0 1px var(--bgBoxSub);
}

.pre.preForm form textarea:active {
    box-shadow: inset 0 0 0 1px var(--bgBoxSub);
}

.pre.preForm form textarea:focus {
    background-color: var(--bg);
    box-shadow: inset 0 0 0 1px var(--bgBoxSub);
}

.pre.preForm form input[type="text"],
.pre.preForm form input[type="password"],
.pre.preForm form input[type="number"] {
    width: 100%;
    flex: none;
    padding: 24px;
}

.pre.preFormUser form input[type="text"],
.pre.preFormUser form input[type="password"],
.pre.preFormUser form input[type="number"] {
    padding-left: 48px;
}

.pre.preForm form input[type="text"].PX {
    background-image: url("i/iconMini=PX.png");
    background-position: right 24px center;
    background-repeat: no-repeat;
    background-size: 16px;
}

.pre.preForm button {
    width: 100%;
}

.pre.preCanvas {
    background-image: url("i/logoPlaceholder.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 240px;
}

.imgSelector {
    display: flex;
    flex: none;
    width: 100%;
    height: 208px;
    padding: 24px;
    align-items: flex-start;
    gap: 24px;
    border-radius: 12px;
    background-color: var(--bgLight);
    overflow-x: auto;
    overflow-y: hidden;
}

.imgSelector .option {
    cursor: pointer;
    display: flex;
    width: 120px;
    height: 160px;
    padding-top: 124px;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--bg);
    background-position: center;
    background-size: cover;
}

.imgSelector .option span {
    display: flex;
    width: 120px;
    height: 36px;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    font-size: 12px;
    font-family: "bold";
    color: var(--bgSub);
    background: var(--bgBoxSub);
    backdrop-filter: blur(48px);
    -webkit-backdrop-filter: blur(48px);
    border-radius: 0 0 8px 8px;
}

.imgSelector .option:hover {
    opacity: .8;
    box-shadow: inset 0 0 0 1px var(--bgBoxSub), inset 0 -4px 0 0 var(--bgBoxSub);
}

.imgSelector .option.active {
    position: relative;
    box-shadow: 0 0 0 4px var(--theme);
}

.imgSelector .option.active .checked {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    width: 24px;
    height: 24px;
    background: url("i/iconSmall=checkStyle.png") center no-repeat;
    background-size: 24px;
}

.imgSelector .upIMG {
    padding: 0;
    background: url("i/iconSmall=upIMG.png") center no-repeat var(--bg);
    background-size: 24px;
}

.imgSelector .upIMG input[type="file"] {
    width: 100%;
    height: 100%;
    background: transparent;
}

.imgSelector .upIMG input[type="file"]:invalid {
    color: transparent;
}

.imgSelector .upIMG input[type="file"]::file-selector-button {
    display: none;
}

.imgSelector .upIMG input[type="file"]::before {
    content: none;
}

/*  ------------------------------------------------  */

.hisList {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    flex: 1 0 0;
    overflow-y: auto;
}

.hisCard {
    cursor: pointer;
    display: flex;
    flex-shrink: 0;
    width: 160px;
    height: 160px;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    overflow: hidden;
    background-color: var(--bg);
    background-position: center;
    background-size: cover;
    padding-top: 108px;
    border-radius: 8px;
}

.hisCard:hover {
    box-shadow: inset 0 0 0 1px var(--bgBoxSub), inset 0 -4px 0 0 var(--bgBoxSub);
    opacity: .8;
}

.hisCard span {
    display: flex;
    width: 100%;
    padding: 12px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 8px;
    background: var(--bgBoxSub);
    backdrop-filter: blur(48px);
    -webkit-backdrop-filter: blur(48px);
    font-size: 12px;
    border-radius: 0 0 8px 8px;
}

.hisCard span b {
    font-family: "bold";
    font-size: 12px;
    color: var(--bgSub);
}

/*  ------------------------------------------------  */

#box {
    position: relative;
    display: flex;
    width: 640px;
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    border-radius: 24px;
    background: var(--bgSub);
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bgBox);
    z-index: 9998;
}

/* Modal Box - when displayed as modal */
#box[name="boxServer"],
#box[name="boxConfirm"],
#box[name="boxIcons"],
#box[name="boxText"],
#box[name="boxOutImage"] {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

#box[name="boxConfirm"] .boxContent p {
    margin: 0;
    padding: 0;
    font-family: "bold";
    color: var(--contentBold);
}

#box form {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

#box .boxTitle {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    align-self: stretch;
    font-family: "bold";
    padding-bottom: 24px;
    border-bottom: 2px var(--bgLight) solid;
}

#box .boxTitle sub {
    font-size: 10px;
    font-family: "bold";
}

#box .boxContent {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    align-self: stretch;
    max-height: 520px;
    overflow-y: auto;
    overflow-x: hidden;
}
#box .boxContent p {
    font-family: 'bold';
    color: var(--contentBold);
    line-height: 150%;
    width: 100%;
}

#box .boxWrap {
    flex-direction: row;
    align-content: flex-start;
    flex-wrap: wrap;
}

#box .boxIcon {
    cursor: pointer;
    display: flex;
    width: calc((100% - 72px) / 4);
    height: 130px;
    border-radius: 8px;
    background-color: var(--bgLight);
    background-size: 40px 40px;
    background-position: center;
    background-repeat: no-repeat;
}

#box .boxIcon:hover {
    box-shadow: inset 0 0 0 1px var(--bgBoxSub), inset 0 -4px 0 0 var(--bgBoxSub);
}

#box .boxIcon:active {
    box-shadow: inset 0 0 0 1px var(--bgBoxSub);
}

#box .boxIcon:nth-child(1) {
    background-image: url("i/logoIcon=gray.png");
}

#box .boxIcon:nth-child(2) {
    background-image: url("i/logoIcon=black.png");
}

#box .boxIcon:nth-child(3) {
    background-image: url("i/logoIcon=green.png");
}

#box .boxIcon:nth-child(4) {
    background-image: url("i/logoIcon=red.png");
}

#box .boxIcon:nth-child(5) {
    background-image: url("i/logoIcon=blue.png");
}

#box .boxIcon:nth-child(6) {
    background-image: url("i/logoIcon=yellow.png");
}

#box .boxIcon:nth-child(7) {
    background-image: url("i/logoIcon=purple.png");
}

#box .boxIcon:nth-child(8) {
    background-image: url("i/logoIcon=pink.png");
}

#box .boxIcon.active {
    background-color: var(--bg);
}

#box .boxClose {
    cursor: pointer;
    position: absolute;
    bottom: -63px;
    left: calc(50% - 48px);
    width: 96px;
    height: 64px;
    background: url("i/closeBox.png") center no-repeat;
    background-size: 96px;
}

#box input {
    width: 100%;
}

#box button {
    width: 100%;
}

/*  ------------------------------------------------  */

.bgUser {
    width: 100%;
    display: flex;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-color: var(--bgLight);
    background-image: url("i/avatar.png");
    border-radius: 12px;
}

.bgUser .blur {
    display: block;
    width: 100%;
    padding: 80px 12px 12px 12px;
    background-color: rgba(250, 250, 250, .8);
    backdrop-filter: blur(24px);
    border-radius: 12px;
}

/*  ------------------------------------------------  */

#tips {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    padding: 24px 24px 24px 52px;
    align-items: center;
    gap: 12px;
    border-radius: 24px;
    background-position: 24px center;
    background-repeat: no-repeat;
    background-color: var(--bgSub);
    background-size: 16px;
    outline: 4px var(--bgBoxSub) solid;
}

#tips.success {
    color: var(--success);
    font-family: "bold";
    background-image: url("i/iconMini=success.png");
}

#tips.warning {
    color: var(--warning);
    font-family: "bold";
    background-image: url("i/iconMini=warning.png");
}