/**
 * Mixins and variables
 */
/**
 * Styles for page
 */
* {
  margin: 0;
  padding: 0; }

body {
  background-color: #000000;
  font-size: 14px;
  line-height: 20px;
  margin: 0;
  overflow: hidden;
  font-family: 'Lora', Georgia, serif;
  position: fixed; }

#loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: #000; }
  #loader div {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -80px;
    margin-left: -250px;
    text-align: center; }
  #loader p {
    color: #fff;
    width: 500px;
    font-size: 21px;
    line-height: 40px;
    font-style: italic;
    font-weight: normal;
    padding-bottom: 20px;
    text-shadow: 0 0 3px #fff, 0 0 10px #000; }

.marker {
  font-family: 'Lekton', monospace;
  -moz-user-select: -moz-none;
  -khtml-user-select: none;
  -webkit-user-select: none;
  /*
   Introduced in IE 10.
   See http://ie.microsoft.com/testdrive/HTML5/msUserSelect/
  */
  -ms-user-select: none;
  user-select: none;
  position: absolute;
  padding: 0px 0px;
  cursor: pointer;
  -webkit-transform-style: preserve-3d;
  -moz-transform-style: preserve-3d;
  -webkit-transition: opacity 0.5s;
  -moz-transition: opacity 0.5s;
  -ms-transition: opacity 0.5s;
  -o-transition: opacity 0.5s;
  transition: opacity 0.5s; }
  .marker span.name {
    color: #fff;
    text-shadow: 0 0 3px #fff, 0 0 10px #000;
    -webkit-transition: text-shadow 0.25s;
    -moz-transition: text-shadow 0.25s;
    -ms-transition: text-shadow 0.25s;
    -o-transition: text-shadow 0.25s;
    transition: text-shadow 0.25s; }
    .marker span.name:hover {
      text-shadow: 0 0 3px #fff, 0 0 5px #fff, 0 0 10px #fff, 0 0 20px #fff; }
  .marker.label span.name {
    cursor: default !important;
    font-size-adjust: none; }
    .marker.label span.name:hover {
      text-shadow: 0 0 3px #fff, 0 0 10px #000 !important; }
  .marker span.name {
    color: #fff;
    text-shadow: 0 0 3px #fff, 0 0 10px #000;
    -webkit-transition: text-shadow 0.25s;
    -moz-transition: text-shadow 0.25s;
    -ms-transition: text-shadow 0.25s;
    -o-transition: text-shadow 0.25s;
    transition: text-shadow 0.25s; }
    .marker span.name:hover {
      text-shadow: 0 0 3px #fff, 0 0 5px #fff, 0 0 10px #fff, 0 0 20px #fff; }

.legacymarker {
  font-family: 'Lekton', monospace;
  -moz-user-select: -moz-none;
  -khtml-user-select: none;
  -webkit-user-select: none;
  /*
   Introduced in IE 10.
   See http://ie.microsoft.com/testdrive/HTML5/msUserSelect/
  */
  -ms-user-select: none;
  user-select: none;
  position: absolute;
  padding: 6px 8px;
  min-width: 140px;
  -webkit-transition: opacity 0.5s;
  -moz-transition: opacity 0.5s;
  -ms-transition: opacity 0.5s;
  -o-transition: opacity 0.5s;
  transition: opacity 0.5s;
  display: inline; }
  .legacymarker span.name {
    display: inline-block;
    width: 100%;
    color: #fff;
    text-shadow: 0.1em 0.1em 4px #000;
    -webkit-transition: text-shadow 0.25s;
    -moz-transition: text-shadow 0.25s;
    -ms-transition: text-shadow 0.25s;
    -o-transition: text-shadow 0.25s;
    transition: text-shadow 0.25s;
    text-align: center;
    margin-left: auto;
    margin-right: auto; }

#icon-nav {
  position: absolute;
  top: 0;
  left: 0;
  padding: 20px 20px 16px 20px; }
  #icon-nav > * {
    opacity: 0.8;
    vertical-align: top;
    cursor: pointer;
    display: inline-block;
    -webkit-transition: opacity 0.25s;
    -moz-transition: opacity 0.25s;
    -ms-transition: opacity 0.25s;
    -o-transition: opacity 0.25s;
    transition: opacity 0.25s; }
    #icon-nav > *:hover {
      opacity: 1.0; }
    #icon-nav > *:not(:first-child) {
      margin-left: 10px; }

#controlshelp {
  background-color: rgba(0, 0, 0, 0.65);
  padding: 15px;
  color: #ffffff;
  font-size: 32px;
  -moz-user-select: -moz-none;
  -khtml-user-select: none;
  -webkit-user-select: none;
  /*
   Introduced in IE 10.
   See http://ie.microsoft.com/testdrive/HTML5/msUserSelect/
  */
  -ms-user-select: none;
  user-select: none; }

