:root {
  --glass-radius: 1rem;
  --glass-pad: 0.9rem 1.4rem;
  --glass-gap: 0.75rem;
  --glass-border: 1px solid rgba(255, 255, 255, 0.6);
}

.glass-panel {
  gap: var(--glass-gap);
  padding: 1.25rem;
  border-radius: calc(var(--glass-radius) * 1.2);
  background: radial-gradient(
      circle at top left,
      rgba(255, 255, 255, 0.2),
      transparent 60%
    ),
    radial-gradient(circle at bottom right, rgba(0, 0, 0, 0.6), transparent 55%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
}

#info-panels {
  font-family: "Crimson Text", serif;
  font-weight: 400;
  font-style: normal;
  display: block;
  position: fixed;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 2;
}

#right-panel {
    position: absolute;
    overflow: auto;
    display: none;
    user-select: contain;
  }

@media (orientation: landscape) {
  #right-panel {
    height: 50%;
    width: 45%;
    top: 20%;
    left: 50%;
  }
  #back-button {
    right: 5%;
    top: 15%;
    }
}
@media (orientation: portrait) {
  #right-panel {
    height: 30%;
    width: 90%;
    top: 10%;
    left: 5%;
  }
  #back-button {
  right: 5%;
  top: 5%;
}
}

md-block:not([rendered]) { display: none }

#bottom-panel {
  background: rgba(0, 0, 0, 0);
  position: absolute;
  height: 20%;
  width: 90%;
  top: 75%;
  left: 5%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  display: none;
}

#bottom-panel > div {
  overflow-y: auto;
}

#about-panel {
  position: absolute;
  overflow: auto;
  height: 90%;
  width: 90%;
  top: 5%;
  left: 5%;
  display: none;
  user-select: contain;
}

#experience {
  position: fixed;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
  z-index: 0;
}

#experience-canvas {
  width: 100%;
  height: 100%;
}

#overlay {
  font-family: "Crimson Text", serif;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  z-index: 1;
  display: block;
}

#overlay > div {
  position: absolute;
  left: 0;
  top: 0;
  user-select: none;
  color: white;
  text-shadow: 1px 1px 2px black;
  text-align: center;
  font-size: large;
}

#scroll-area {
  height: 500vh;
  overscroll-behavior: none;
}

#back-button {
  position: absolute;
  padding: 0%;
  width: 100px;
  user-select: none;
  color: white;
  text-align: center;
  font-size: large;
  display: none;
}


#about-button {
  position: absolute;
  overflow: visible;
  width: 2rem;
  height: 2rem;
  right: 1rem;
  top: 1rem;
  border-radius: 50%;
  justify-content: center;
  text-align: center;
  font-size: xx-large;
  line-height: 0px;
  display: flex;
}
#about-button > span {
  margin-left: -100%;
  margin-right: -100%;
  user-select: none;
}

.cn {
  text-shadow: black -5px 5px;
  font-family: "Noto Serif TC", serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
}

.quote {
  /*font-style: italic;*/
  margin-bottom: -0.25rem; /* This is to try to compensate for weirdly large md-block bottom margin" */
}
