@font-face {
    font-family: mplus-2p-thin;
    src: url("/css/mplus-2p-thin-056.ttf");
}

html, body, div, span, h1, h2, h3, h4, h5, h6, p, a {
    margin: 0;
    padding: 0;
    border: 0;
    vertical-align: baseline;
    font: 1em mplus-2p-thin,Helvetica,arial,freesans,clean,sans-serif;
}

body {
    background: #000006;
    overflow-x: hidden;
    line-height: 0;
    color: #eee;
}

.out-boundary {
    fill: #303030;
    stroke: #c0c0c0;
    stroke-width: 1;
    stroke-linejoin: round;
}

.in-boundary {
    fill: none;
    stroke: #585858;
    stroke-width: 1.5;
    stroke-dasharray: 2, 2;
    stroke-linejoin: round;
}

.station {
    fill: #4986bc;
}

#warn {
    margin-top: 25%;
    margin-left: 2%;
}

#position {
    fill: none;
    stroke: #3aff3a;
    stroke-width: 1.5;
}

#display {
    position: relative;
}

#field, #overlay {
    position: absolute;
    top: 0;
    left: 0;
}

#details {
    position: absolute;
    bottom: 50px;
    left: 2%;
}

#arrow {
    display: none;
}

#notice {
    position: absolute;
    bottom: 4%;
    right: 1%;
    font-size: 1.25rem;
}

#about {
    display: none;
}

#color-bar {
    display: none;
    position: fixed;
    bottom: 38px;
    left: 0;
    right: 0;
    height: 14px;
    z-index: 49;
    padding: 0 10px;
    align-items: center;
    gap: 6px;
}

#color-bar.visible {
    display: flex;
}

#color-bar-canvas {
    flex: 1;
    height: 6px;
    border-radius: 3px;
}

#color-bar-label {
    font-size: 0.6em !important;
    color: #888;
    white-space: nowrap;
}

#controls {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 50;
    flex-wrap: wrap;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 4px;
}

.control-label {
    font-size: 0.7em !important;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 2px;
    white-space: nowrap;
}

.pill-group {
    display: flex;
    gap: 2px;
}

.pill {
    font-size: 0.7em !important;
    padding: 3px 7px;
    border: 1px solid #444;
    border-radius: 10px;
    color: #888;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
    transition: all 100ms ease;
    line-height: 1.2;
}

.pill:hover {
    color: #fff;
    border-color: #888;
}

.pill.active {
    color: #fff;
    background: #335;
    border-color: #668;
}

#details h1, #details h2 {
    font-size: 1.5em;
}

h1, h2 {
    font-size: 2.4em;
}

#details h3 {
    font-size: 2.4em;
}

h3 {
    font-size: 1.5em;
    line-height: 2.4em;
}

p, span {
    font-size: 1.75em;
}

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

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

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

a:hover, a:focus {
    color: #fff;
    transition: color 125ms ease-in;
    -webkit-transition: color 125ms ease-in;
}

.no-touch .text-button:hover, .no-touch .text-button:focus {
    color: #fff;
    transition: color 125ms ease-in;
    -webkit-transition: color 125ms ease-in;
    cursor: default;
}

.text-button:active {
    color: #fff;
    transition: color 25ms ease-in;
    -webkit-transition: color 25ms ease-in;
}

#info-button {
    position: fixed;
    bottom: 12px;
    right: 12px;
    font-size: 1.6em;
    color: #888;
    cursor: pointer;
    z-index: 100;
    user-select: none;
    line-height: 1;
}

#info-button:hover {
    color: #fff;
    transition: color 125ms ease-in;
}

#info-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 200;
}

#info-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 1.5em 2em;
    max-width: 520px;
    width: 90%;
}

#info-modal-content h1 {
    margin-bottom: 0.4em;
}

#info-modal-content p {
    margin: 0.3em 0;
    line-height: 1.6;
}

#info-modal-close {
    position: absolute;
    top: 8px;
    right: 14px;
    font-size: 1.8em;
    color: #888;
    cursor: pointer;
    line-height: 1;
}

#info-modal-close:hover {
    color: #fff;
}