#layout {
  -webkit-transform: scale(1.25);
  -moz-transform: scale(1.25);
  -ms-transform: scale(1.25);
  -o-transform: scale(1.25);
  transform: scale(1.25);
  -webkit-transition: all 0.25s;
  -moz-transition: all 0.25s;
  -ms-transition: all 0.25s;
  -o-transition: all 0.25s;
  transition: all 0.25s; }

.unselectable {
  -moz-user-select: -moz-none;
  -khtml-user-select: none;
  -webkit-user-select: none;
  /*
   Introduced in IE 10.
   See http://ie.microsoft.com/testdrive/HTML5/msUserSelect/
  */
  -ms-user-select: none;
  user-select: none; }

#star-name,
#detailTitle {
  color: #fff;
  font-size: 42px;
  line-height: 60px;
  margin: 0 0 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.75);
  position: relative;
  display: block;
  font-style: italic;
  text-shadow: 0 0 3px #2c47dc, 0 0 10px #eeeeff;
  -moz-user-select: -moz-none;
  -khtml-user-select: none;
  -webkit-user-select: none;
  /*
   Introduced in IE 10.
   See http://ie.microsoft.com/testdrive/HTML5/msUserSelect/
  */
  -ms-user-select: none;
  user-select: none; }

#star-name {
  position: fixed;
  left: 0;
  bottom: 0;
  margin: 0 20px 25px 20px;
  width: 560px;
  display: none;
  -moz-user-select: -moz-none;
  -khtml-user-select: none;
  -webkit-user-select: none;
  /*
   Introduced in IE 10.
   See http://ie.microsoft.com/testdrive/HTML5/msUserSelect/
  */
  -ms-user-select: none;
  user-select: none; }
  #star-name span {
    cursor: pointer; }

#detailBody {
  color: white;
  z-index: 9999;
  display: block;
  text-shadow: 0 0 7px rgba(255, 255, 255, 0.7); }
  #detailBody p:first-child {
    text-indent: 10px; }
  #detailBody p + p {
    margin-top: 20px; }

#detailContainer {
  display: none;
  background-color: rgba(0, 0, 0, 0.75);
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  padding: 0 20px 60px 20px;
  overflow: auto;
  width: min(560px, 100%);
  box-sizing: border-box;
  z-index: 10001 !important; }
  #detailContainer ul {
    margin-left: 20px; }
    #detailContainer ul li {
      margin-bottom: 10px; }

#detailFooter {
  margin-top: 20px;
  color: #ccc;
  font-size: 12px; }

#detailClose {
  position: absolute;
  top: 0;
  right: 0;
  cursor: pointer;
  color: #fff;
  padding: 10px;
  font-size: 28px; }
  #detailClose > * {
    text-shadow: 0 0 transparent;
    display: inline-block;
    margin-left: 10px;
    opacity: 0.8; }
    #detailClose > *:hover {
      opacity: 1.0; }

