:root {
    --color-bcg: 16, 11, 19;
    --color-element: 31, 26, 34;
    /* --color-element-secondary: 44, 39, 48; */
    --color-element-secondary: 36, 36, 36;
    --color-text: 255, 255, 255;
    /* --color-text: 237, 228, 246; */
    --color-text-dark: 8, 5, 10;
    --color-main: var(--color-text-dark);
    --color-secondary: 58, 132, 203;
    /* --color-accent: 133, 54, 206; */
    /* --color-accent: 240, 11, 20; */
    --color-accent: 10, 91, 201;
    /* --color-accent: 11, 191, 167; */
    /* --color-accent: 223, 64, 247; */
    --color-highlight: 59, 219, 198;
    --color-progress-open: var(--color-accent);
    --color-progress-closed: 128, 128, 128;
    --color-progress-spawned: 147, 112, 219;
    --color-warning: red;
    --top-bar-h: 60px;
    --top-gap-h: 150px;
    --top-gap-correction: var(--top-gap-h);
    --footer-h: 20px;
    --regular-font: PoeMono, sans-serif;
    --pixel-font: perfect-dos, sans-serif;
}

@font-face {
    font-family: perfect-dos;
    src: url("../fonts/PerfectDOS.6c838d8b6176.ttf");
}

@font-face {
    font-family: PoeMono;
    src: url("../fonts/PoeMonospace-dJJ6.7b90537c57f5.ttf");
}

.tabulator-cell {
    font-family: var(--regular-font) !important;
}

.tabulator-cell.overflow {
    overflow: visible !important;
}

.tabulator-cell:has(.progress-bar) {
    font-family: var(--pixel-font) !important;
}

.color-warning {
    color: var(--color-warning);
}

.standard-element {
    background-color: rgba(var(--color-element), 0.9) !important;
    color: rgb(var(--color-text));
    text-align: center;
}

.bubble-element {
    min-width: 20px;
    min-height: 20px;
    width: fit-content;
    box-sizing: border-box;
    padding: 0 5px;
    margin: auto 0;
    background: radial-gradient(
        rgba(var(--color-accent), 1) 40%,
        rgba(var(--color-accent), 0.8) 60%,
        rgba(var(--color-accent), 0.55) 80%);
    border-radius: 7px;
    font-size: 16px;
    line-height: 20px;
    color: rgb(var(--color-text));
    font-weight: bold;
    box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.7);
}

.standard-hover {
    transition: ease 0.8s;
}

.standard-hover:hover {
    color: rgb(var(--color-text)) !important;
    background-color: rgba(var(--color-accent), 0.5) !important;
    transition: ease 0.1s;
    text-shadow: 1px 1px 2px black;
}

.selected {
    background-color: rgb(var(--color-accent)) !important;
}

@keyframes fade-in {
    0% {
            opacity: 0;
            display: none;
        }
    }

    @keyframes fade-out {
        100% {
            opacity: 0;
            display: none;
        }
    }

    .rotate-90 {
        rotate: 90deg;
        transition: ease all .2s;
    }

    .rotate-45 {
        rotate: 45deg;
        transition: ease all .2s;
    }

    .hidden {
        display: none !important;
    }

body {
    background-color: rgb(var(--color-bcg));
    color: rgb(var(--color-text));
    background-image: url("../background/background.e76c1fde1211.avif");
    /* image-rendering: pixelated; */
    background-attachment: fixed;
    background-size: cover;
    background-position: 80% 10%;
    background-repeat: no-repeat;
    margin: 0;
    font-family: var(--pixel-font);
    font-weight: 400;
}

.top-bar {
    display: flex;
    width: 100%;
    height: var(--top-bar-h);
    top: 0;
    position: fixed;
    background-color: rgba(var(--color-element-secondary), 0.8);
    z-index: 2;
    image-rendering: auto;
    transition: ease all .8s;
}

.top-bar > * > * {
    transition: ease all .8s;
}

.title {
    font-family: 'Montserrat', sans-serif;
    font-size: 40px;
    letter-spacing: 40px;
    white-space: nowrap;
    padding: 0 20px;
    flex: 686px 1;
    max-width: max-content;
    transition: all ease 0.4s;
}

.subtitle {
    position: relative;
    text-align: center;
    transform: translatey(-6px);
    font-size: 12px;
    letter-spacing: 10px;
}

.top-bar-start, .top-bar-end {
    flex: calc(50% - 343px) 1;
}

.top-bar-end {
    height: 100%;
    display: flex;
    justify-content: end;
    align-items: center;
    margin: auto 10px auto auto;
}

.top-bar-end > div {
    margin: 0 10px;
}

