/**************************************************************************************************
 * At-Rules
 **************************************************************************************************/

@font-face {
    font-family: mplus-2p-light-sub;
    src: url("/styles/mplus-2p-light-sub.ttf?v6");
}

@font-face {
    font-family: monosocialiconsfont-sub;
    src: url("/styles/monosocialiconsfont-sub.ttf?v1");
}

/**************************************************************************************************
 * Styling Reset
 **************************************************************************************************/

html, body, div, span, h1, h2, h3, h4, h5, h6, p, a, svg, canvas {
    margin: 0;
    padding: 0;
    border: 0;
    font: 1em mplus-2p-light-sub,Helvetica,arial,freesans,clean,sans-serif;
    -webkit-font-smoothing: subpixel-antialiased; /* safari disables subpixel antialiasing for some reason */
}

@media (max-width: 825px), (max-height: 700px) {
    html, body, div, span, h1, h2, h3, h4, h5, h6, p, a, svg, canvas {
        font-size: 0.8em;
    }
}

/**************************************************************************************************
 * Page Styling
 **************************************************************************************************/

a, .text-button {
    color: #888888;
}

.text-button.highlighted {
    color: #e2b42e;
}

.text-button.disabled {
    color: #444444;
}

a:hover, a:focus, .no-touch .text-button:hover, .no-touch .text-button:focus, .text-button:active {
    color: #ffffff;
    cursor: pointer;
    transition: color 125ms ease-in;
    -webkit-transition: color 125ms ease-in;
}

p.invisible, span.invisible, #sponsor.invisible {
    display: none;
}

svg {
    overflow: hidden;  /* Do not let IE draw outside the bounds of the svg element. */
}

body {
    color: #eeeeee;
    background: #000005;
}

#warn {
    font-size: 2.0em;
    position: absolute;
    top: 10%;
    left: 2%;
}

#display {
    cursor: default;
}

#map, #animation, #overlay, #foreground {
    position: absolute;
    top: 0;
    left: 0;
    will-change: transform;
}

#sponsor {
    position: absolute;
    text-align: right;
    bottom: 3%;
    right: 2%;
    background-color: rgba(0, 0, 5, 0.6);
    border-radius: 0.5rem/0.5rem;
    padding: 0.5rem 1rem 0.5rem 1rem;
    font-size: 1.0rem;
}

#sponsor:hover #sponsor-hide {
    display: inline;
}

#sponsor a {
    text-decoration: none;
}

#details {
    position: absolute;
    bottom: 3%;
    left: 2%;
    pointer-events: none;  /* This div is just a container--do not let it interfere with operation of the map. */
}

#earth {
    font-size: 2.4rem;
}

#status, #location {
    font-size: 1.75rem;
}

#menu {
    font-size: 0.875rem;
}

#status, #location, #earth {
    background-color: rgba(0, 0, 5, 0.6);
    border-radius: 0.5rem/0.5rem;
    display: table;
    margin-top: 1rem;
    padding: 0 1rem 0 1rem;
    pointer-events: all;
}

#menu {
    background-color: rgba(5, 10, 30, 0.85);
    border-radius: 0.5rem/0.5rem;
    overflow: hidden;
    pointer-events: all;

    margin-top: 1rem;
    padding: 0.5rem 1rem 0.5rem 1rem;
    opacity: 1;
    max-height: 34rem;
    transition: opacity 250ms ease, max-height 250ms ease, margin-top 250ms ease;
    -webkit-transition: opacity 250ms ease, max-height 250ms ease, margin-top 250ms ease;
}

#menu.invisible {
    margin-top: 0;
    padding: 0 1rem 0 1rem;
    opacity: 0;
    max-height: 0;
    transition: opacity 250ms ease, max-height 250ms ease, margin-top 250ms ease;
    -webkit-transition: opacity 250ms ease, max-height 250ms ease, margin-top 250ms ease;
}

#progress {
    padding-left: 1rem;
}

#nav-now {
    padding-right: 1rem;
}

#nav-backward, #nav-backward-more, #nav-forward, #nav-forward-more, #option-show-grid {
    padding-left: 1rem;
    padding-right: 1rem;
}

#show-location {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

#lang {
    font-size: 1.25rem;
    float: right;
    padding-top: 0.5rem;
}

.social-icon {
    font-size: 2.25rem;
    font-family: monosocialiconsfont-sub,sans-serif;
    padding-left: 0.25rem;
    text-decoration: none;
    position: relative;
    top: 0.1rem;
}

.internal-link {
    text-decoration: none;
}

.sup {
    position: relative;
   	bottom: 0.3em;
   	font-size: 0.6em;
}

.sub {
    position: relative;
   	top: 0.3em;
   	font-size: 0.6em;
}

/**************************************************************************************************
 * SVG Element Styling
 **************************************************************************************************/

.coastline, .lakes {
    stroke: #ffffff;
    stroke-width: 1.25;
    fill: none;
}

.firefox .coastline, .firefox .lakes {
    stroke-width: 1.0;
}

.graticule {
    stroke: #505050;
    stroke-width: 1.0;
    fill: none;
}

.hemisphere {
    stroke: #707070;
    stroke-width: 1.25;
    fill: none;
}

.background-sphere {
    stroke: none;
    fill: #303030;
}

.foreground-sphere {
    stroke: #000005;
    stroke-width: 4.0;
    fill: none;
    -moz-user-select: none;  /* Oddly, Win FF sometimes selects this SVG element. Disable. */
    user-select: none;
}