div.tip {
  font-size: 14px;
  line-height: 14px;
  display: inline-block;
  font-style: italic;
  padding: 0;
  margin-top: 0;
  margin-left: 0;
  color: #fff; }
  div.tip > div {
    display: inline-block;
    vertical-align: top; }

#minimap {
  opacity: .92;
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 58px;
  color: #fff;
  text-align: center;
  padding: 18px 10px 24px;
  background: linear-gradient(90deg, transparent, rgba(5, 3, 8, .4));
  -moz-user-select: -moz-none;
  -khtml-user-select: none;
  -webkit-user-select: none;
  /*
   Introduced in IE 10.
   See http://ie.microsoft.com/testdrive/HTML5/msUserSelect/
  */
  -ms-user-select: none;
  user-select: none;
  -webkit-transition: opacity 0.25s;
  -moz-transition: opacity 0.25s;
  -ms-transition: opacity 0.25s;
  -o-transition: opacity 0.25s;
  transition: opacity 0.25s;
  z-index: 9999;
  /**
   * Zoom variables
   */ }
  #minimap.ready {
    opacity: .96; }
  #minimap.ready:hover,
  #minimap:hover {
    opacity: 1.0; }
  #minimap #home {
    cursor: pointer;
    -webkit-transition: all 0.25s;
    -moz-transition: all 0.25s;
    -ms-transition: all 0.25s;
    -o-transition: all 0.25s;
    transition: all 0.25s; }
  #minimap #zoom-levels {
    left: auto;
    right: auto;
    position: relative;
    width: 26px;
    height: calc(100vh - 250px) !important;
    min-height: 180px;
    cursor: ns-resize;
    touch-action: none;
    border: 1px solid rgba(255, 247, 241, .6);
    border-radius: 999px;
    background: rgba(5, 3, 8, .52);
    box-shadow: 0 0 20px rgba(185, 201, 255, .14);
    -webkit-transition: all 0.25s;
    -moz-transition: all 0.25s;
    -ms-transition: all 0.25s;
    -o-transition: all 0.25s;
    transition: all 0.25s;
    margin: 100px auto 0; }
  #minimap #zoom-backdrop {
    position: relative;
    width: 2px;
    height: 100%;
    margin: 0 auto;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 247, 241, .48); }
  #minimap #zoom-cursor {
    position: absolute;
    top: 0;
    left: 50%;
    width: 30px;
    height: 28px;
    border: 1px solid rgba(255, 247, 241, .88);
    border-radius: 999px;
    background: linear-gradient(135deg, #fff7f1, #c7d4ff 56%, #a981ad);
    box-shadow: 0 0 0 4px rgba(185, 201, 255, .1), 0 0 16px rgba(185, 201, 255, .48);
    transform: translate(-50%, -50%);
    cursor: grab; }
  #minimap #zoom-cursor::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 2px;
    border-radius: 999px;
    background: rgba(5, 3, 8, .38);
    transform: translate(-50%, -50%); }
  #minimap #zoom-levels:active #zoom-cursor { cursor: grabbing; }
  #minimap #about {
    position: fixed;
    top: 84px;
    right: 20px;
    left: auto;
    bottom: auto;
    font-family: 'Lekton', monospace;
    font-size: 22px;
    width: 30px;
    line-height: 30px;
    text-align: center;
    height: 30px;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    border-radius: 50%;
    -webkit-transition: all 0.25s;
    -moz-transition: all 0.25s;
    -ms-transition: all 0.25s;
    -o-transition: all 0.25s;
    transition: all 0.25s;
    font-weight: bold;
    cursor: pointer;
    margin-left: 0;
    color: #fff;
    background: rgba(5, 3, 8, .55);
    border: 1px solid rgba(255, 255, 255, .35);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    z-index: 10000; }
  body:has(#detailContainer.about) #minimap {
    opacity: 0 !important;
    visibility: hidden;
    pointer-events: none; }
  body:has(#detailContainer.about) #minimap #about {
    opacity: 0 !important;
    visibility: hidden;
    pointer-events: none; }
  #minimap #volume {
    cursor: pointer;
    width: 24px;
    height: 24px; }
  #minimap #sound {
    cursor: pointer;
    -webkit-transition: all 0.25s;
    -moz-transition: all 0.25s;
    -ms-transition: all 0.25s;
    -o-transition: all 0.25s;
    transition: all 0.25s;
    bottom: 13px;
    right: 54px;
    position: absolute;
    visibility: visible; }
  #minimap #soundoff {
    cursor: pointer;
    -webkit-transition: all 0.25s;
    -moz-transition: all 0.25s;
    -ms-transition: all 0.25s;
    -o-transition: all 0.25s;
    transition: all 0.25s;
    bottom: 13px;
    right: 54px;
    position: absolute;
    display: none; }

sup {
  vertical-align: super;
  font-size: 9.24px;
  line-height: 0; }

.reference {
  display: none;
  visibility: hidden; }

a {
  -webkit-transition: border 0.25s;
  -moz-transition: border 0.25s;
  -ms-transition: border 0.25s;
  -o-transition: border 0.25s;
  transition: border 0.25s; }
  a:link, a:active, a:visited {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5); }
  a:hover {
    border-bottom: 1px solid rgba(0, 0, 0, 0);
    text-decoration: none; }

::selection,
::-moz-selection {
  background: #2c47dc; }

#css-world {
  width: 100%;
  height: 100%;
  -webkit-transform-style: preserve-3d;
  -moz-transform-style: preserve-3d;
  position: absolute; }

#css-camera {
  width: 100%;
  height: 100%;
  -webkit-transform-style: preserve-3d;
  -moz-transform-style: preserve-3d;
  position: absolute; }

#css-container {
  width: 100%;
  height: 100%;
  top: 0px;
  left: 0px;
  position: absolute; }

canvas {
  pointer-events: none;
  z-index: 10; }

#chrome-experiments {
  width: 141px;
  height: 72px; }
  #chrome-experiments a {
    border-bottom: 0px; }


/* SJTUMUNC: attribution moved from the host page into the About panel. */
#detailContainer .astra-attribution { margin-top: 18px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.18); font-size: 11px; line-height: 1.7; opacity: .7; }
#detailContainer .astra-attribution a { color: inherit; }

/* SJTUMUNC: the global site music is used instead of the exhibit soundtrack. */
#minimap #volume { display: none !important; }

/* SJTUMUNC: keep the native zoom rail above the fixed host footer on phones. */
@media (max-width: 760px) {
  #minimap #zoom-levels { height: calc(100vh - 280px) !important; }
}