.time-container {
    position: relative;
    width: fit-content;
    height: 56px;
    display: flex;
    flex-direction: row;
    text-shadow: 1px 1px 2px black;
    margin-left: 0 !important;
}

.clock-container {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    margin-left: 20px;
    font-family: monospace;
    font-weight: 700;
    text-wrap: nowrap;
}

.moon-phase {
    height: 100%;
    aspect-ratio: 1/1;
}

[data-moon-phase]:hover:after {
    transition: all 0.1s ease 0.2s;
    visibility: visible;
}

[data-moon-phase]:after {
    content: attr(data-moon-phase);
    background-color: rgba(var(--color-bcg), 0.5);
    font-size: 80%;
    font-weight: bold;
    padding: 1px 5px 2px 5px;
    white-space: nowrap;
    box-shadow: 1px 1px 3px #222222;
    border: 1px solid #111111;
    position: absolute;
    visibility: hidden;
    transform: translateX(-60%);
}

[data-moon-phase] {
    display: flex;
    justify-content: center;
    align-items: center;
}

.moon-icon {
    image-rendering: pixelated;
    height: 100%;
    opacity: 70%;
}

.theme-selector {
    height: var(--top-bar-h);
    width: var(--top-bar-h);
    box-sizing: border-box;
    background-color: rgb(var(--color-accent));
}

.theme-selector:hover {
    background-color: rgba(var(--color-accent), 0.7);
    transition: ease 0.15s;
}

.theme-dropdown {
    position: absolute;
    top: 100%;
    transform: translateX(calc(-30px + calc(var(--top-bar-h) / 2)));
    width: 58px;
    padding: 3px 1px 1px;
    /* display: flex; */
    flex-direction: column;
    background-color: rgba(var(--color-element), 1) !important;
    display: none;
    animation: fade-in 0.3s forwards;
}

.theme-dropdown input {
    display: none;
}

.theme-dropdown label {
    aspect-ratio: 1 / 1;
    margin: 3px;
    box-sizing: border-box;
    background-clip: content-box;
    transition: ease 0.1s;
}

.theme-dropdown input[type="radio"]:not(checked)+label:hover {
    padding: 4px;
    transition: ease 0.2s;
}

.theme-dropdown input[type="radio"]:checked+label {
    padding: 5px;
    outline: solid 3px rgba(var(--color-accent), 0.9);
}

.theme-dropdown input[type="radio"]:checked+label:hover {
    padding: 6px;
    outline: solid 3px rgba(var(--color-accent), 1);
    transition: ease 0.2s;
}

.theme-dropdown label[for=theme-blue] {
    background-color: rgba(10, 91, 201, 0.6);
    border-color: rgb(10, 91, 201);
}

:root:has(#theme-blue:checked) {
    --color-accent: 10, 91, 201;
}

.theme-dropdown label[for=theme-purple] {
    background-color: rgba(133, 54, 206, 0.6);
}

:root:has(#theme-purple:checked) {
    --color-accent: 133, 54, 206;
}

.theme-dropdown label[for=theme-red] {
    background-color: rgba(240, 11, 20, 0.6);
}

:root:has(#theme-red:checked) {
    --color-accent: 240, 11, 20;
}

.character-container {
    position: relative;
    height: var(--top-bar-h);
    width: var(--top-bar-h);
}

.character-image {
    height: inherit;
    position: absolute;
}

.character-menu {
    position: relative;
    z-index: 2;
    width: fit-content;
    min-width: 300px;
    max-width: 100%;
    padding: 10px 10px;
    transform: translate(calc(-100% + var(--top-bar-h)), var(--top-bar-h));
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
    font-size: 1.4rem;
    /* color: rgb(var(--color-text)); */
    /* border-bottom: 2px solid;
    border-color: rgba(var(--color-accent), 0.4); */
    /* font-family: var(--pixel-font); */
    background-color: rgba(var(--color-element-secondary), 0.8);
    transition: ease all .8s;
    display: none;
}

.character-menu-message {
    padding-top: 0.5rem;
    font-weight: 700;
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px black;
}

.character-menu-message:empty {
    display: none;
}

.character-menu {
    width: 100%;
    box-sizing: border-box;
}

.character-menu input[type=text], input[type=password] {
    padding: 8px 10px;
    margin: 5px 0;
    border: 2px solid black;
    font-size: 1.2rem;
}

.character-menu input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    height: 20px;
    background: rgba(var(--color-text), 0.8);
    opacity: 0.75;
    transition: opacity .4s;
    border: none;
    margin: 0;
}

.character-menu input[type=range]:hover {
    opacity: 1;
}

