html,
body {
  height: 100dvh;
  height: -webkit-fill-available;
  margin: 0;
  overflow: hidden;
  background: #fff;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
}

header,
footer {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  box-sizing: border-box;
  -webkit-user-select: none;
  user-select: none;
}

header {
  padding-top: max(12px, env(safe-area-inset-top));
}

footer {
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}

main {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  align-items: stretch;
  min-height: 0;
  overflow: auto;
  -webkit-user-select: text;
  user-select: text;
}

.container {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: min(36rem, 100%);
  min-height: 100%;
  padding: 16px;
  box-sizing: border-box;
  text-align: center;
  gap: 0.8em;
}

.container > * {
  margin: 0;
}

.line {
  margin: 0;
}

footer .line a {
  margin-right: 0.6em;
}
