
* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;

    background: #000;
    color: #eee;

    font-family:
        Arial,
        Helvetica,
        sans-serif;
}

header {
    height: 82px;

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

    padding: 0 24px;

    background:
        linear-gradient(
            90deg,
            #050505,
            #101010,
            #050505
        );

    border-bottom:
        1px solid #333;
}

.brand-title {
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 7px;
}

.brand-subtitle {
    margin-top: 4px;

    font-size: 10px;
    letter-spacing: 2px;

    color: #888;
}

.header-stats {
    display: flex;
    gap: 26px;
}

.header-stats span {
    display: flex;
    flex-direction: column;

    font-size: 8px;
    letter-spacing: 1px;

    color: #777;
}

.header-stats strong {
    margin-top: 3px;

    color: #ddd;

    font-size: 11px;
}

.status {
    color: #63ee85;

    font-size: 10px;
    letter-spacing: 2px;
}

#layout {
    display: grid;

    grid-template-columns:
        minmax(0,1fr)
        340px;

    height:
        calc(100vh - 82px);
}

#moon-view {
    position: relative;

    overflow: hidden;

    background:
        radial-gradient(
            circle at center,
            #161616,
            #000 72%
        );
}

#threeContainer {
    position: absolute;

    inset: 0;
}

canvas {
    display: block;

    width: 100%;
    height: 100%;
}

#titleBlock {
    position: absolute;

    z-index: 5;

    top: 25px;
    left: 28px;

    pointer-events: none;
}

#titleBlock h1 {
    margin: 0 0 7px;

    font-size: 31px;
    letter-spacing: 5px;
}

#titleBlock div {
    font-size: 12px;

    color: #999;
}

#quickFacts {
    position: absolute;

    left: 28px;
    top: 112px;

    z-index: 6;

    width: 190px;
}

.fact {
    display: flex;
    flex-direction: column;

    margin-bottom: 12px;

    padding-left: 10px;

    border-left:
        2px solid #555;
}

.fact span {
    color: #777;

    font-size: 8px;
    letter-spacing: 1.4px;
}

.fact strong {
    margin-top: 3px;

    color: #ddd;

    font-size: 11px;
}

#viewerControls {
    position: absolute;

    left: 28px;
    bottom: 25px;

    z-index: 10;

    display: flex;
    flex-wrap: wrap;

    gap: 7px;
}

#viewerControls button {
    padding: 11px 15px;

    border:
        1px solid #555;

    background:
        rgba(8,8,8,.88);

    color: #ddd;

    font-size: 10px;

    letter-spacing: 1px;

    cursor: pointer;
}

#viewerControls button:hover {
    background: #292929;

    border-color: #aaa;
}

aside {
    overflow-y: auto;

    padding: 22px;

    background: #070707;

    border-left:
        1px solid #333;
}

aside h2 {
    margin-top: 0;

    font-size: 18px;
    letter-spacing: 2px;
}

.intro {
    color: #aaa;

    font-size: 13px;
    line-height: 1.55;
}

.section {
    margin-top: 26px;

    padding-top: 17px;

    border-top:
        1px solid #282828;
}

.section h3 {
    margin: 0 0 8px;

    color: #858585;

    font-size: 10px;
    letter-spacing: 2px;
}

.location {
    width: 100%;

    margin: 4px 0;

    padding: 11px 12px;

    text-align: left;

    background: #0b0b0b;

    color: #ddd;

    border:
        1px solid #393939;

    cursor: pointer;

    letter-spacing: .8px;

    font-size: 11px;
}

.location small {
    display: block;

    margin-top: 4px;

    color: #777;

    font-size: 9px;

    letter-spacing: .2px;
}

.location:hover {
    background: #1b1b1b;

    border-color: #aaa;
}

.apollo {
    border-left:
        3px solid #55ff88;
}

.robotic {
    border-left:
        3px solid #ffb347;
}

.landmark {
    border-left:
        3px solid #aaa;
}

.science {
    border-left:
        3px solid #6bdcff;
}

#moonPoiInfo {
    display: none;

    position: absolute;

    right: 24px;
    bottom: 24px;

    z-index: 20;

    width: 390px;

    max-height:
        calc(100vh - 150px);

    overflow-y: auto;

    padding:
        20px
        45px
        20px
        20px;

    background:
        rgba(5,5,5,.92);

    border:
        1px solid #555;

    backdrop-filter:
        blur(6px);

    line-height: 1.55;

    font-size: 13px;
}

#moonPoiInfo strong {
    display: block;

    color: #fff;

    font-size: 17px;

    letter-spacing: 1px;
}

#moonPoiInfo p {
    color: #bbb;

    line-height: 1.6;
}

.poi-type {
    margin-bottom: 6px;

    color: #6bdcff;

    font-size: 9px;

    letter-spacing: 2px;
}

.poi-facts {
    margin-top: 12px;

    padding-top: 10px;

    border-top:
        1px solid #333;

    color: #ddd;

    font-size: 11px;
}

.poi-coordinates {
    margin-top: 12px;

    color: #777;

    font-size: 10px;

    letter-spacing: 1px;
}

#moonPoiClose {
    position: absolute;

    top: 5px;
    right: 7px;

    width: 30px;
    height: 30px;

    border: 0;

    background: transparent;

    color: white;

    font-size: 24px;

    cursor: pointer;
}

.data-section {
    padding-bottom: 25px;
}

.data-row {
    display: flex;

    justify-content: space-between;

    gap: 10px;

    padding: 7px 0;

    border-bottom:
        1px solid #191919;

    font-size: 10px;
}

.data-row span {
    color: #777;
}

.data-row strong {
    color: #ccc;

    text-align: right;
}

#moon-view:fullscreen {
    background: black;
}

#moon-view:fullscreen #titleBlock,
#moon-view:fullscreen #quickFacts {
    display: none;
}

@media (
    max-width: 1000px
) {

    .header-stats {
        display: none;
    }

    #layout {
        grid-template-columns:
            minmax(0,1fr)
            285px;
    }

}