.character-menu input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: rgba(var(--color-accent), 1);;
    cursor: pointer;
  }

  .character-menu input[type=range]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: rgba(var(--color-accent), 1);
    cursor: pointer;
    border-radius: 0;
    border: none;
  }

.character-menu button {
    width: 100%;
    padding: 3px 0;
    font-size: 1.1rem;
    background-color: rgb(var(--color-element));
    color: rgb(var(--color-text));
}

.character-menu div{
    padding-bottom: inherit;
}

.maintenance-box {
    position: absolute;
    right:0;
    bottom:0;
    translate: 0 100%;
}

.main-box {
    width: 100%;
    min-height: calc(100dvh - var(--footer-h));
    display: flex;
    justify-content: center;
}

.side-bar {
    width: 222px;
    z-index: 1;
    margin-top: var(--top-gap-h);
    flex-shrink: 0;
    background-color: rgba(var(--color-element), 0.6);
    border-right: 2px solid;
    border-color: rgba(var(--color-accent), 0.4);
    max-height: calc(100% - var(--footer-h) - var(--top-bar-h));
    transition: ease all 0.4s;
}

.side-bar-collapsed {
    width: 0;
    opacity: 0;
    transition: ease all 0.4s;
}

.sidebar-on-top {
    position: fixed;
    height: 100%;
    margin-top: 0;
    top: max(var(--top-gap-correction), var(--top-bar-h));
    left: 0;
    background-color: rgba(var(--color-element), 0.85);
}

.sidebar-collapse-button {
    height: 100%;
    border-radius: 0;
    border: none;
    border-right: 2px solid rgba(var(--color-accent));
    font-weight: 900;
}

.side-bar-slider {
    position: sticky;
    top: var(--top-bar-h);
    align-items: start;
    transition: ease all .8s;
    z-index: 2;
    display: flex;
    flex-direction: column;
    border-top: 2px solid;
    border-color: rgba(var(--color-accent), 0.4);
    box-sizing: border-box;
    height: calc(100dvh - var(--top-gap-correction) - var(--footer-h));
    max-height: calc(100dvh - var(--footer-h) - var(--top-bar-h));
}

.nav-box {
    width: 100%;
    /* overflow: hidden; */
    background-color: rgba(var(--color-element), 0.3);
}

.nav-field {
    display: flex;
    justify-content: center;
    font-size: 24px;
    font-weight: 400;
    line-height: 33px;
    border-bottom: 1px solid rgba(var(--color-accent), 0.4);
    box-sizing: border-box;
    height: 33px;
    width: inherit;
}

.nav-field input {
    height: 100%;
    box-sizing: border-box;
    border-top: 0 !important;
    border-bottom: 0 !important;
}

.nav-field > button {
    flex: 1;
    cursor: pointer;
    border: 0;
    font-family: var(--pixel-font);
    letter-spacing: -2px;
    background-color: transparent;
    color: rgb(var(--color-text));
    transition: ease 0.4s;
}

.nav-field > button.active{
    background-color: rgba(var(--color-accent), 0.7);
}

.nav-field > button:hover {
    background-color: rgba(var(--color-accent), 0.2);
    transition: ease 0.1s;
}

.nav-field > button.active:hover {
    background-color: rgba(var(--color-accent), 0.35);
    transition: ease 0.1s;
}

.nav-dropdown {
    position: absolute;
    width: 222px;
    transform: translateY(30px);
    border-bottom: solid 1px rgba(var(--color-accent), 0.4);
    z-index: 2;
    max-height: calc(100dvh - var(--top-gap-h) + var(--footer-h));
    overflow-y: auto;
}

.world-selector-header {
    background-color: rgba(var(--color-accent), 0.7);
}

.world-selector-world-row-holder > div{
    border-left: 10px solid rgba(var(--color-accent), 0.7);
    border-bottom: 1px solid rgba(var(--color-accent), 0.2);
}
.world-selector-world-row-holder {
    border-top: 1px solid rgba(var(--color-accent), 0.2);
}

.world-selector-row {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    padding-left: 4px;
}

.world-selector-row-text {
  margin-right: auto;
  margin-left: 0;
  overflow: hidden;
  height: 100%;
  text-align: start;
  user-select: none;
}

.world-selector-filter-container {
    display: flex;
    flex-grow: 1;
    max-width: 84px;
}

.world-selector-filter {
    position: relative;
    flex-grow: 1;
    cursor: pointer;
    border: 0;
    font-family: var(--pixel-font);
    font-size: 24px;
    text-align: center;
    background-color: rgba(var(--color-element), 0.7);
    color: rgb(var(--color-text));
    letter-spacing: -3px;
    transition: ease 0.4s;
}

