﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

@font-face {
    font-family: 'DroidSansMono';
    src: url('../fonts/droid-sans-mono.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

html, body {
    font-family: 'Exo 2', sans-serif;
    font-size: 1em;
    /*background: #333333;
    color: #fff;*/
    height: 100%;
    background-attachment: fixed;
}

.font-mono {
    font-family: 'DroidSansMono', monospace;
}

div {
    user-select: none;
}

:root {
    --kl-nav-bar-h: 44px;
    --kl-bg-dark: #1b1c3a;
    --kl-bg-on-dark: #2c2e6a;
    --kl-bg-on-dark-2: #4b4fb4;
    --kl-dark-disabled: #9395d2;
    --kl-light-disabled: #365b81;
    --kl-color-lightning: #90fff3;
    --kl-color-green: #3cf281;
    --kl-color-dark-green: #087733;
    --kl-dark-primary: #421782;
    --kl-dark-secondary: #a21179;
    --kl-bg-success: #0ca747;
    --kl-neg-rate: #6f1117;
    --kl-zero-rate: #806000;
    --kl-pos-rate: #087733;
}

.oi-arrow-right {
    display: flex;
    align-items: center;
    margin-top: -2px;
}

.btn.disabled, .btn:disabled, fieldset:disabled .btn {
    background-color: hsl(261 20% 49% / 1);
    border-color: hsl(261 20% 49% / 1);
    opacity: .55;
}

.recipe-dd-button {
    display: flex;
    min-width: 40px;
    justify-content: space-between;
    align-items: center;
    min-height: 36px;
}

.dropdown-menu {
    --bs-dropdown-bg: #30115e;
    --bs-dropdown-link-hover-bg: #ea39b8;
}

@media (max-width: 640.98px) {
    .dropdown-menu {
        position: fixed;
        top: 70px;
        bottom: 20px;
        left: 20px;
        right: 20px;
        overflow-y: auto; /* Enable vertical scrolling */
        max-height: calc(100% - 100px); /* 100% screen height minus 200px for top and bottom padding */
        margin: auto; /* Center the dropdown menu */
        width: auto; /* Override Bootstrap's default width: 10rem; */
    }
}

.time-bar {
    background-color: #2c2e6c;
    z-index: 200;
}

@media (max-width: 640.98px) {
    .time-bar {
        position: fixed;
        z-index: 1024;
        left: 0;
        bottom: 0;
        width: 100%;
        background-color: #2c2e6c;
        height: 46px;
        padding: 4px;
        display: flex;
        justify-content: space-between;
    }
}

@media (min-width: 641px) {
    .time-bar {
        position: fixed;
        bottom: 0;
        width: 100%;
    }
}

.time-bar-row {
    padding: 6px;
}

.time-bar-row > button {
    padding: 0px 4px;
    font-size: small;
}

.time-progress-bar {
    width: 200px;
    background-color: var(--kl-bg-on-dark);
    height: 4px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Style for the inner progress bar that animates */
.time-progress {
    height: 100%;
    background-color: var(--kl-dark-secondary);
    width: 0;
    border-radius: 4px;
    animation: fill 3s infinite;
    animation-timing-function: linear;
}

/* Keyframes for the animation */
@keyframes fill {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

.dropdown-item {
    color: #fff;
}

.dropdown-item:hover {
    color: #32fbe2;
}

.dd-icon-line {
    display: flex;
    align-items: stretch;
}
.dd-icon-line > div.kl-item, .dd-icon-line > .oi {
    margin-right: 4px;
}
button.reset {
    background: none;
    color: inherit;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    outline: inherit;
}

.card {
    border-radius: 10px;
    border-width: 0px;
    border-radius: 10px;
    background-color: var(--kl-bg-dark);
}
.card-header {
    padding-top: .2rem;
    padding-bottom: .2rem;
    border-radius: 10px 10px 0 0 !important;
}
.card-body {
    border-radius: 10px;
}
.bg-dark {
    background-color: var(--kl-bg-dark) !important;
}
.kl-bg-dark-header {
    background-color: var(--kl-dark-primary);
    border-radius: 10px 10px 0 0;
}

.bg-debug {
    background-color: var(--kl-bg-on-dark);
    background-image: linear-gradient(
        45deg,
        rgba(255,255,255,.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255,255,255,.15) 50%,
        rgba(255,255,255,.15) 75%,
        transparent 75%,transparent);
    background-size: 4rem 4rem;
}
.kl-row {
    padding: 2px;
}

.bg-alternate div.kl-row:nth-child(odd) {
    background-color: var(--kl-bg-dark);
}

.factory-table td {
    white-space: nowrap;
}

.stats-list {
    display: flex;
    flex-direction: column;
}
.bg-proc {
    background-color: var(--kl-dark-primary);
    background-image: linear-gradient( 45deg, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%,transparent);
    background-size: 4rem 4rem;
    border-radius: 10px 10px 0 0;
}
.bg-diag {
    background-color: var(--kl-dark-primary);
    background-image: linear-gradient( 45deg, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%,transparent);
    background-size: 4rem 4rem;
}
.proc-type-header {

}
.proc-item {
    display: flex;
    width: 100%;
    border-radius: 4px;
    margin-bottom: 4px;
    align-items: center;
}

.proc-row > span {
    margin: 0 16px 0 16px;
}
.proc-rec {
    width: 200px;
}
.proc-item > select, .proc-item > .dropdown {
    margin-right: 4px;
}
.proc-list {

}
.proc-power-row {
    background-color: var(--kl-bg-dark);
    border-radius: 4px;
    padding: 4px;
}
.proc-power-bar {
    margin: 4px 0;
}
.proc-power-name {
    max-width: 140px;
    min-width: 140px;
    color: #ffffff;
}
.proc-gear {
    margin: 0 16px;
}

.proc-counter {
    display: flex;
    background-color: var(--kl-bg-on-dark);
    padding: 4px;
    border-radius: 4px;
}
.proc-counter > button {
    font-size: .7rem;
    padding: 0 6px;
}

.proc-count {
    background-color: var(--kl-bg-on-dark-2);
    border-radius: 4px;
    margin: 0 4px;
    padding: 0 8px;
    text-wrap: nowrap;
    min-width: 60px;
    text-align: center;
}
.proc-assigned-count {
    font-size: 16px;
    font-weight: bold;
}
.proc-total-count {
    color: var(--kl-dark-disabled);
    font-size: 10px;
}
.it-q {
    background-color: #000;
    border-radius: 4px;
    padding: 4px;
    line-height: 1em;
    align-self: center;
}
.itr-q {
    font-size: 0.8rem;
}
.row-q {
    text-align: end;
    width: 80px;
}
.btn-kl-sm {
    padding: 0 6px;
}
.btn-kl-power {
    padding: 0 4px;
    text-shadow: none;
}
.btn-kl-power span {
    left: 1px;
}
.btn-x {
    background-color: var(--bs-red);
    padding: 2px 3px 5px 3px;
    display: flex;
    align-items: center;
}
.btn-x span {
    font-size: .6rem;
}
.supply-q {
    margin-top: 1px;
    margin-right: 4px;
    background-color: var(--kl-bg-on-dark-2);
    border-radius: 4px;
}

.offcanvas {
    background-color: var(--kl-bg-dark) !important;
}
.offcanvas-header {
    background-color: var(--kl-bg-on-dark) !important;
    font-size: 1.25em;
}

h1:focus {
    outline: none;
}

/*a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}*/

.dropdown-menu {

}

.btn-link {
    text-shadow: 0 0 1px var(--bs-secondary);
}

.content {
    padding-top: 1.1rem;
}

/*.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}*/

input[type=text], input[type=number] {
    background-color: var(--kl-bg-on-dark);
    border-color: var(--bs-info);
    border-radius: 4px;
    border-width: 2px;
    padding: 2px 4px 2px 4px;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

/* width */
::-webkit-scrollbar {
    width: 4px;
}

/* Track */
::-webkit-scrollbar-track {
    background: var(--kl-bg-dark);
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: var(--kl-bg-on-dark);
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: var(--bs-primary);
}

#blazor-error-ui {
    background: var(--kl-bg-dark);
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}
.unavail-content {
    display: flex;
    flex-direction: column;
    text-align: center;
    margin-top: 300px;
    align-items: center;
    font-size: 1.4em;
}
.bottom-links {
    display: flex;
    justify-content: center;
}
.bottom-links a {
    color: var(--bs-secondary);
    margin: 0 8px;
}

.kl-navbar {
    padding: 4px;
    background-color: #2c2e6c !important;
}
.navbar-toggler {
    margin-top: 4px;
    margin-bottom: 4px;
}
.login-row {
    display: flex;
    flex-direction: row;
    padding-right: 12px;
/*    padding-top: 10px;*/
}
.cloud-save-btn {
    margin-right: 10px;
    border-radius: 4px;
}
.right-pusher {
    margin-left: auto;
}
.push-rightmost {
    display: flex;
}
.push-rightmost > *:last-child {
    
    margin-left: auto;
}

.navbar-brand {
    font-size: 1.1rem;
    color: #FFF !important;
    padding-left: 12px;
}

.top-bar-title {
    display: flex;
    width: 100%;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
}
.mission-pin {
    display: flex;
    align-items: center;
}
.mission-pin > span:first-child {
    font-size: 12px;
}
.top-bar-row {
    display: flex;
    flex-direction: row;
}
.top-bar-row > div {
    background-color: var(--kl-bg-on-dark-2);
    border-radius: 4px;
    margin: 0 2px;
}
.top-bar-col {
    display: flex;
    flex-direction: column;
}
.top-bar-col > button {

}
.top-bar-energy {
    position: relative;
    background-color: var(--kl-bg-dark);
    border-radius: 4px;
    padding: 2px 4px;
}
.top-bar-energy-rate {
    font-size: .8em;
}
@media (max-width: 640.98px) {
    .top-bar-energy {
        margin-left: 10px;
    }
}

.unauth-top-bar {
    display: flex;
    position: fixed;
    top: 0px;
    width: 100%;
    z-index: 1;
    background-color: var(--kl-bg-on-dark);
    height: 50px;
    padding: 8px;
    justify-content: right;
    align-items: center;
}

article {
    margin-bottom: 80px;
}

section {
    margin-bottom: 20px;
    font-size: x-large;
}

.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23FFFFFF' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}


.modal-content {
    background-color: var(--kl-dark-primary);
    box-shadow: 0 0 2rem rgb(234 57 184);
}

.modal-body {
    font-size: 1.4em;
}
.modal-centered {
    text-align: center;
}

.modal-body > h4 {
    text-align: center;
}

.modal-footer {
    justify-content: center;
}

@media (max-width: 640.98px) {
    .modal-body {
        font-size: 1.2em;
        padding: 20px;
    }
}

.drawer-container {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
}

.tab {
    position: fixed;
    top: 10px; /* Adjust as needed */
    right: 10px; /* Adjust as needed */
    cursor: pointer;
    z-index: 1001; /* Above the drawer */
    /* Add more styles for your tab here */
}

.drawer {
    width: 250px; /* Adjust width as needed */
    height: 100%;
    position: fixed;
    top: 0;
    right: 0;
    background-color: white;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease-in-out;
    z-index: 1000; /* Below the tab */
    /* Add more styles for your drawer here */
}


.diff-row > div {
    font-size: .7em;
}

.tt-w {
    position: relative;
}

    .tt-w > span:first-child {
        visibility: hidden;
        position: absolute;
        width: 120px;
        bottom: 100%;
        left: 50%;
        margin-left: -60px;
        background-color: var(--bs-info);
        color: #fff;
        text-align: center;
        padding: 5px 0;
        border-radius: 6px;
        z-index: 100;
        pointer-events: none;
    }

.tt-w > span:first-child::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--bs-info) transparent transparent transparent;
}

.tt-en:hover > span:first-child {
    visibility: visible;
}

header.masthead {
    position: relative;
    margin-bottom: 3rem;
    padding-top: 8rem;
    padding-bottom: 8rem;
    background: no-repeat center center;
    background-color: #9456ff;
    background-size: cover;
    background-attachment: scroll;
    display: flex;
    justify-content: center;
}

.subheading {
    font-size: x-large;
}

header.masthead .page-heading, header.masthead .site-heading {
    text-align: center;
}

h1 {
    font-size: 3.5em;
}

h2 {
    font-size: xx-large;
    font-weight: bold;
    margin-bottom: 20px;
}

.btn-success {
    --bs-btn-bg: hsl(143deg 87% 40%) !important;
}

.site-heading {
    background-image: url(/assets/titles/title-large.png);
    width: 100%;
    height: 96px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    margin: 20px;
}
/* end index page */

.green {
    color: var(--kl-color-green);
}

.red {
    color: #FF3333;
}
.struck {
    color: var(--kl-dark-disabled);
    text-decoration: line-through;
    text-shadow: none;
}
.faded {
    color: var(--kl-dark-disabled);
}
.faded-on-light {
    color: var(--kl-light-disabled);
    text-shadow: none;
}
.highlight {
    color: var(--bs-secondary);
    text-shadow: 0 0 1px var(--bs-secondary) !important;
}
a.highlight:hover {
    color: var(--bs-success);
    text-shadow: 0 0 1px var(--bs-success) !important;
}

.progress2 {
    border-radius: 30px;
    background-color: var(--kl-bg-on-dark);
    width: 100%;
}

.progress-bar2 {
    height: 18px;
    border-radius: 30px;
    position: relative;
}

.progress-transition {
    transition: 0.4s linear;
    transition-property: width, background-color;
}

.progress-moved .progress-bar2 {
    background-color:var(--bs-primary) var(--bs-secondary);
}
.progress-tick {
    background: #7e80c9;
    position: relative;
    height: 8px;
    width: 2px;
    top: -6px;
}

.animated-progress {
    animation: progress linear;
    animation-iteration-count: infinite;
    /*animation-fill-mode: forwards;*/
}

.animated-progress-will-end {
    animation: progress linear;
    animation-fill-mode: forwards;
}

@keyframes progress {
    0% {
        width: 0%;
        /*background: #7000ff;*/
        background: var(--bs-secondary);
    }

    100% {
        width: 100%;
        background: var(--bs-secondary);
        box-shadow: 0 0 40px var(--bs-secondary);
    }
}

.progress-bar2-striped {
    background-image: linear-gradient(135deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);
    background-size: 1rem 1rem;
}

.progress-bar2-striped-2 {
    background-image: linear-gradient(
        135deg,
        rgba(0,0,0,.35) 25%,
        transparent 25%,
        transparent 50%,
        rgba(0,0,0,.35) 50%,
        rgba(0,0,0,.35) 75%,
        transparent 75%,
        transparent);
    background-size: 1rem 1rem;
}

.animated-stripes {
    animation: 1s linear infinite progress-stripes-ani;
}

@keyframes progress-stripes-ani {
    0% {
        background-position-x: -1rem;
    }
}

.btn-depend {
    box-shadow: 0 0 20px var(--bs-warning);
}
.kl-energy-badge {
    display: flex;
    background-color: var(--kl-bg-on-dark-2);
    border-radius: 4px;
    padding: 0px 2px;
    align-items: center;
    font-size: .8rem;
    width: 40px;
    justify-content: center;
}
.kl-energy-badge > * {
    margin: 2px;
}
.kl-item-badge {
    display: flex;
    background-color: var(--kl-bg-on-dark-2);
    border-radius: 4px;
    padding: 2px;
    flex-direction: column;
    align-items: center;
}
.kl-item-badge-owned {
    background-color: var(--kl-bg-success);
}
.kl-icon {
    display: inline-block;
}
.kl-item-xq {
    font-size: .8rem;
    /*padding-top: 3px;*/
}
.kl-item-q-row {
    background-color: var(--kl-bg-dark);
    border-radius: 4px;
    padding: 1px 2px 2px 2px;
    line-height: 1em;
    font-size: .8rem;
    display: flex;
    align-items: center;
    margin-left: 2px;
    margin-top: 2px;
}
.kl-item-p {
    padding-bottom: 2px;
}
.kl-item-q {
    
}
.kl-item-q > * {
    margin: 0 2px;
}
.iv-q {
    font-size: .8rem;
    border-radius: 4px;
    padding: 0 4px 0 4px;
    margin-bottom: 1px;
    background-color: var(--kl-bg-on-dark);
}

.position-bottomcenter {
}

.kl-toast {
    display: flex;
    justify-content: center;
    font-size: .9em;
}
.toast-msg {
    background-color: #573591;
    border-radius: 4px;
    padding: 6px;
    font-size: smaller;
}

.loading-content {
    display: flex;
    flex-direction: column;
    text-align: center;
    margin-top: 300px;
    align-items: center;
}
.loading-gremlin {
    background-image: url(/assets/gremlin/dance-rainbow.gif);
    background-size: cover;
    width: 192px;
    height: 32px;
    background-repeat: no-repeat;
}
.loading-text {
    font-size: xx-large;
}

.signup-content {
    display: flex;
    flex-direction: column;
    text-align: center;
    margin-top: 300px;
    align-items: center;
}
.signup-content > * {
    margin-bottom: 10px;
}
.signup-content > span {
    font-size: 1.4rem;
}
.signup-content > input[type=text] {
    font-size: 1.6rem;
    text-align: center;
}
        /*.navbar-brand, .nav-link, .active {
    color: #32fbe2;
}

.navbar-nav .nav-link.active, .navbar-nav .show > .nav-link {
    color: var(--bs-navbar-active-color);
}*/

.toaster-wrapper {
    z-index: 2000;
    margin-top: calc(var(--kl-nav-bar-h) + 14px);
    position: fixed !important;
    width: 250px;
}
.toaster-wrapper > div {
    margin-bottom: 8px;
}

/* BS Top Modal Hacking */
.toast > .d-flex {
    justify-content: center;
}

.d-flex > button {
    display: none;
}

.noti-content {
    text-align: center;
    font-size: 1.2em;
    padding: 4px !important;
}
.center-row-items {
    display: flex;
    align-items: center;
    flex-direction: row;
}
.m2 > * {
    margin: 2px;
}
.mw2 > * {
    margin: 0 2px;
}
.mb2 > * {
    margin-bottom: 2px;
}
.center-col-items {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.kl-toast-container {
    display: flex;
    flex-direction: column;
    position: fixed;
    z-index: 1;
    bottom: 0;
    width: 100%;
    pointer-events: none;
    align-items: center;
}
.kl-toast {
    position: fixed;
    flex-direction: row;
    animation: toast-rise 1.4s forwards;
    animation-timing-function: ease-out;
    box-shadow: none !important;
    justify-content: center;
    /*width: 100px !important;*/
    margin-bottom: 0.25rem !important;
    pointer-events: none;
    align-items: center;
}

.kl-toast-sub {
    background-color: var(--bs-primary);
    border-radius: 4px;
    margin-right: 4px;
    display: flex;
    align-items: center;
    padding: 2px 8px 2px 8px;
}

.kl-red {
    color: #FF0000;
    text-shadow:
        0 0 1px rgb(255 0 0 / 30%),
        0 0 2px rgb(255 0 0 / 30%),
        0 0 5px rgb(255 0 0 / 20%);
}
.kl-q {
    margin-left: 4px;
    white-space: nowrap;
}

@keyframes toast-rise {
    0% {
        opacity: 0;
        bottom: -60px;
    }
    25% {
        opacity: 1;
        bottom: 20px;
    }
    75% {
        opacity: 1;
        bottom: 20px;
    }
    100% {
        opacity: 0;
    }
}

.xp-badge {
    font-size: .8rem;
    background-color: var(--bs-primary);
    display: flex;
    align-items: center;
    border-radius: 4px;
    padding: 0 2px;
}
.xp-badge > * {
    margin: 0 1px;
}
.btn-power {
    padding: 4px 8px;
}
.btn-bm {
    font-size: .7rem;
    padding: 1px 8px;
}
.btn-bm {

}
.skill-level-check {
    margin-right: 20px;
}
.side-link-noti-highlight {
    animation: blink 1s infinite;
    box-shadow: 0 0 2px rgb(234 57 184 / 90%), 0 0 4px rgb(234 57 184 / 40%), 0 0 1rem rgb(234 57 184 / 30%), 0 0 4rem rgb(234 57 184 / 10%);
}
.side-link-noti-activity .nav-link {
    color: var(--bs-green);
}
button.side-link-noti-activity {
    background-color: #11893f;
}

@keyframes blink {
    0% {
        box-shadow: 0 0 0 0, 0 0 0, 0 0 0 0, 0 0 0 0;
    }
    100% {
        box-shadow: 0 0 2px rgb(234 57 184 / 90%), 0 0 4px rgb(234 57 184 / 40%), 0 0 1rem rgb(234 57 184 / 30%), 0 0 4rem rgb(234 57 184 / 10%);
    }
}

.kl-link {
    padding: 0px;
    margin-bottom: 4px;
}
.bg-dark-2 {
    background-color: #1e1f48;
}

.kl-gear-active {
    animation: rotate 2s infinite linear;
    color: var(--kl-color-green);
    text-shadow: none;
}
.kl-gear-ready {
    color: var(--bs-orange);
    text-shadow: none;
}
.kl-gear-off {
    color: var(--bs-red);
    text-shadow: none;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}
/***** Recipes *****/
.recipe-header {
    color: #fff;
}
.recipe-header > * {
    margin: 0 2px;
}
.recipe-name {
    margin-right: 6px;
}
.recipe-but-list {
    display: flex;
    flex-wrap: wrap;
}
.recipe-but-list button {
    margin: 2px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.recipe-card {
    border-radius: 4px;
}

.recipe-sub {
    font-size: small;
}

.recipe-level-req-list {
    display:flex;
    flex-direction: column;
}

.recipe-req-list, .recipe-reward-list {
    width: 300px;
}

.recipe-req-list, .recipe-reward-list > div {
    border-radius: 4px;
    padding: 0 4px 0 4px;
    margin-bottom: 4px;
}

.recipe-req-list > div {
    background-color: var(--kl-bg-dark);
}

.recipe-reward-list > div {
    background-color: var(--kl-dark-secondary);
}
.recipe-info-row {
    margin-bottom: 8px;
}
.recipe-but-col {
    display: flex;
    align-items: end;
    justify-content: end;
}
.recipe-but-col-center {
    display: flex;
    align-items: center;
    justify-content: center;
}
.recipe-icons {
    background-color: var(--kl-bg-on-dark);
    border-radius: 4px;
    padding: 4px;
}
.action-button {
    font-size: .7rem;
    padding: 4px;
}
.action-bank-row {
    display: flex;
    justify-content: right;
}
.tiny-bar {
    width: 100%;
}
.effect-inactive-message {
    color: var(--bs-danger);
    text-align: center;
}

@media (max-width: 640.98px) {
    .card-body {
        /*padding: 10px 4px;*/
    }
    .recipe-header {
        display: flex;
        padding: 2px var(--bs-card-spacer-x);
        justify-content: space-between;
    }

    .recipe-req-list, .recipe-reward-list {
        width: 100%;
    }

    .recipe-but-col {
        display: flex;
        align-items: end;
        justify-content: center;
    }
}

.xp-header {
    padding: 8px 20px;
}
.xp-row {
    display: flex;
    flex-direction: row;
    align-items: center;
}
.xp-row div:first-child {
    margin-right: 4px;
}
.xp-row div:last-child {
    margin-left: auto;
}
.prob-percent {
    background-color: var(--bs-primary);
    border-radius: 4px;
    padding: 4px;
    line-height: 1em;
    font-size: .8em;
}
.feedback-input {
    height: 512px;
}
.reward-cards {
    display: flex;
    flex-direction: row;
}
.kl-item-card {
    padding: 10px;
}
.kl-item-card-badge {
    display: flex;
    background-color: var(--kl-bg-on-dark-2);
    border-radius: 4px;
    flex-direction: column;
    align-items: center;
    padding: 24px;
    height: 80px;
}
.dep-list > span, .research-reward-list > div {
    background-color: var(--kl-bg-on-dark-2);
    border-radius: 4px;
    padding: 2px 4px;
    line-height: 1.6rem;
    margin-bottom: 2px;
}
.req-list, .reward-list {

}
.req-list > *, .reward-list > * {
    color: #FFF;
}
.req-list > div, .reward-list > div {
    border-radius: 4px;
    padding: 1px 4px 0 4px;
    margin-bottom: 8px;
}
.reward-list > div.kl-item {
    background-color: var(--kl-dark-secondary);
}
.reward-choose {
    background-color: var(--kl-bg-on-dark);
}
.reward-choose-header {
    color: var(--kl-color-green);
}
.reward-choose-bank {
    padding: 10px;
}
.reward-col {
    display: flex;
    justify-content: center;
}
.btn-choice {
    width: 100%;
}
.btn-check + .btn-choice:hover {
    background-color: var(--bs-info) !important;
}
.btn-check + .btn-choice {
    background-color: var(--kl-bg-on-dark-2);
}
.btn-check:checked + .btn-choice {
    background-color: var(--bs-success);
}
.req-row {
    position: relative;
}
.req-row > div {
    display: flex;
    flex-direction: row;
    align-items: center;
}
.req-met > .progress2 > .progress-bar2 {
    background-color: var(--kl-bg-success) !important;
}
.hi-text-row {
    /*background-color: transparent !important;*/
    position: relative;
    /*top: 28px;*/
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    z-index: 2;
}
.hi-text-left {
    display: flex;
    align-items: center;
    flex-direction: row;
}
.hi-progress, .hi-progress > div.progress-bar2 {
    border-radius: 4px !important;
    padding: 0 !important;
    height: 28px;
}
.hi-progress {
    position: absolute;
    z-index: 1;
    width: 100%;
    top: 0px;
    left: 0px;
}
/***** Missions *****/
.mission-panel {
    /*background-color: var(--kl-bg-dark);*/
    display: flex;
    flex-direction: column;
    padding: 10px;
}

.mission-can-complete-header {
    background-color: var(--kl-bg-success);
}

.mission-row {
    background-color: var(--kl-bg-on-dark);
    border-radius: 10px;
    padding: 10px;
    margin: 0 0 8px 0;
}

.mission-name {
    font-weight: bold;
}

.mission-desc {
    margin-bottom: 4px;
    background-color: var(--kl-bg-on-dark);
    padding: 0 4px 0 4px;
    border-radius: 4px;
}

.mission-desc-complete {
    font-size: 1.2rem;
}
.mission-sub {
    font-size: small;
}

.mission-list {
    width: 100%;
}

.right-align {
    justify-content: end;
}

.noti-link {
    cursor: pointer;
}

.color-fulfilled {
    color: var(--kl-dark-disabled);
}

.mission-completed-header {
    margin-bottom: 4px;
    color: var(--bs-body-color);
}
.mission-completed {
    border-radius: 4px;
    background-color: var(--kl-bg-on-dark);
    margin-bottom: 2px;
    padding: 2px 10px;
    color: var(--kl-dark-disabled);
    justify-content: space-between;
    align-items: center;
    display: flex;
}
.mission-tags-row {
    padding: 10px;
    background-color: var(--kl-bg-on-dark);
    border-radius: 4px;
    margin-bottom: 8px;
}
.mission-tags-row > label {
    margin: 0 2px 0 2px;
}

.open-slot {
    background-color: var(--kl-bg-on-dark);
}

/***** Gadgets *****/
.gadget-row {
    
}

.sparkle {
    border-color: var(--bs-secondary);
    border-width: 1px;
    box-shadow: 0 0 24px var(--bs-secondary);
    animation: pulse 2s linear infinite;
}
.sparkle:hover {
    border-color: var(--bs-secondary);
    box-shadow: 0 0 24px var(--bs-danger);
}
.sparkle:active {
    border-color: var(--bs-secondary);
    border-width: 1px;
    box-shadow: 0 0 24px #fff;
}

@keyframes pulse {
    0% {

    }
    50% {
        box-shadow: 0 0 24px var(--bs-primary);
    }
    100% {

    }
}

svg#lightning {
    align-self: center;
    width: 100%;
    height: 40px;
    /*outline: 1px dashed rgba(255,255,255,.3);*/
}

svg#lightning path {
    stroke: var(--kl-color-lightning);
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

#glow feDropShadow {
    flood-color: #8dfff3;
}

.sticky-top {
    position: sticky;
    z-index: 1020;
    background-color: var(--kl-bg-dark);
    width: 100%;
    color: #fff;
}
.inv-attr-row {
    display: flex;
    flex-wrap: wrap;
}
.inv-attr-row > label {
    margin: 2px;
    padding: 1px 10px;
}
.inv-attr-row > .btn-check:checked+.btn {
    background-color: var(--bs-secondary);
}
.inv-row {
    padding: 4px;
    margin: 4px;
}
.inv-col {
    padding: 0;
}
.inv-title {
    margin-bottom: 10px;
}
.inv-title > h4 {
    margin-left: 4px;
}
.inv-desc {
    
}
.inv-detail {
    margin-bottom: 4px;
}
.consume-items-list {

}
.sticky-top h5 {
    font-size: 1em;
    white-space: nowrap;
}

@media (max-width: 640.98px) {
    .sticky-top {
        font-size: .9em;
    }
    .inv-desc {

    }
}
#network {
    width: 1000px;
    height: 800px;
    border: 1px solid #fff;
}

@media (max-width: 640.98px) {
    .energy-bar {
        padding: 10px;
    }
}

.ef-but {
    padding: 6px;
    width: 100%;
}

.ef-list {
    padding: 4px;
}
.ef-row {
    display: flex;
}
.ef-row > div {
    height: fit-content;
    align-self: center;
}
.rate {
    font-size: .8rem;
}
.change-neg {
    color: var(--bs-red);
}
.change-zero {
    color: var(--bs-orange);
}
.change-pos {
    color: var(--kl-color-green);
}
.change-none {
    color: #cccccc;
}
.neg-rate {
    background-color: var(--kl-neg-rate) !important;
}
.zero-rate {
    background-color: var(--kl-zero-rate) !important;
}
.pos-rate {
    background-color: var(--kl-pos-rate) !important;
}
.kl-sm-panel {
    background-color: var(--kl-bg-on-dark-2);
    border-radius: 4px;
    padding: 6px;
}

.pos-energy {
    color: #80ffb0;
    background-color: #0a8f3d;
}
.zero-energy {
    color: #cccccc;
    background-color: #666666;
}
.neg-energy {
    color: #ff9999;
    background-color: #690707;
}
.pos-energy-rate {
    color: #80ffb0;
    background-color: var(--kl-bg-on-dark);
}

.zero-energy-rate {
    color: #cccccc;
    background-color: var(--kl-bg-on-dark);
}

.neg-energy-rate {
    color: #ff9999;
    background-color: var(--kl-bg-on-dark);
}

.icon-container {
    position: relative;
    display: inline-block;
    width: 14px;
    height: 14px;
    text-shadow: none;
}

.icon-container .oi {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.icon-underneath {
    z-index: 1;
    font-size: 1rem;
    color: #fff;
}
.pos-energy .icon-underneath {
    color: #99ff99;
}

.neg-energy .icon-underneath {
    color: #ff9999;
}

.icon-on-top {
    z-index: 2;
    font-size: 1.1rem;
    padding-left: 2px;
}

.neg-energy .icon-on-top {
    color: #CC0000;
}

.pos-energy .icon-on-top {
    color: #00CC00;
}

.research-col {
    /*width: 50%;*/
    overflow: scroll;
}

.research-row {
    display: flex;
    margin-bottom: 40px;
    flex-direction: row;
}

.research-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0 8px;
    justify-content: flex-end;
    width: 80px;
    min-width: 80px;
    max-width: 80px;
}

.research-btn {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background-color: var(--kl-bg-dark);
    /*border-radius: 4px;
    text-align: center;
    align-content: center;
    flex-wrap: wrap;*/
}

.research-block-sel {
}

#lines {
    position: relative;
    top: -64px;
    left: -35px;
    z-index: -1;
}

