:root {
  --background: #f4f0ec;
  --edge-gutter: 2.15%;
  --edge-height: 40px;
  --center-size: 460px;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: var(--background);
  color: #000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  font-weight: 400;
  font-style: normal;
  line-height: normal;
}

h1,
p {
  margin: 0;
}

a,
a:visited,
a:hover,
a:active {
  color: inherit;
  text-decoration: none;
}

.edge-row {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  height: var(--edge-height);
  padding-inline: var(--edge-gutter);
  background: var(--background);
}

.edge-row--top {
  top: 0;
}

.edge-row--bottom {
  bottom: 0;
}

.edge-position--left {
  grid-column: 1;
  justify-self: start;
  text-align: left;
}

.edge-position--center {
  grid-column: 2;
  justify-self: center;
  text-align: center;
}

.edge-position--right {
  grid-column: 3;
  justify-self: end;
  text-align: right;
}

.site-title {
  font-size: 18px;
  font-weight: 600;
}

.center-stage {
  position: fixed;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--center-size);
  height: var(--center-size);
  transform: translate(-50%, -50%);
}

.center-media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.center-text {
  margin: 0;
  /*font-size: 18px;*/
  font-size: 24px;
  font-weight: 600;
  text-align: center;
}

.center-media[hidden],
.center-text[hidden] {
  display: none;
}

@media (max-width: 700px) {
  :root {
    --edge-gutter: 1.25rem;
    /*--center-size: 360px;*/
    --center-size: min(360px, calc(100vw - 60px));
  }
}



/* Removes the highlight background and color change globally */
::selection {
  background-color: transparent;
  color: inherit;
}

/* Ensures support for older versions of Firefox */
::-moz-selection {
  background-color: transparent;
  color: inherit;
}
