/* w3 overrides */

.w3-button, .w3-bar-item {
    padding: 0.4em 0.8em;
}

.w3-margin {
    margin: 0.8em !important
}

.w3-margin-top {
    margin-top: 0.8em !important
}

.w3-margin-bottom {
    margin-bottom: 0.8em !important
}

.w3-margin-left {
    margin-left: 0.8em !important
}

.w3-margin-right {
    margin-right: 0.8em !important
}

.w3-bordered tr {
    border-bottom: 0.05em solid #ddd
}

.w3-striped tbody tr:nth-child(even) {
    background-color: #f1f1f1
}

.w3-bordered th {
    height: 2em;
    padding: 0.4em 1em 0 1em;
}

.w3-bordered td {
    height: 2em;
    padding: 0 0 0 0;
    padding-left: 0.8em;
}

.w3-table td:first-child, .w3-table th:first-child {
    padding-left: 0.3em;
}

.w3-padding {
    padding: 0.4em 0.8em !important;
}


/*main*/

body {
    background-color: rgb(243, 243, 243);
}

.text-caption {
    font-size: larger
}

table {
    white-space: normal;
    line-height: normal;
    font-weight: normal;
    font-style: normal;
    text-align: start;
    font-variant: normal;
}

td {
    vertical-align: middle !important;
}

.legendary {
    color: rgb(245, 119, 13);
}

.effect {
    margin-bottom: 0.8rem;
}

.current {
    background-color: orange !important;    
}

.current-hero {
    background-color: rgb(39, 234, 17) !important;
}