.world-selector-filter.active {
    background-color: rgba(var(--color-accent), 0.7);
}

.world-selector-filter:hover {
    background-color: rgba(var(--color-accent), 0.2);
    transition: ease 0.1s;
}

.world-selector-filter.active:hover {
    background-color: rgba(var(--color-accent), 0.35);
    transition: ease 0.1s;
}

input {
    border: 1px solid rgba(var(--color-accent), 1);
    background-color: rgba(var(--color-element), 0.35);
    color: rgb(var(--color-text));
}

input[type=number] {
    padding-left: 8px;
    width: 50px;
    font-size: 16px;
    font-weight: 600;
}

input[type=checkbox] {
    height: inherit;
    accent-color: rgb(var(--color-accent));
}

.event-space {
    width: 100%;
    height: 100%;
}

.table-space {
    width: 100%;
    display: grid;
    grid-gap: 10px;
    padding-top: var(--top-gap-h);
    padding-left: 5px;
    padding-right: 5px;
    box-sizing: border-box;
    min-width: 0;
}

.table-space>:nth-last-child(1 of :not(.hidden)) {
    min-height: calc(100dvh - var(--top-bar-h) - 32px - var(--top-gap-correction));
}

.world-label {
    margin: 10px auto 20px auto;
    max-width: calc(100% - 38px);
    min-width: 483px;
    width: 1063px;
    position: relative;
    background-color: rgba(var(--color-accent), 0.7);
    padding: 5px 10px;
    transform: translateX(-18px);
    box-sizing: border-box;
    font-size: 32px;
    line-height: 32px;
    transition: ease 0.8s;
    display: none;
}

.world-label:hover {
    background-color: rgba(var(--color-accent), 0.35);
    transition: ease 0.1s;
}

.server-arrow-down {
    transform: translate(5px, 2px) rotate(90deg);
    font-size: 32px;
}

.table-holder {
    margin: 0 auto;
    padding-right: 5px;
    padding-bottom: 10px;
    min-width: 365px;
    width: min(1100px, 100%);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: start;
    scroll-margin: var(--top-bar-h);
}

.timer-table {
    position: relative;
    height: fit-content;
    margin-left: auto;
    margin-top: 0;
    margin-bottom: 0;
    overflow: visible;
    max-width: calc(100% - 38px);
}

.tabulator .tabulator-tableholder, .tabulator-header {
    margin: 0;
    overflow: visible;
}

.tabulator, .tabulator-header, .tabulator-col {
    background-color: transparent !important;
    font-size: 1.1rem;
    font-weight: 100;
    border: 0;
}

.tabulator-col-content {
    background-color: rgba(var(--color-accent), 0.7);
    color: rgb(var(--color-text));
    padding: 0.75rem !important;
    text-align: center;
}

.tabulator-selectable {
    background-color: rgba(var(--color-element), 0.9) !important;
    color: rgb(var(--color-text));
    border-bottom: 2px solid;
    border-color: rgba(var(--color-accent), 0.4);
    transition: ease 0.8s;
    text-align: center;
    scroll-margin: 48px;
}

.tabulator .tabulator-row:hover:not(:has(.empty-section)){
    color: rgb(var(--color-text)) !important;
    background-color: rgba(var(--color-accent), 0.5) !important;
    transition: ease 0.1s;
    text-shadow: 1px 1px 2px black;
}

.tabulator .tabulator-row:hover:has(.empty-section) {
    color: rgb(var(--color-text)) !important;
    background-color: rgba(var(--color-element), 0.7) !important;
    transition: ease 0.8s;
}

.tabulator-cell:has(> .nameS-container) {
    padding: 2px;
}

.mark-sprite {
    height: 48px;
    image-rendering: pixelated;
}

.mark-sprite.map {
    position: absolute;
    visibility: visible !important;
    image-rendering: pixelated;
}

.mark-sprite.map.mark {
    transform: translate(-5%, -50%);
}

.mark-sprite.map.fate {
    transform: translate(0%, -30%);
}

.greyscale {
    filter: grayscale(100%);
}

.nameS-container {
    display: flex;
}

.nameS-container > div, .nameS-container > img {
    margin: auto auto auto 6px;
}

.nameplate {
    flex-grow: 1;
    min-width: 0;
    text-wrap: wrap;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;  
}

[data-countdown]:hover:after {
    transition: all 0.1s ease 0.2s;
    visibility: visible;
}

