* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #020204;
    color: #f3f3f3;
    font-family:
        Arial,
        Helvetica,
        sans-serif;
}

#mars-app {
    width: 100%;
    height: 100vh;
}

.topbar {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    background: #090909;
    border-bottom: 1px solid #552114;
}

.brand {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 6px;
    color: #e36c3e;
}

.subtitle {
    margin-top: 4px;
    color: #999;
    font-size: 12px;
    letter-spacing: 2px;
}

.status {
    color: #8cff9d;
    font-size: 12px;
    letter-spacing: 2px;
}

main {
    height: calc(100vh - 72px);
    display: grid;
    grid-template-columns: 1fr 310px;
}

#mars-view {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(
            circle at center,
            #170a06 0%,
            #050304 35%,
            #000 75%
        );
}

#marsCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

.title-overlay {
    position: absolute;
    top: 28px;
    left: 30px;
    pointer-events: none;
}

.title-overlay h1 {
    margin: 0;
    font-size: 34px;
    letter-spacing: 5px;
}

.title-overlay p {
    margin-top: 8px;
    color: #aaa;
}

.controls {
    position: absolute;
    left: 30px;
    bottom: 30px;
    display: flex;
    gap: 10px;
}

button {
    border: 1px solid #75311f;
    background: rgba(14, 7, 5, 0.88);
    color: #eee;
    padding: 11px 15px;
    cursor: pointer;
    letter-spacing: 1px;
}

button:hover {
    background: #532416;
}

.panel {
    overflow-y: auto;
    padding: 22px;
    background: #080808;
    border-left: 1px solid #482016;
}

.panel h2 {
    margin-top: 0;
    color: #e36c3e;
    letter-spacing: 2px;
}

.panel p,
.panel li {
    color: #aaa;
    line-height: 1.55;
}

.section {
    margin-top: 30px;
}

.section h3 {
    font-size: 11px;
    letter-spacing: 2px;
    color: #777;
}

.mission,
.location {
    width: 100%;
    margin: 5px 0;
    text-align: left;
}

.mission span {
    float: right;
    color: #75ff8a;
    font-size: 10px;
}

#mars-view:fullscreen {
    width: 100vw;
    height: 100vh;
    background: #000;
}

@media (max-width: 900px) {

    main {
        grid-template-columns: 1fr;
    }

    .panel {
        display: none;
    }

}


/* ============================================================
   MARS POI INFORMATION
   ============================================================ */

#marsPoiInfo {
    position: absolute;
    right: 26px;
    bottom: 26px;
    z-index: 50;

    width: 300px;

    padding: 14px 16px;

    border: 1px solid rgba(227,108,62,.55);

    background:
        rgba(4,4,6,.82);

    backdrop-filter:
        blur(8px);

    color: #ddd;

    font-size: 13px;

    line-height: 1.55;

    pointer-events: none;
}

#marsPoiInfo strong {
    color: #e36c3e;
    letter-spacing: 2px;
    font-size: 15px;
}

#marsPoiInfo span {
    color: #888;
    font-size: 11px;
}

#mars-view:fullscreen #marsPoiInfo {
    right: 35px;
    bottom: 35px;
}


/* ============================================================
   MARS CYDONIA / MYSTERIES
   ============================================================ */

.mars-mysteries-section {
    border-top: 1px solid rgba(114,214,255,.25);
    padding-top: 22px;
}

.mars-mysteries-section h3 {
    color: #72d6ff;
}

.mystery-button {
    border-color: rgba(114,214,255,.55);
    color: #bcecff;
}

.mystery-button:hover {
    background: rgba(37,115,145,.30);
    border-color: #72d6ff;
}


/* ============================================================
   CLEAN MARS POI DISPLAY
   ============================================================ */

#marsPoiInfo {
    max-width: 320px;
    padding: 18px 42px 16px 18px;
    background: rgba(3,3,5,.72);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,.18);
}

#marsPoiClose {
    position: absolute;
    top: 5px;
    right: 7px;

    width: 30px;
    height: 30px;

    padding: 0;
    margin: 0;

    border: 0;
    background: transparent;

    color: #fff;
    font-size: 24px;
    line-height: 30px;

    cursor: pointer;
}

#marsPoiClose:hover {
    background: rgba(255,255,255,.10);
}


/* ============================================================
   MARS HIGH-RES FEATURE VIEWER
   ============================================================ */

#marsHiresViewer {
    display: none;

    position: absolute;
    inset: 20px;

    z-index: 200;

    background: rgba(0,0,0,.96);

    border: 1px solid rgba(227,108,62,.75);

    overflow: hidden;
}

#marsHiresHeader {
    height: 68px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 12px 18px;

    border-bottom: 1px solid rgba(255,255,255,.15);

    background: rgba(10,10,10,.96);
}

#marsHiresTitle {
    color: #e36c3e;
    font-size: 20px;
    letter-spacing: 2px;
}

#marsHiresSubtitle {
    color: #999;
    margin-top: 4px;
    font-size: 12px;
}

#marsHiresClose {
    width: 42px;
    height: 42px;

    padding: 0;

    border: 0;

    background: transparent;

    color: white;

    font-size: 32px;

    cursor: pointer;
}

#marsHiresImageWrap {
    height: calc(100% - 130px);

    display: flex;
    justify-content: center;
    align-items: center;

    overflow: auto;

    background: #000;
}

#marsHiresImage {
    max-width: 100%;
    max-height: 100%;

    object-fit: contain;

    image-rendering: auto;
}

#marsHiresCaption {
    height: 62px;

    padding: 12px 18px;

    color: #bbb;

    font-size: 13px;

    line-height: 1.45;

    border-top: 1px solid rgba(255,255,255,.12);

    background: rgba(10,10,10,.96);
}

#mars-view:fullscreen #marsHiresViewer {
    inset: 0;
}


/* ============================================================
   MARS SURFACE VIEWS
   ============================================================ */

.mars-surface-section {
    border-top: 1px solid rgba(227,108,62,.28);
    padding-top: 22px;
}

.mars-surface-section h3 {
    color: #e36c3e;
}

.surface-button {
    border-color: rgba(227,108,62,.55);
}

.surface-button:hover {
    background: rgba(150,60,30,.25);
}

#marsHiresImage {
    cursor: zoom-in;
}