.progress-text {
    position: absolute;
    top: 5%;
    left: 0.5em;
    bottom: 0%;
    color: white;
    max-width: calc(100% - 1em);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.progress-bar {
    margin-top: 0.05em;
    position: relative;
    background-color: rgb(12, 101, 173);
    width: 100%;
    min-width: 11em;
    overflow: hidden;
}

.progress-fill {
    height: 1.6em;
    background-color: rgb(46, 148, 231);
}

.progress-bar-hero {
    margin-top: 0.05em;
    position: relative;
    background-color: rgb(108, 59, 59);
    width: 100%;
    min-width: 11em;
    overflow: hidden;
}

.progress-fill-hero {
    height: 1.6em;
    background-color: rgb(165, 60, 21);
}

.progress-bar-finished {
    margin-top: 0.05em;
    position: relative;
    background-color: rgb(165, 60, 21);
    width: 100%;
    min-width: 11em;
    overflow: hidden;
}

.progress-fill-finished {
    height: 1.6em;
    background-color: rgb(212, 80, 30);
}

.hidden {
    display: none !important;
}

.hiddenTask {
    display: none !important;
}

.button {
    border: 0.1em groove black !important;
}

.button-no-button {
    color: white !important;
    border: 0 !important;
    width: 100%;
    text-align: left;
}

.button-no-button:hover {
    cursor: pointer; 
}

.item-button {
    background-color: white;
    text-align: center;
    width: 93%;
    height: 1.8em;
    padding: 0;
}

.item-button:hover {
    cursor: pointer;
    background-color: rgb(192, 192, 192);
}

.item-header-row:hover {
    cursor: pointer;    
}

button:focus {
    outline: none;
}

.scroll {
    overflow-y: auto;    
}

.tooltip, .tooltip-pointer {
    position: relative;
    display: inline-block;
}

.challenge-title {
    color: red;
    border-bottom: 0.1em solid red;
    padding-bottom: 0.4em;
    margin-bottom: 0.4em;
}

.challenge {
    border: 0.1em solid red;
}

.game-paused {
    border: 0.1em solid blue;
}

.dark-matter-title {
    color:gold;
    border-bottom: 0.1em solid goldenrod;
    padding-bottom: 0.4em;
    margin-bottom: 0.4em;
}

.metaverse-title {
    color: rgb(24, 210, 217);
    border-bottom: 0.1em solid rgb(24, 210, 217);
    padding-bottom: 0.4em;
    margin-bottom: 0.4em;
}
  
.tooltip .tooltipText {
    visibility: hidden;
    width: 25em;
    background-color: black;
    color: #fff;
    text-align: center;
    padding: 0.5em 0.5em;

    border-style: solid;
    border-width: 3px;
    border-color: rgb(92, 92, 247);
    border-radius: 6px;

    /* Position the tooltip */
    position: absolute;
    z-index: 1;
    top: 0;
    left: 102%;
    width: 32em;

    opacity: 0;
    transition: opacity 0.5s;
}

.tooltip:hover .tooltipText {
    visibility: visible;
    opacity: 0.8;
}

.tooltip-pointer .tooltipText-pointer {
    visibility: hidden;
    width: 20em;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 0.5em;
    padding: 0.5em 0.5em;
    /* Position the tooltip */
    position: absolute;
    z-index: 1;
    top: 0;
    left: 5%;       
    opacity: 0;
    transition: opacity 0.5s;
}

.tooltip-pointer:hover .tooltipText-pointer {
    visibility: visible;
    opacity: 0.8;
}

.sidebar-element {
    margin-bottom: 0.8em;
}

.slidecontainer {
    width: 100%;
}

.inline {
    display: inline-block;
}

.panel {
    background-color: white;
}

.small-margin  {
    margin-bottom: 0.1em;
}

.heading {
  position: relative;
}

.header img {
  position: static;
  float: left;
  width: 36px;
  height: 36px;
}

.header h1 {
  position: static;
  top: 2px;
  left: 10px;
}

.row {
    display: flex;
    align-items: flex-start;
}

.column {
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: hidden;
    width: 100%;
}

.quick-bar {
    top: 0;
}

.tabs-tab-column {
    height: auto;
}

.tabs-main-column {
    height: auto;
    float: right;
    margin-bottom: 4em;
}

.plain-tab-column {
    height: auto;
}

.plain-main-column {
    height: auto;
    float: right;
    margin-bottom: 4em;
}

.page-column {
    height: auto;
}

.settings-main-column {
    height: auto;
    float: right;
    margin-bottom: 4em;
}

.baritem {
    width: 7em;
    height: auto;
    text-align: center;
}

.outer-circle {
    width: 1.7em;
    height: 1.7em;
    border-radius: 50%;
    border: solid 0.12em #ccc;    
}

.center-g-inside {
    display: grid;
    place-items: center;    
}


.inner-circle {    
    width: 80%;
    height: 80%;
    border-radius: 50%;
}

.selected {
    color: rgb(39, 234, 17)!important 
}

.reward {
    color: rgb(64, 237, 23);
    padding-bottom: 0.5em;
}

.perk {    
    border-style: solid;
    border-width: 0.1em;
    box-sizing: border-box;
    color: #FFFFFF;
    cursor: pointer;
    display: inline-block;
    font-size: larger;
    height: 4em;
    line-height: 1.5em;
    list-style: none;
    margin: 0;
    outline: none;
    padding: 0.5em 0.5em;
    position: relative;
    text-align: center;
    text-decoration: none;
    transition: color 100ms;
    vertical-align: baseline;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    margin: 0.6em 0.7em 0.6em 0.7em;    
}

.metaperk{
    background-color: #EA4C89;
}

.evilperk{
    background-color: rgb(220, 80, 80);
    height: 6em;
    width: 100%;
}
.evilperk:hover{
    background-color: rgb(240, 0, 0);
}

.evilperkbought{
    background-color: rgb(100, 0, 0);
}

.evilperkbought:hover{
    background-color: rgb(100, 0, 0);
}

.evilperkoff{
    background-color: rgb(128, 128, 128);
}

.evilperkoff:hover{
    background-color: rgb(128, 128, 128);
}

.metaperk:hover {
    background-color: #F082AC;
}


.perk-grid {
    display: grid;
}

@media (min-width: 600px) {
  .perk-grid { grid-template-columns: repeat(2, 27em); }
}

.active-perk {
    background-color: green;
}

.active-perk:hover {
    background-color: #02bb11;
}

.perk-tool {
    background-color: #066182;
    height: 2.5em;
}

.perk-tool:hover {
    background-color: #0691c3;
}

.perk-locked, .perk-locked:hover{
    background-color: #3e3e3e;
}

.color-happiness {
    color: rgb(15, 105, 207);
}
.color-evil {
    color: rgb(240, 0, 0);
}
.color-essence {
    color: rgb(24, 210, 217);
}
.color-dark-matter {
    color: rgb(132, 99, 206);
}
.color-dark-orbs {
    color: rgb(143, 114, 207);
}
.color-time-warping {
    color: rgb(204, 34, 219);
}
.color-hypercubes {
    color: rgb(9, 160, 230);
}
.color-perk-points {
    color: rgb(217, 24, 119);
}
.color-income {
    color: lightgreen;
}

.perk-boost {
    margin: 0;
    padding: 0.2em 0.5em 1em 0.5em;
    height: 2em;
}

.perk-boost-cooldown, .perk-boost-cooldown:hover {
    background-color: #066182;
}

.perk-boost-active, .perk-boost-active:hover {
    background-color: #02bb11;
}

.button-transcend {
    background-color: #b8f4cb !important;
}

.button-transcend:hover {
    background-color: #cef5da !important;   
}

.button-evil {
    background-color: #f0b5b5 !important;
}

.button-evil:hover {
    background-color: #f2caca !important;
}

.rowtitle {
    padding: 0.3em 1em 0em 1em !important;
}

.congrats {
    margin-top: 1em;
    padding: 1em 1em 1em 1em !important;
    font-size: 320%;
    color: #d30202;
    text-align: center;
    border: 0.01em solid red;
    border-radius: 0.5em;
    animation: currency-rainbow 40s infinite;
}

.page {
    max-width: 800px;
}

/* Reality Break multiverse layer. Keeps the original dark UI base with richer accents. */
.rb-section-title {
    background: linear-gradient(90deg, #168aa5, #762b91);
    color: white;
    padding: 0.45em 0.7em;
    margin-bottom: 0.8em;
}

.rb-multiverse-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8em;
    margin-top: 1em;
}

.rb-stat-box {
    background-color: rgb(40, 40, 40);
    border: 1px solid rgb(73, 73, 73);
    padding: 0.7em 0.8em;
}

.rb-stat-box.mp { border-left: 0.35em solid #18d2d9; }
.rb-stat-box.void { border-left: 0.35em solid #9b5cff; }
.rb-stat-box.gold { border-left: 0.35em solid #e5c100; }
.rb-stat-box.red { border-left: 0.35em solid #e63946; }

.rb-source-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8em;
    margin-top: 1em;
}

.rb-source-box {
    background-color: rgb(37, 37, 37);
    border: 1px solid rgb(73, 73, 73);
    padding: 0.75em 0.85em;
    min-height: 7.4em;
}

.rb-source-box.void { border-top: 0.25em solid #9b5cff; }
.rb-source-box.skills { border-top: 0.25em solid #18d2d9; }
.rb-source-box.dark { border-top: 0.25em solid #e63946; }
.rb-source-box.universe { border-top: 0.25em solid #e5c100; }

.rb-source-title {
    color: white;
    font-weight: bold;
}

.rb-source-value {
    color: #18d2d9;
    font-size: 1.35em;
    font-weight: bold;
    padding: 0.25em 0;
}

.rb-altar-preview {
    margin-top: 1em;
    padding: 0.8em;
    border-left: 0.35em solid #e5c100;
    background-color: rgb(40, 40, 40);
}

.rb-universe-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8em;
    margin-top: 1em;
}

.rb-universe-card {
    background-color: rgb(38, 38, 38);
    border: 1px solid rgb(73, 73, 73);
    padding: 0.8em;
    min-height: 11.5em;
}

.rb-universe-card.current {
    border-color: #18d2d9;
    box-shadow: inset 0 0 0 1px rgba(24, 210, 217, 0.2);
}

.rb-universe-card.unlocked {
    border-color: #3a8f55;
}

.rb-universe-card.locked {
    border-color: #6b3a42;
    opacity: 0.78;
}

.rb-universe-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.6em;
}

.rb-universe-name {
    font-weight: bold;
    color: white;
}

.rb-universe-rule {
    color: rgb(165, 165, 165);
    margin-top: 0.45em;
    min-height: 3.2em;
}

.rb-chip {
    display: inline-block;
    padding: 0.12em 0.45em;
    border: 1px solid currentColor;
    font-size: 0.9em;
    white-space: nowrap;
}

.rb-current { color: #18d2d9; }
.rb-unlocked { color: rgb(39, 234, 17); }
.rb-locked { color: #e63946; }
.rb-gold { color: #e5c100; }
.rb-void { color: #9b5cff; }

.rb-distortion-list {
    color: rgb(165, 165, 165);
    margin-top: 0.7em;
    line-height: 1.45;
}

.rb-distortion-list b {
    color: white;
}

.rb-upgrade-table {
    margin-top: 0.7em;
}

.rb-upgrade-table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.025);
}

.rb-upgrade-memory { color: #66ccff; }
.rb-upgrade-labor { color: #9cff9c; }
.rb-upgrade-echo { color: #d2b1ff; }
.rb-upgrade-abyss { color: #ff6b6b; }
.rb-upgrade-prism { color: #f2d06b; }
.rb-upgrade-dark { color: #b78cff; }
.rb-upgrade-cartography { color: #18d2d9; }
.rb-upgrade-constants { color: #ffb178; }

.rb-observer-stub {
    margin-top: 1em;
    padding: 0.8em;
    border: 1px solid #9b5cff;
    background-color: rgb(40, 40, 40);
}

.rb-observer-page {
    max-width: 980px;
}

.rb-observer-title {
    display: flex;
    justify-content: space-between;
    gap: 1em;
    align-items: flex-start;
    border-bottom: 0.1em solid rgb(73, 73, 73);
    padding-bottom: 0.8em;
    margin-bottom: 1em;
}

.rb-observer-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8em;
    margin-bottom: 1em;
}

.rb-observer-stat {
    background-color: rgb(38, 38, 38);
    border: 1px solid rgb(73, 73, 73);
    border-left: 0.35em solid #9b5cff;
    padding: 0.75em 0.85em;
}

.rb-observer-label {
    color: rgb(165, 165, 165);
    font-size: 0.9em;
}

.rb-observer-value {
    color: white;
    font-size: 1.35em;
    font-weight: bold;
    padding-top: 0.15em;
}

.rb-observer-note {
    color: rgb(165, 165, 165);
    font-size: 0.9em;
    margin-top: 0.25em;
}

.rb-observer-section {
    margin-top: 1em;
}

.rb-observer-command-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.7em;
}

.rb-observer-command {
    min-height: 6em;
    text-align: left;
    white-space: normal;
}

.rb-observer-command.active {
    border-color: #18d2d9 !important;
    color: white !important;
    background-color: rgb(45, 60, 65) !important;
}

.rb-observer-command span {
    color: rgb(165, 165, 165);
    font-size: 0.88em;
}

.rb-observer-subject-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8em;
}

.rb-observer-subject {
    background-color: rgb(38, 38, 38);
    border: 1px solid rgb(73, 73, 73);
    padding: 0.85em;
}

.rb-observer-subject.trash { border-left: 0.35em solid #777; }
.rb-observer-subject.common { border-left: 0.35em solid #c5c5c5; }
.rb-observer-subject.skilled { border-left: 0.35em solid #3fb950; }
.rb-observer-subject.rare { border-left: 0.35em solid #18d2d9; }
.rb-observer-subject.epic { border-left: 0.35em solid #9b5cff; }
.rb-observer-subject.legendary { border-left: 0.35em solid #e5c100; }

.rb-observer-subject-head {
    display: flex;
    justify-content: space-between;
    gap: 0.7em;
}

.rb-observer-universe {
    color: #18d2d9;
    border: 1px solid #18d2d9;
    padding: 0.1em 0.45em;
    align-self: flex-start;
}

.rb-rank.trash { color: #aaa; }
.rb-rank.common { color: white; }
.rb-rank.skilled { color: #3fb950; }
.rb-rank.rare { color: #18d2d9; }
.rb-rank.epic { color: #9b5cff; }
.rb-rank.legendary { color: #e5c100; }

.rb-observer-mini-row {
    display: flex;
    justify-content: space-between;
    gap: 0.7em;
    margin-top: 0.35em;
}

.rb-observer-mini-row span {
    color: rgb(165, 165, 165);
}

.rb-observer-meter {
    margin-top: 0.65em;
    height: 0.55em;
    border: 1px solid rgb(73, 73, 73);
    background-color: rgb(28, 28, 28);
}

.rb-observer-meter div {
    height: 100%;
    background-color: #9b5cff;
}

.rb-observer-actions {
    display: flex;
    gap: 0.45em;
    margin-top: 0.65em;
}

.rb-observer-watch-title {
    display: flex;
    justify-content: space-between;
    gap: 1em;
    align-items: flex-start;
    border-bottom: 0.1em solid rgb(73, 73, 73);
    padding-bottom: 0.8em;
    margin-bottom: 1em;
}

.rb-observer-watch-grid {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 0.8em;
}

.rb-observer-bot-sidebar {
    background-color: rgb(38, 38, 38);
    border: 1px solid rgb(73, 73, 73);
    padding: 0.75em;
}

.rb-observer-bot-stat {
    border-top: 1px solid rgb(58, 58, 58);
    margin-top: 0.45em;
    padding-top: 0.45em;
}

.rb-observer-bot-stat span {
    color: rgb(165, 165, 165);
}

.rb-observer-bot-stat b {
    display: block;
    color: white;
}

.rb-observer-bot-tabs {
    display: flex;
    background-color: rgb(38, 38, 38);
    border: 1px solid rgb(73, 73, 73);
    margin-bottom: 0.7em;
}

.rb-observer-bot-tabs div {
    padding: 0.45em 0.75em;
    border-right: 1px solid rgb(73, 73, 73);
    color: white;
}

.rb-observer-bot-tabs .active {
    background-color: #18d2d9;
}

.rb-observer-watch-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 0.8em;
}

.rb-watch-section-title {
    padding: 0.38em 0.65em;
    margin-top: 0.8em;
    margin-bottom: 0.55em;
    color: white;
    font-weight: bold;
}

.rb-watch-section-title:first-child {
    margin-top: 0;
}

.rb-watch-route-title { background-color: #18d2d9; }
.rb-watch-job-title { background-color: #4caf50; }
.rb-watch-skill-title { background-color: #c83792; }
.rb-watch-shop-title { background-color: #22a9c1; }
.rb-watch-evil-title { background-color: #e2323f; }
.rb-watch-multiverse-title { background-color: #762b91; }
.rb-watch-log-title { background-color: #607d8b; }

.rb-observer-bot-table th {
    color: white;
}

.rb-observer-bot-table td,
.rb-observer-bot-table th {
    border-color: rgb(65, 65, 65) !important;
}

.rb-observer-bot-row-active {
    background-color: rgb(46, 148, 231);
}

.rb-observer-bot-row-muted {
    color: rgb(135, 135, 135);
}

.rb-observer-watch-shop {
    border: 1px solid rgb(73, 73, 73);
    background-color: rgb(38, 38, 38);
}

.rb-observer-watch-shop-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 7em;
    gap: 0.6em;
    border-bottom: 1px solid rgb(58, 58, 58);
    padding: 0.45em 0.6em;
}

.rb-observer-watch-shop-row:last-child {
    border-bottom: 0;
}

.rb-observer-watch-shop-state-owned {
    color: #3fb950;
}

.rb-observer-watch-shop-state-waiting {
    color: rgb(165, 165, 165);
}

.rb-observer-decision-state {
    border: 1px solid rgb(73, 73, 73);
    background-color: rgb(38, 38, 38);
    padding: 0.6em 0.75em;
    margin-top: 0.8em;
}

.rb-observer-ai-log {
    border: 1px solid rgb(73, 73, 73);
    background-color: rgb(34, 34, 34);
    padding: 0.55em 0.7em;
    margin-top: 0.8em;
    min-height: 8em;
}

.rb-observer-ai-log div {
    border-bottom: 1px solid rgb(55, 55, 55);
    padding: 0.22em 0;
    color: rgb(210, 210, 210);
}

body.rb-observer-active #tabcolumn {
    border-color: #9b5cff;
}

body.rb-observer-active #maincolumn {
    box-shadow: 0 0 0 1px rgba(155, 92, 255, 0.25);
}

@media (max-width: 1100px) {
    .rb-observer-summary,
    .rb-observer-command-grid,
    .rb-observer-subject-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .rb-observer-title,
    .rb-observer-summary,
    .rb-observer-command-grid,
    .rb-observer-subject-grid,
    .rb-observer-watch-grid,
    .rb-observer-watch-content-grid {
        display: block;
    }

    .rb-observer-stat,
    .rb-observer-command,
    .rb-observer-subject,
    .rb-observer-bot-sidebar {
        margin-bottom: 0.7em;
    }
}
