:root {
  --page-width: 48rem;
  --frame-color: black;
  --transparent: #bada5500;
  --page-height: 75vh;
  --frame-height: calc((100vh - var(--page-height)) / 2);
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  min-height: 100vh;
  background: var(--frame-color);
}

#spinner {
  display: none;
  opacity: 0;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
}

#spinner.htmx-request {
  display: flex;
  opacity: 0.2;
}

.invis {
  opacity: 0;
}

#page {
  display: flex;
  flex-direction: column;
  max-width: var(--page-width);
}

.p-spacer {
  height: var(--frame-height);
}

.p-illust {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: var(--page-width);
}

.p-illust img {
  max-width: 80%;
}

#briar-recap,
#briar-secrets {
  background: #fff;
  padding: 2rem;
  padding-top: 0.75rem;
}

.virtual-frame {
  pointer-events: none;
  top: 0;
  left: 0;
  background: var(--transparent);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: fixed;
  height: 100vh;
  width: 100vw;
}

#vf-top {
  flex-grow: 1;
}

#vf-bottom {
  flex-grow: 1;
}

.vf-left {
  flex-grow: 1;
}

.vf-right {
  flex-grow: 1;
}

.vf-solid {
  background: var(--frame-color);
  pointer-events: auto;
}

.vf-clear {
  background: var(--transparent);
}

#vf-middle {
  background: var(--transparent);
  display: flex;
  flex-direction: row;
}

#vf-pane {
  background: var(--frame-color);
  opacity: 0;
  min-width: var(--page-width);
  max-width: var(--page-width);
  height: var(--page-height);
}

.vf-open {
  animation-name: vf-open;
  animation-duration: 0.75s;
  animation-timing-function: ease-in-out;
}

@keyframes vf-open {
  0% {
    height: 0;
    opacity: 1;
  }
  75% {
    opacity: 0;
  }
  100% {
    height: var(--page-height);
  }
}

.scroll-appear {
  animation-name: scroll-appear;
  animation-duration: 0.75s;
  animation-timing-function: ease-in-out;
}

@keyframes scroll-appear {
  0% {
    filter: brightness(0%);
  }
  75% {
    filter: brightness(100%);
  }
}

.flex-row-center-start {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.flex-row-center-end {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