.location-mark {
    stroke: #3aff3a;
    stroke-width: 2.5;
    fill: none;
}

/**************************************************************************************************
 * About Page
 **************************************************************************************************/

#about {
    font-size: 1.5rem;
}

#about h1 {
    font-size: 2.4rem;
    text-align: center;
    padding-top: 2rem;
}

#about div {
    clear: both;
}

#about .blurb {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

#about .blurb img {
    padding-top: 2rem;
}

#about img {
    display: block;
    margin: auto;
}

#about:first-child {
    padding-top: 3rem;
}

#cover {
    border: 1px solid #eeeeee;
}

#about .left {
    width: 50%;
    float: left;
    text-align: right;
}

#about .right {
    width: 50%;
    float: right;
}

#about .center {
    text-align: center;
}

#about .pad {
    visibility: hidden;
}

#closing {
    padding-bottom: 2.5rem;
}

/**************************************************************************************************
 * Air-Zeitgeist HARP markers
 **************************************************************************************************/

.harp-mark {
    fill: #7b1113;
    stroke: #000000;
    stroke-width: 1.5;
    cursor: pointer;
}


/* Air-Zeitgeist floating mixer */

#air-mixer {
    position: absolute;
    top: 2%;
    left: 2%;
    min-width: 360px;
    background: rgba(0, 0, 5, 0.88);
    border: 1px solid rgba(238, 238, 238, 0.85);
    font-size: 12px;
    z-index: 20;
}

#air-mixer-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 8px 10px;
    white-space: nowrap;
    font-size: 18px;
}

.air-mixer-title {
    font-weight: bold;
}

.air-mixer-video-wall {
    appearance: none;
    -webkit-appearance: none;
    margin-left: auto;
    border: 0;
    padding: 0;
    background: transparent;
    color: #777777;
    font: inherit;
}

.air-mixer-video-wall:not(:disabled) {
    color: #777777;
    cursor: pointer;
}

.air-mixer-video-wall.air-mixer-video-wall-open {
    color: #eeeeee;
}

.air-mixer-harp {
    padding: 6px 10px;
    border-top: 1px solid rgba(238, 238, 238, 0.25);
    white-space: nowrap;
    transition: background-color 50ms linear;
}

.air-mixer-harp input[type="range"] {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    width: 60px;
    height: 12px;
    position: relative;
    top: 2px;
}

.air-mixer-harp input[type="range"]::-moz-range-track {
    height: 1px;
    background: #eeeeee;
    border: 0;
}

.air-mixer-harp input[type="range"]::-moz-range-thumb {
    width: 8px;
    height: 8px;
    border: 0;
    border-radius: 50%;
    background: #eeeeee;
}

.air-mixer-harp input[type="range"]::-webkit-slider-runnable-track {
    height: 1px;
    background: #eeeeee;
}

.air-mixer-harp input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 8px;
    height: 8px;
    margin-top: -3.5px;
    border: 0;
    border-radius: 50%;
    background: #eeeeee;
}

.air-mixer-harp span[id^="air-mixer-wind-"] {
    display: inline-block;
    width: 84px;
}

.air-mixer-pan-knob {
    display: inline-block;
    vertical-align: middle;
    transform: translateY(2px);
    margin-left: 8px;
    cursor: ew-resize;
    touch-action: none;
    outline: none;
}


.air-mixer-harp button[id^="air-mixer-play-"] {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    width: 18px;
    color: inherit;
    font: inherit;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
}


.air-mixer-video-button {
    appearance: none;
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border: 1px solid currentColor;
    background: transparent;
    padding: 0;
    margin: 0;
    color: #777777;
    font: inherit;
    font-size: 10px;
    font-weight: normal;
    line-height: 12px;
    text-align: center;
    cursor: pointer;
    transform-origin: center;
}

.air-mixer-video-button.air-mixer-video-selected {
    color: #eeeeee;
}

.air-mixer-video-button.air-mixer-button-pulse {
    animation: air-mixer-button-flex 100ms ease-in-out;
}

.air-mixer-close-button {
    appearance: none;
    -webkit-appearance: none;
    width: 17.5px;
    height: 17.5px;
    border: 0;
    padding: 0;
    margin: 0 0 0 8px;
    background: transparent;
    color: #eeeeee;
    font-size: 25px;
    line-height: 25px;
    cursor: pointer;
    vertical-align: middle;
    position: relative;
    top: 0;
}

.air-mixer-close-button svg {
    display: block;
    width: 14px;
    height: 14px;
    margin: 0 auto;
}

.air-mixer-close-button.air-mixer-close-active {
    opacity: 0.5;
}

@keyframes air-mixer-button-flex {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.90);
    }

    100% {
        transform: scale(1);
    }
}


#air-video-monitor {
    position: absolute;
    top: 2%;
    right: 2%;
    width: 320px;
    background: rgba(0, 0, 5, 0.88);
    border: 1px solid #000000;
    z-index: 20;
}

#air-video-monitor[hidden] {
    display: none;
}

#air-video {
    display: block;
    width: 100%;
    height: auto;
}

#air-video-monitor {
    cursor: move;
}

.harp-mark-selected {
    fill: #ffffff;
}

/* Earth freeze during drag / recalculation */
#animation.air-earth-freeze-blur,
#overlay.air-earth-freeze-blur {
    filter: blur(8px);
}
