/* 775 by 363 */

body {
    background-color: #000000;
    font-family: 'Rajdhani', sans-serif;
    color: #fff;
    font-size: clamp(12px, 1.2vw, 16px);
    margin: 0;
    overflow: hidden;
}

h1,
h2,
h3,
.button,
#banner {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
}

a {
    color: #00eeee;
}

a.github-link {
    color: #ffcc00;
}

a.arscan {
    color: #ffcc00;
}

h3 {
    font-size: 1.2em;
    margin: 0;
    padding: 5px 0;

}

#globe {
    margin: 0;
    padding: 0;
}

#info-box {
    position: absolute;
    bottom: 10px;
    right: 10px;
    visibility: hidden;
    background: rgba(0, 0, 0, .9);
    font-size: 12pt;
    z-index: 10;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5em;

}

.wf-active #info-box {
    visibility: visible;
}

#thumbprint {
    position: absolute;
    bottom: 10px;
    left: 10px;
    cursor: pointer;
    opacity: 0;
    -webkit-animation: pulsate 5s;
    -webkit-animation-iteration-count: 10;
    animation: pulsate 5s ease-out;
    animation-iteration-count: 10;
}

@-webkit-keyframes pulsate {
    0% {
        opacity: .3;
    }

    50% {
        opacity: 1.0;
    }

    100% {
        opacity: 0.3;
    }
}

@keyframes pulsate {
    0% {
        opacity: 0.3;
    }

    50% {
        opacity: 1.0;
    }

    100% {
        opacity: 0.3;
    }
}

#canvas {
    margin: 0;
    padding: 0;
}

#control-panel {
    position: absolute;
    left: 700px;
    top: 60px;
    width: 300px;
}

#options {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    overflow-x: hidden;
    margin: 0;
    width: 380px;
    max-width: 85vw;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
    backdrop-filter: blur(12px);
    /* Performance: reduced from 20px */
    -webkit-backdrop-filter: blur(12px);
    border-right: none;
    /* Removed the "transparent line" */
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
    transform: translateX(0);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
    contain: layout;
    will-change: transform;
}

#options.closed {
    transform: translateX(-100%);
}

#panel-toggle {
    position: absolute;
    top: 25px;
    left: 20px;
    z-index: 1000;
    font-size: 24px;
    cursor: pointer;
    color: #00eeee;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 238, 238, 0.3);
    border-radius: 5px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, left;
}

#panel-toggle:hover {
    background: rgba(0, 238, 238, 0.1);
    color: #fff;
}

#panel-toggle.closed {
    left: 20px;
}

@media (max-width: 800px) {
    #options {
        width: 100%;
        max-width: 100vw;
    }

    #options-content {
        padding-left: 20px;
        padding-right: 20px;
    }

    #panel-toggle {
        top: 15px;
        left: 15px;
        font-size: 20px;
        padding: 6px 10px;
    }

    #panel-toggle.closed {
        left: 15px;
    }
}

/* Details Panel Style */
.details-card {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 320px;
    max-width: 90vw;
    background: rgba(0, 10, 20, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(0, 238, 238, 0.3);
    border-radius: 15px;
    color: #fff;
    padding: 20px;
    z-index: 200;
    display: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 238, 238, 0.1);
    font-family: 'Rajdhani', sans-serif;
}

.details-card h3 {
    margin-top: 0;
    color: #00eeee;
    font-size: 1.4em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.details-card .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    color: #aaa;
    font-weight: bold;
    font-size: 1.2em;
}

.details-card .close-btn:hover {
    color: #fff;
}

#options-content {
    opacity: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#options-content h3 {
    font-size: 14px;
    text-transform: uppercase;
    color: #00eeee;
    border-left: 3px solid #00eeee;
    padding-left: 10px;
}

.data-card-mini {
    background: rgba(0, 238, 238, 0.05);
    padding: 12px;
    border-radius: 8px;
    border-left: 2px solid #00eeee;
    margin-top: 10px;
    font-size: 0.9em;
}

#footer-card {
    margin-top: auto;
    padding-top: 20px;
}

.footer-card-inner {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 238, 238, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    padding: 10px;
    transition: all 0.3s;
}

.footer-card-inner:hover {
    background: rgba(0, 238, 238, 0.1);
    border-color: #00eeee;
}

.footer-card-inner img {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    margin-right: 12px;
}

.footer-card-text strong {
    color: #fff;
    font-size: 14px;
}

.footer-card-text span {
    color: #00eeee;
    font-size: 12px;
}

#footer-card a {
    text-decoration: none;
}

.header-left-section {
    float: left;
    width: 70%;
    background-color: #000;
    margin-left: -5px;
    padding: 0 8px;
}

.header-right-section {
    float: right;
    width: 20%;
    background-color: #000;
    text-align: right;
    margin-right: -5px;
    padding: 0 8px;
}

#header-bottom {
    position: absolute;
    bottom: 100px;
}


#header-top {
    position: absolute;
    top: 25px;
}

.header-animator {
    position: absolute;
    top: 300px;
    left: 25px;
    width: 300px;
    height: 2px;
    border-top: 1px solid #1d2c33;
    border-bottom: 1px solid #1d2c33;
    visibility: hidden;
}

.projection {
    border-radius: 3px;
    opacity: .5;
    cursor: crosshair;
}

#add-element {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-block;
    width: 275px;
    padding-top: 5px;
    border-bottom: 1px solid #1d2c33;
    padding-bottom: 5px;
    margin-bottom: 5px;

}

.button {
    text-align: center;
    border: 1px solid #1d2c33;
    border-radius: 3px;
    padding: 5px;
    cursor: pointer;
}

.button:hover {
    background-color: #111;
}

