:root{
    color-scheme: dark;

    --bg:            #0b0c0f;
    --gray:          #6f6f6f;
    --light-panel:   #2f3442;
    --orange:        rgb(211, 119, 21);
    --orange-muted:  rgb(168, 86, 0);;
    --magenta-muted: #b371a4;
    --muted:         rgba(255,255,255,.65);
    --panel:         #1e212b;
    --panel-trans:   #00000070;
    --purple:        #9b6cff;
    --purple-muted:  #7963a8;
    --teal-muted:    #4da7a8;
    --text:          rgba(255,255,255,.88);

    /* RocketPug blurple */
    --rp1:           #7f7fff;
    --rp2:           #9f6bff;
    --rp3:           #ff4fd8;
}

/* ================================
 *  RocketPug branding
================================ */

.rp-blurple {
    font-size: inherit;
    background: linear-gradient(90deg, var(--rp1), var(--rp2), var(--rp3));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ================================
 * GLOBALS
================================ */

html {
    font-family: "Lucida Console", "monospace";
    font-size: 18px;
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0px;
}

*, *:before, *:after {
    font-family: inherit;
    font-size: inherit;
    box-sizing: inherit;
}

ul {
    margin: 0px;
    padding: 0px;
    list-style-type: none;
}

ul li {
    list-style-type: none;
}

ul li a {
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

span {
    margin: 0px;
}

hr {
    border: none;
    border-bottom: 2px solid rgb(255, 255, 255);
}

input, select, textarea {
    width: 200px;
}

/* ================================
 * HELPERS
================================ */

.absolute {
    position: absolute !important;
}

.center-align {
    text-align: center;
}

.disabled {
    text-decoration: line-through !important;
    cursor: not-allowed !important;
}

.hyperlink {
    text-decoration: underline;
    color: var(--purple);
}

.hyperlink.disabled {
    color: var(--purple-muted);
}

.jost {
    font-family: "Jost", sans-serif;
}

.tui-no-shadow {
    box-shadow: none !important;
}

/* ================================
 * COLORS
================================ */

.gray-168-text {
    color: var(--muted) !important;
}

.magenta-muted-text {
    color: var(--magenta-muted) !important;
}

.orange {
    background-color: var(--orange-muted) !important;
}

.orange:hover {
    background-color: var(--orange) !important;
}

.orange-text {
    color: var(--orange);
}

.purple-muted-text {
    color: var(--purple-muted) !important;
}

.teal-muted-text {
    color: var(--teal-muted)
}

.yellow-255-text {
    color: rgb(255, 255, 0) !important;
}

/* ================================
 * MAIN
================================ */

.tui-screen-1024-768.centered {
    margin: auto;
    margin-top: 20px;
}

.tui-screen-1024-768.bordered {
    border: 2px solid black;
}

.bg-waves {
    background-image: url('../images/background.png');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

.tui-sidenav {
    position: fixed;
    top: 0px;
    left: 0px;
    background-color: var(--panel);
    min-width: 200px;
    box-shadow: 10px 10px black !important;
    padding: 6px;
    z-index: 10;
    height: 100%;
    z-index: 8;
    display: none;
}

.tui-sidenav.right {
    left: initial;
    right: 0px;
}
.tui-sidenav.active {
    display: block !important;
}

.tui-sidenav ul {
    margin-top: 50px;
    border: 2px black solid;
}

.tui-sidenav ul li {
    display: block;
    margin: 6px;
}

.tui-sidenav ul li a {
    display: block;
    user-select: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.tui-sidenav ul li:hover {
    background-color: var(--gray);
}

.tui-black-divider {
    border-bottom: 2px solid rgb(0, 0, 0);
    display: block;
}

.tui-nav {
    width: 100%;
    max-height: 50px;
    background-color: var(--panel);
    padding: 0px 2px;
    z-index: 9;
    display: block;
    position: fixed;
    color: var(--text);
    font-size: 18px;
    white-space: nowrap;
    overflow-x: auto;
}

.tui-nav ul {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    min-width: max-content;
}

.tui-nav ul li {
    display: inline-block;
    margin-left: 20px;
    padding: 10px 1px 3px 1px;
    flex-shrink: 0;
}

.tui-nav ul li a {
    display: block;
    user-select: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.tui-sidenav-button {
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.tui-dropdown {
    position: relative;
    display: inline-block;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.tui-dropdown ul li:hover {
    background-color: var(--purple-muted);
}

.tui-dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--panel);
    min-width: 200px;
    padding: 6px;
    z-index: 9;
}

.tui-dropdown-content ul {
    flex-direction: column;
    border: 2px var(--gray) solid;
}

.tui-dropdown-content ul li {
    display: block !important;
    margin: 6px;
}

.tui-dropdown-content ul li a:hover {
    background-color: var(--purple-muted);
}

.tui-dropdown:hover > .tui-dropdown-content:first-of-type {
    display: block;
}

.tui-button {
    display: inline-block;
    outline: 0;
    padding: 1px 10px;
    background-color: var(--purple-muted);
    color: var(--text);
    border: none;
    cursor: pointer;
    text-align: center;
    box-shadow: 10px 10px black;
    border-radius: 0px;
    width: 100% !important;
    margin-bottom: 15px;
    user-select: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
.tui-button.disabled {
    text-decoration: line-through;
}

.tui-button:hover {
    background: var(--purple);
}

.tui-button:active {
    transform: translateY(1px);
}

.nav-button{
    width: 110px !important;
}

/* ================================
 * CONTENT
================================ */

.content-pane {
    width: 100vw;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: visible;
    padding: 70px 12px 48px;
}

.mid-mid {
    align-items: center;
}

.home-panel {
    width: auto;
    min-width: 340px;
    max-width: 90vw;
    height: auto;
    padding: 6rem 10rem;
    background: var(--panel-trans);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(18px, 6vw, 30px);
    white-space: nowrap;
    line-height: 1.25;
}

.tui-window {
    background-color: var(--panel);
    padding: 1px;
    display: inline-block;
    position: relative;
    box-shadow: 10px 10px black;
    color: white;
    max-width: min(1400px, 100%);
}

.tui-fieldset {
    border: 6px white double;
    background-color: inherit;
    margin-bottom: 6px;
}

.tui-fieldset-button {
    position: absolute;
    top: 0px;
    right: 16px;
    color: white;
    background-color: inherit;
    z-index: 2;
    border: none;
    cursor: pointer;
    outline: 0;
    padding: 2px;
    user-select: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
.tui-fieldset-button.left {
    right: initial;
    left: 16px !important;
}

.tui-fieldset-details {
    padding: 10px;
    max-width: 1400px;
}

.tui-table {
    border: 2px solid rgb(168, 168, 168);
    padding: 5px;
    border-collapse: collapse;
}

.tui-table tbody {
    background-color: inherit;
    color: white;
}

.tui-table tbody tr td {
    border-right: 2px solid rgb(168, 168, 168);
    padding: 5px 10px;
}

.tui-table thead {
    background-color: inherit;
    color: var(--teal-muted);
    text-align: center;
}

.tui-table-grid {
    border-collapse: collapse;
    width: 100%;
}

.tui-table-grid thead tr td,
.tui-table-grid tbody tr td,
.tui-table-grid thead tr th,
.tui-table-grid tbody tr th {
    border: 2px solid black;
    padding: 10px;
    vertical-align: top;
}

.tui-table.striped-gray tbody tr:nth-child(even) {
    background-color: var(--light-panel);
}

@media screen and (max-width: 640px) {
    .tui-table {
        width: 100% !important;
        border: 0;
        table-layout: fixed;
    }

    .tui-table thead {
        position: absolute    !important;
        width: 1px            !important;
        height: 1px           !important;
        padding: 0            !important;
        margin: -1px          !important;
        overflow: hidden      !important;
        clip: rect(0,0,0,0)   !important;
        clip-path: inset(50%) !important;
        border: 0             !important;
    }

    .tui-table tbody,
    .tui-table tr,
    .tui-table tbody td {
        display: block;
        width: 100%;
    }

    .tui-table tr {
        margin-bottom: 1rem;
        border: 2px solid var(--gray);
        border-radius: 4px;
        background: var(--light-panel);
        box-shadow: 4px 4px 0 black;
        overflow: hidden;
    }

    .tui-table tbody td {
        text-align: left !important;
        border: 0 !important;
        border-bottom: 1px solid var(--panel);
        position: relative;
        padding: 8px 10px;
        min-height: auto;
        white-space: normal;
        word-break: break-word;
    }

    .tui-table tbody td:last-child {
        border-bottom: 0 !important;
    }

    .tui-table tbody td::before {
        content: none !important;
    }

    .tui-table td a {
        color: var(--purple);
    }
}

/* ================================
 * FOOTER
================================ */
 
.tui-statusbar {
    width: 100%;
    background-color: var(--bg);
    padding: 0px 1px;
    left: 0px;
    bottom: 0px;
    z-index: 9;
    position: fixed;
    color: var(--text);
    font-size: 13px;
    white-space: nowrap;
}

.tui-statusbar ul {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    min-width: max-content;
    padding: 0 16px;
}

.tui-statusbar ul li {
    display: inline-block;
    flex-shrink: 0;
    margin-left: 0;
    padding: 10px 0;
    font-size: inherit;
}

.tui-statusbar ul li a {
    user-select: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.tui-statusbar-divider {
    border-right: 2px var(--text) solid;
    width: 0;
    height: 1.2em;
    margin: 0 0.4em;
    display: inline-block;
    vertical-align: middle;
}

@media (max-width: 380px) {
    .home-panel {
        white-space: normal;
        text-align: center;
        padding: 1.2rem;
        min-width: 280px;
    }
}