[data-countdown]::after {
    position: absolute;
    content: attr(data-countdown);
    background-color: rgba(var(--color-bcg), 0.5);
    color: rgb(var(--color-text));
    font-size: 80%;
    font-weight: bold;
    padding: 1px 5px 2px 5px;
    white-space: nowrap;
    box-shadow: 1px 1px 3px #222222;
    border: 1px solid #111111;
    border-radius: 7px;
    visibility: hidden;
    transform: translate(-50%, -120%);
    left: 50%;
}

.progress-bar {
    height: 20px;
    border: 2px solid; /* Border color is set dynamically based on window type */
    border-radius: 2px; /* Rounder corners */
    width: 100%; /* Full width */
    position: relative;
    box-shadow: 0 0 2px 1px black;
    background-color: rgba(var(--color-element), 0.65);
    display: flex;
    justify-content: center;
}

.progress-bar.open {
    border-color: rgb(var(--color-progress-open));
}

.progress-bar.closed {
    border-color: rgb(var(--color-progress-closed));
}

.progress-bar.spawned {
    border-color: rgb(var(--color-progress-spawned));
}

.progress-fill {
    margin-right: auto;
    height: 20px;
}

.progress-fill.open {
    background-color: rgba(var(--color-progress-open), 0.85);
}

.progress-fill.closed {
    background-color: rgb(var(--color-progress-closed));
}

.progress-bar.spawned {
    background-color: rgba(var(--color-progress-spawned), 0.85);
}

.progress-text {
    position: absolute;
    font-size: 1.25rem;
}

.astronomy-container {
    display: flex;
    align-content: center;
    position: relative;
    width: fit-content;
    margin-left: auto;
}

.science-progress-bar {
    position: absolute;
    bottom: -9px;
    width: 100%;
    height: 2px;
    border-bottom: 1px solid rgba(var(--color-accent), 0.7);
}