#add-element li {
    float: left;
    width: 25%;
    margin: 5px;
}

#add-element li:first-child {
    margin-left: 2px;

}

#add-element .selected {
    background-color: #111;
}

label {
    /* clear: both; */
    /* float:left; */
    display: inline-block;
    width: 120px;
    margin-top: 12px;
}

#color-options {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-block;
    width: 50%;
}

#color-options li {
    cursor: pointer;
    display: inline-block;
}

#pin-color {
    background-color: #00eeee;
}

#marker-color {
    background-color: #ffcc00;
}

#satellite-color {
    background-color: #ff0000;
}

#apply-button {
    clear: both;
    width: 100px;
    margin-top: 20px;
}


/* spectrum changes */

.sp-dd {
    display: none;
}

.sp-replacer {
    padding: 0;
    background-color: inherit;
    border: none;
}

.sp-preview {
    float: none;
    width: 10px;
    height: 10px;
    margin-right: 0;
    border: 1px solid #1d2c33;
}

/* simple slider */

.slider {
    width: 100px;
    display: inline-block;
}

.slider>.dragger {
    background: #8DCA09;
    background: -webkit-linear-gradient(top, #8DCA09, #72A307);
    background: -moz-linear-gradient(top, #8DCA09, #72A307);
    background: linear-gradient(top, #8DCA09, #72A307);

    -webkit-box-shadow: inset 0 2px 2px rgba(255, 255, 255, 0.5), 0 2px 8px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: inset 0 2px 2px rgba(255, 255, 255, 0.5), 0 2px 8px rgba(0, 0, 0, 0.2);
    box-shadow: inset 0 2px 2px rgba(255, 255, 255, 0.5), 0 2px 8px rgba(0, 0, 0, 0.2);

    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;

    border: 1px solid #496805;
    width: 8px;
    height: 8px;
}

.slider>.dragger:hover {
    background: -webkit-linear-gradient(top, #8DCA09, #8DCA09);
}


.slider>.track,
.slider>.highlight-track {
    background: #ccc;
    background: -webkit-linear-gradient(top, #bbb, #ddd);
    background: -moz-linear-gradient(top, #bbb, #ddd);
    background: linear-gradient(top, #bbb, #ddd);

    -webkit-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);

    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius: 8px;

    border: 1px solid #aaa;
    height: 2px;
}

.slider>.highlight-track {
    background-color: #8DCA09;
    background: -webkit-linear-gradient(top, #8DCA09, #72A307);
    background: -moz-linear-gradient(top, #8DCA09, #72A307);
    background: linear-gradient(top, #8DCA09, #72A307);

    border-color: #496805;
}

.slider-output {
    padding-left: 3px;

}

.switch {
    display: inline-block;
    width: 40%;


}

#banner {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(18px, 2.5vw, 32px);
    font-weight: bold;
    position: absolute;
    top: 25px;
    right: 30px;
    z-index: 5;
    background: transparent;
    /* No background as requested */
    color: #fff;
    margin: 0px;
    line-height: 1.2em;
    padding: 0;
    animation: textGlow 3s ease-in-out infinite alternate, textFloat 6s ease-in-out infinite;
    user-select: none;
    pointer-events: none;
}

@keyframes textGlow {
    from {
        text-shadow: 0 0 10px rgba(0, 238, 238, 0.5), 0 0 20px rgba(0, 238, 238, 0.2);
        color: #fff;
    }

    to {
        text-shadow: 0 0 15px rgba(0, 238, 238, 1), 0 0 30px rgba(0, 238, 238, 0.5);
        color: #00eeee;
    }
}

@keyframes textFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.minimize-btn {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 24px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s;
    line-height: 1;
}

.minimize-btn:hover {
    color: #00eeee;
}

#banner small {
    font-size: 12pt;
    white-space: nowrap;
    padding-left: 3px;

}

@media (max-width: 800px) {

    #thumbprint,
    .header {
        display: none;
    }

    #options {
        width: 100%;
        max-width: 320px;
    }

    #panel-toggle {
        top: 10px;
        left: 10px;
        padding: 5px 10px;
    }

    /* Hide info box on very small screens or interaction */
    #info-box.hidden {
        display: none;
    }

    #info-box {
        padding: 5px;
        font-size: 10pt;
        bottom: 50px;
        /* Move up for mobile */
    }

}

@media (min-width: 800px) {
    #globe {
        margin-left: 200px;
    }
}

@media (max-width: 800px) {
    #thumbprint {
        bottom: 30px;
    }

    #header-bottom {
        bottom: 120px;

    }

}

@media (max-width: 1400px) {
    #thumbprint {
        bottom: 30px;
    }

    #header-bottom {
        bottom: 120px;

    }

}

@media (max-height: 700px) {

    #thumbprint,
    .header {
        display: none;
    }

    /* Don't hide options on small height, just let it scroll if needed */
    #globe {
        margin-left: 0;
    }
}

.button {
    background: rgba(0, 238, 238, 0.1);
    border: 1px solid rgba(0, 238, 238, 0.3);
    color: #00eeee;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8em;
    margin-bottom: 5px;
}

.button:hover {
    background: rgba(0, 238, 238, 0.25);
    box-shadow: 0 0 15px rgba(0, 238, 238, 0.4);
    transform: translateY(-2px);
    color: #fff;
}

.button.selected {
    background: rgba(0, 238, 238, 0.4);
    border-color: #00eeee;
    color: #fff;
}

/* Custom Scrollbar */
#options::-webkit-scrollbar {
    width: 6px;
}

#options::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

#options::-webkit-scrollbar-thumb {
    background: rgba(0, 238, 238, 0.3);
    border-radius: 10px;
}

#options::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 238, 238, 0.6);
}