body, html {
    margin: 0;
    padding: 0;
    height: 100vh;
    font-family: Roboto Mono, Source Code Pro, Menlo, Courier, monospace;
    overflow: hidden;
    color: #d2c7c2;
}

#logo {
    font-size: 3em;
    cursor: pointer;
}

body > #logo {
    font-size: 1em;
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    z-index: 1000;
    cursor: pointer;
}

#logo span {
    font-family: "UnifrakturMaguntia", cursive;
    font-weight: 400;
    font-style: normal;
    font-size: 1.5em;
}

#map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 3s ease;
}

#map.visible {
    opacity: 1;
}

#pane-container {
    border: 1px solid white;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 3s ease;
}

#pane-container.visible {
    opacity: 1;
}

#router-controls {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 999;
    background: white;
    border: 1px solid #ccc;
    padding: 8px;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    gap: 8px;
    align-items: center;
}


#router-controls select,
#router-controls button {
    padding: 6px 10px;
    font-size: 14px;
    background: white;
    border: 1px solid #ccc;
    cursor: pointer;
}

.folder-icon {
    width: 16px;
    height: 16px;
    margin-right: -6px;
    vertical-align: middle;
    fill: currentColor;
}

.folder-icon.gear {
    margin-right: -4px;
}

#starfield {
    opacity: 0.7;
}

#milkyway {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../milky-way.jpg') no-repeat center center;
    background-size: cover;
    z-index: -20;
    animation: panMilkyWay 1200s linear infinite alternate;
}

@keyframes panMilkyWay {
    from {
        background-position-x: 0%; /* Start with the leftmost part of the image visible */
    }
    to {
        background-position-x: 100%; /* Pan to show the rightmost part of the image */
    }
}

.tp-lblv {
    user-select: none;
}

#credit {
    display: block;
    font-size: 11px;
    color: #adafb8;
    text-align: center;
    padding: 4px;
}

#credit a {
    color: #adafb8;
    text-decoration: none;
}

.toast-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #f44336;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.4s ease;
    white-space: nowrap; /* prevents line breaks */
}

.toast-message.show {
    opacity: 1;
}

#spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    opacity: 0; /* start hidden */
    pointer-events: none; /* ignore mouse events when hidden */
    transition: opacity 0.4s ease;
    z-index: 9999;
}

#spinner-overlay.visible {
    opacity: 1; /* fade in */
    pointer-events: all; /* block interaction when visible */
}

#spinner-container {
    text-align: center;
}

#spinner-wheel {
    animation: swing 3s ease-in-out alternate infinite;
    display: block;
    fill: #d2c7c2;
    width: 200px;
    margin: auto;
}

@keyframes swing {
    0% {
        transform: rotate(-30deg);
    }
    100% {
        transform: rotate(30deg);
    }
}

#spinner-text {
    font-size: 1.1em;
}

#instructions {
    background: #d0c5c0;
    padding: 1em;
    margin-top: 1em;
    border-radius: 6px;
    max-width: 500px;
    color: black;
    text-align: left;
    display: table;
}

#instructions button {
    margin-top: 0.5em;
    border-radius: 4px;
    padding: 3px;
    float: right;
    background: #e3dcd8;
    cursor: pointer;
    margin-left: 1em;
}