.science-progress-bar::before {
    content: '';
    width: 100%;
    height: 100%;
    padding: 10px;
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.science-progress-bar-fill {
    height: 100%;
    margin-right: auto;
    background-color: rgba(var(--color-progress-closed), 1);
    transition: all cubic-bezier(.65,.05,.36,1) 0.8s;
}

.science-progress-bar-fill-complete {
    background-color: rgba(var(--color-accent), 1);
}

.science-progress-bar-tooltip {
    opacity: 0;
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    background-image: radial-gradient(rgba(var(--color-element), 0.6) 0%, transparent 80%);
    padding: 8px;
    transition: all 0.4s;
}

.science-progress-bar:hover .science-progress-bar-tooltip {
    opacity: 1;
    transition: all 0.2s;
}

.astronomy-icon {
    position: relative;
    width: 21px;
    height: 17px;
    margin-right: 4px;
    margin-top: auto;
    margin-bottom: auto;
}

.astronomy-text {
    position: relative;
    font-size: 1rem;
    top: 10%;
    letter-spacing: -1px;
}

.science-progress-astronomy-text {
    position: absolute;
    width: inherit;
    display: flex;
    justify-content: center;
}

.science-progress-astronomy-text > .astronomy-text {
    position: relative;
    margin-left: auto;
}

.science-progress-astronomy-text > .progress-text {
    position: absolute;
}

.dropdown-content {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.empty-section {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    height: fit-content;
}

.empty-section .dropdown-content {
    width: 100%;
}

.dropdown-image {
    margin: 0;
}

.map-container {
    position: relative;
    flex-shrink: 0;
    width: 400px;
    height: 400px;
    cursor: default;
    overflow: hidden;
}

.map-canvas {
    cursor: default !important;
}

.info-container {
    flex-grow: 1;
    /* height: 400px; */
    max-width: calc(100% - 400px);
    min-width: 400px;
    cursor: default;
}

.info-buttons-container {
    display: flex;
    justify-content: space-evenly;
    box-sizing: border-box; 
    height: 60px;
    border: 1px solid rgba(var(--color-accent), 1);
    border-width: 1px 0 1px 0;
}

.info-buttons-container > button {
    flex-grow: 1;
    flex-basis: 0;
    transition: ease 0.4s;
    color: rgb(var(--color-text));
    background: none;
    border: solid rgba(var(--color-accent), 1);
    border-width: 0 1px 0 1px;
    cursor: pointer;
    font-family: var(--pixel-font);
    font-size: 24px;
}

.info-buttons-container > button:hover {
    background-color: rgba(var(--color-accent), 0.5);
    transition: ease 0.1s;
    text-shadow: 1px 1px 2px black;
}

.info-window-content {
    white-space: break-spaces;
    text-align: left;
    padding: 0 1rem 0.5rem;
    /* overflow-x: hidden; */
}

.info-content-header {
    text-align: center;
    font-size: 1.5rem;
    padding: 1rem 0 0.5rem;
}

.window-bar-area {
    width: 100%;
    height: 100%;
    min-height: 20px;
    display: flex;
    border-bottom: 1px solid rgba(var(--color-accent), 1);
}

.window-bar-assembly {
    flex-grow: 1;
    margin: 6px 3px;
    display: flex;
    flex-direction: column;
    flex-basis: 0;
}

.info-bar-label {
    border-left: 2px solid rgba(var(--color-progress-open), 0.85);
    padding-left: 8px;
}

.on-bar-label {
    position: absolute;
    padding-left: 10px;
    color: rgba(var(--color-text), 0.9);
    line-height: 26px;
    pointer-events: none
}

.window-bar {
    height: 25px;
    flex-grow: 1;
    background-color: rgba(var(--color-progress-open), 0.25);
    display: flex;
}

.window-astronomy-segment-holder {
    width: 100%;
    display: flex;
}

.window-astronomy-segment-active {
    background-color: rgba(var(--color-progress-open), 0.85);
    outline: 2px solid rgba(var(--color-progress-open), 0.5);
    outline-offset: -2px;
    transition: ease 0.4s;
}

.window-astronomy-segment-active:hover {
    transform: scale(1.1, 1.5) translateY(-10%);
    transition: ease 0.1s;
    z-index: 4; /* Must be higher than radial and spot buttons z-index */
}

.window-astronomy-segment-inactive {
    background-color: rgba(var(--color-element), 0.35);
}

.tooltip-parent {
    position: relative;
    display: inline-block;
  }

.tooltip-parent .tooltip {
    visibility: hidden;
    width: fit-content;
    min-width: 120px;
    background-color: rgba(var(--color-element), 1);
    border: 1px solid rgb(var(--color-accent));
    color: rgb(var(--color-text));
    font-size: 12px;
    text-align: center;
    padding: 3px 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip-parent:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

.dropdown-background {
    width: 100%; 
    height: auto; 
    z-index: -1;
}

.zone-button {
    font-family: var(--pixel-font);
    font-size: 18px;
    position: absolute;
    border: 1px solid rgb(var(--color-accent));
    width: 20px;
    height: 20px;
    top: 0;
    right: 0;
    z-index: 4;
    text-align: center;
    background-color: rgba(var(--color-element), 0.85);
}

.zone-button::before {
    content: "+";
    font-size: 42px;
    display: block;
    transform: translate(-55%, -30%);
    color: rgba(var(--color-text), 0.9);
}

.zone-button:hover {
    cursor: pointer;
}

/* .zone-button.active {
    background: grey radial-gradient(circle, dimgrey, slategrey);
} */

.time-select-menu {
    width: fit-content;
    height: 3em;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.time-select-menu-upper {
    border-top: 2px solid rgba(var(--color-accent), 0.9);
    border-bottom: 2px solid rgba(var(--color-accent), 0.9);
    padding: 0 10px;
    margin-top: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 36px;
}

.time-scroll-container {
    display: flex;
    height: 112px;
    margin: auto 10px auto auto;
    padding-left: 10px;
    width: fit-content;
    overflow: hidden;
    border-right: 2px solid rgba(var(--color-accent), 0.9);
}

.scroll-content {
    display: flex;
    flex-direction: column;
}

.scroll-item {
    color: white;
    font-size: 38px;
}

.scroll-item.active{
    color: red;
}

.scroll-wrapper {
    font-size: 36px;
    padding: 0 6px;
    border-left: 2px solid rgba(var(--color-accent), 0.9);
    overflow: hidden;
}

.time-scroll-header {
    position: absolute;
    transform: translateY(-20px);
    width: 55px;
    /* transform: translateX(3px); */
    font-size: 16px;
    text-align: center;
}

.time-select-menu-lower {
    display: flex;
    align-items: center;
}

.tod-confirm-button {
    height: 100%;
    font-family: var(--pixel-font);
    font-size: 24px;
    color: rgb(var(--color-text));
    background-color: transparent;
    border: none;
    border-right: 2px solid rgba(var(--color-accent), 0.9);
}

.round-button {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%; /* Half of the width and height to make it round */
    border: 5px;
    outline: black;
    pointer-events: auto;
    cursor: default;
    z-index: 2; /* Ensure the buttons are above the background and radial menu */
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.8); /* Adjust the values as needed */
    background: grey radial-gradient(circle, dimgrey, slategrey);
    transform: translate(-50%, -50%); /* Centering trick */
}

.round-button.active {
    cursor: pointer;
}

.round-button.active:hover {
    z-index: 3;
    filter: brightness(1.5);
}

.round-button.sight {
    background: purple radial-gradient(circle, mediumpurple, purple) !important;
    filter: saturate(90%) !important;
}

.round-button.science-true {
    background: red radial-gradient(circle, orangered, darkred);
}

.round-button.science-false {
    background: blue radial-gradient(circle, deepskyblue, darkblue);
}

.round-button.spawned-true {
    background: purple radial-gradient(circle, mediumpurple, purple);
    filter: saturate(110%);
}

.round-button.spawned-false {
    filter: grayscale(80%);
}

.round-button.s-rank {
    width: 20px;
    height: 20px;
    background: red radial-gradient(circle, orangered, darkred);
}

.round-button.ss-rank {
    width: 25px;
    height: 25px;
    background: purple radial-gradient(circle, mediumpurple, purple);
}

.round-button.ss-b-rank {
    background: black radial-gradient(circle, dimgrey, black);
}

[data-coordinates]:hover:after {
    transition: all 0.1s ease 0.2s;
    visibility: visible;
}

[data-coordinates]::after {
    content: attr(data-coordinates);
    background-color: rgba(var(--color-bcg), 0.5);
    color: rgb(var(--color-text));
    font-size: 80%;
    font-weight: bold;
    padding: 1px 5px 2px 5px;
    white-space: nowrap;
    box-shadow: 1px 1px 3px #222222;
    border: 1px solid #111111;
    position: relative;
    visibility: hidden;
    transform: translateY(-120%);
}

[data-coordinates] {
    display: flex;
    justify-content: center;
}

.radial {
    top: 0;
    left: -300px;
    height: 150px;
    width: 150px;
    margin: auto;
    position: absolute;
    transform: translate(-50%, -50%); /* Centering trick */
    z-index: 3;
    display: block;
    transition: left 0.2s ease, top 0.2s ease;
    pointer-events: none !important;
}

.radial > svg * {
    pointer-events: auto !important;
    z-index: 3;
    display: block;
}

.radial.inactive, .radial.inactive > svg * {
    pointer-events: none !important;
}

.radial.hidden, .radial.hidden > svg * {
    display: none;
    z-index: -1;
}

.tod-label {
    position: fixed;
    left: 50%;
    top: 0;
    color: red;
    transform: translate(-50%, 50%); /* Centering trick */
}

#event-bar {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.active-event, .extinct-event {
    height: 220px;
    width: inherit;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateX(-110%);
    transition: transform 0.3s ease;
    background-color: rgba(var(--color-element), 0.5);
    border-bottom: 2px solid;
    border-color: rgba(var(--color-accent), 0.4);
}

/*.active-event:hover {*/
/*    overflow: visible;*/
/*}*/

.extinct-event:hover {
    background-color: rgba(var(--color-accent), 0.5) !important;
    transition: ease 0.1s;
    text-shadow: 1px 1px 2px black;
}

.active-event.visible, .extinct-event.visible {
    transform: translateX(0%);
}

.event-text {
    padding: 0 5px;
    position: absolute;
    width: fit-content;
    color: black;
    font-size: 1.05rem;
    z-index: 3;
    border-radius: 8px; /* Adjust the border-radius as needed */
}

.event-text.mark {
}

.event-text.zone {
    bottom: 15px;
}

.event-text.world {
    bottom: 0
}

.extinct-event {
    height: 40px;
}

.extinct-event > .event-text {
    color: white;
}

.extinct-event > .elapsed-time {
    color: white;
}

.elapsed-time {
    backdrop-filter: blur(2px); /* Adjust the blur amount as needed */
    position: absolute;
    color: black;
    top: 0;
    right: 1%;
}

/* Add some content to create a scrolling effect */
#content {
    margin-left: 240px; /* Ensure content is not obscured by the sidebar */
    padding: 20px;
}

.mini-map-container {
    z-index: 0;
    position: relative;
    width: 400px;
    height: 400px;
}

#expansionButtons {
    position: sticky;
    top: var(--top-bar-h);
    margin-top: 45px;
    margin-left: 0;
    width: fit-content;
    display: flex;
    flex-direction: column;
    transition: ease all .8s;
}