#lines-svg {
    position: absolute;
}

/* Screen */
@media (min-width: 641px) {
    .puzzle {
        width: 100%;
    }

    .grid-puzzle {
        max-width: 600px;
        margin: auto;
    }

    .grid-puzzle > .row {
        padding: 0px;
    }

    .grid-puzzle > .row > .col {
        padding: 0px;
    }

    .grid-square {
        width: 100%;
        /*padding: 4px;*/
        border: solid 1px var(--kl-bg-on-dark-2);
    }

    .grid-btn {
        width: 100%;
        padding: 0px;
        padding-bottom: 100%;
        position: relative;
        background-color: var(--kl-bg-on-dark);
    }

    .grid-content {
        position: absolute;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100%;
        width: 100%;
    }
}
.grid-btn:disabled, .grid-btn.disabled {
    color: var(--bs-warning);
}
.disabled-final {
    color: #07070e !important;
    background-color: #07070e !important;
}
.disabled-item {
    color: var(--bs-success) !important;
    opacity: 1 !important;
    background-color: var(--kl-color-green) !important;
}
.disabled-bomb {
    color: var(--bs-warning) !important;
    opacity: 1 !important;
    background-color: var(--bs-warning) !important;
}
.disabled-empty {
    color: #1b1c41 !important;
    opacity: 1 !important;
    background-color: #1b1c41 !important;
}
.same-rc {
    background-color: var(--kl-bg-on-dark);
}