.row-filter {
    position: relative;
    padding: 8px 8px 5px 8px;
    cursor: pointer;
    border: 0;
    font-family: var(--pixel-font);
    font-size: 18px;
    text-align: center;
    background-color: rgba(var(--color-element), 0.7);
    color: rgb(var(--color-text));
    letter-spacing: -3px;
    transition: ease 0.4s;
}

.row-filter.active, .row-filter.science-show {
    background-color: rgba(var(--color-accent), 0.7);
}

.row-filter:hover {
    background-color: rgba(var(--color-accent), 0.2);
    transition: ease 0.1s;
}

.row-filter.active:hover, .row-filter.science-show:hover, .row-filter.science-hide:hover {
    background-color: rgba(var(--color-accent), 0.35);
    transition: ease 0.1s;
}

.row-filter.science-hide {
    background-color: red;
}

.row-filter.science-hide:hover {
    background-color: rgba(255, 0, 0, 0.35);
    transition: ease 0.1s;
}

.server-name {
    background-color: rgba(var(--color-accent), 0.7);
    writing-mode: vertical-lr;
    font-size: 32px;
    padding-top: 5px;
    padding-bottom: 32px;
    line-height: 32px;
    cursor: default;
    transition: ease 0.8s;
    user-select: none;
}

.server-name:hover {
    background-color: rgba(var(--color-accent), 0.35);
    transition: ease 0.1s;
}

.chevron {
    transition: ease all .2s;
}

.server-chevron {
    position: absolute;
    bottom: 0;
    left: 20%;
    font-size: 32px;
    writing-mode: horizontal-tb;
}

.overlay-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    height: inherit;
    width: inherit;
    position: absolute;
    z-index: 1;
}

#question-mark {
    position: absolute;
    font-size: 24px;
    text-align: center;
    line-height: 48px;
    left: 0;
    top: 0;
    width: 48px;
    height: 48px;
    background-color: transparent;
    cursor: none;
}

.menu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background-color: #141414;
    top: 0;
    right: 0;
    height: fit-content;
    width: fit-content;
    position: absolute;
    margin-left: 20px;
    border: 1px solid rgb(var(--color-accent)); /* Add a red border */
    overflow: hidden;
    z-index: 2;
}

.menu-header {
    padding-left: 5px;
    color: black;
    background-color: rgb(var(--color-accent));
    width: 100%;
    font-family: var(--pixel-font);
    text-align: left;
    font-size: 1.2rem;
    padding-top: 0.1rem;
    text-shadow: none;
}

.menu-button {
    color: grey;
    background: none;
    border: none;
    cursor: default;
    transition: color 0.3s;
    font-family: var(--pixel-font);
    font-size: 20px;
    pointer-events: none;
}

.menu-button.active {
    color: white;
    cursor: pointer;
    pointer-events: auto;
}

.menu-button.active:hover {
    color: red;
}

.mod-element {
    background-color: rgba(var(--color-element), 0.9);
    padding: 20px;
    border-bottom: 2px solid;
    border-top: 2px solid;
    border-color: rgba(var(--color-accent), 0.4);
}
.train-content-container {
    flex-grow: 1;
    cursor: default;
}

.train-info-content {
    white-space: normal;
    text-align: left;
    padding: 1rem 1rem 0.5rem;
    font-size: 1.4rem;
    line-height: 1.5;
}

.terminal-info-tile-holder {
    display: grid;
    justify-items: stretch;
    grid-template-columns: auto auto auto;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 3px;
}

.terminal-info-tile {
    display: flex;
    flex-direction: column;
}

.terminal-info-tile > span {
    font-size: 1.7rem;
    text-decoration: underline;
}

.train-info-schedule-table {
    width: 100%;
    border-collapse: collapse;
}

.train-info-schedule-table, th, td {
    border: solid rgba(var(--color-accent), 1);
    padding: 8px;
    text-align: center;
}

.train-info-schedule-table .checkmark {
    font-size: 18px;
}

.footer {
    width: 100%;
    height: var(--footer-h);
    line-height: var(--footer-h);
    text-align: right;
    padding-right: 3px;
    box-sizing: border-box;
    color: rgba(var(--color-text), 0.2);
    background-color: rgba(var(--color-element), 0.6);
    text-wrap: nowrap;
    overflow: hidden;
}

#reconnect-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* semi-transparent black */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    z-index: 9999;
}

.picker-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.wheel {
    width: 60px;
    height: 120px;
    overflow-y: scroll;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-family: sans-serif;
    font-size: 20px;
    text-align: center;
    position: relative;
    scroll-behavior: smooth;
    scrollbar-width: none;
    overflow-x: hidden;
}

.wheel::-webkit-scrollbar {
    display: none;
}

.wheel-item {
    padding: 10px 0;
}

.spacer {
    height: 50%;
}

.label {
    text-align: center;
    font-weight: bold;
    font-family: sans-serif;
    margin-bottom: 5px;
}


.highlight-zone {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 40px;
    margin-top: -20px;
    border-top: 1px dashed #999;
    border-bottom: 1px dashed #999;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.4);
    box-sizing: border-box;
}
