html {
  background: #fefefe;
  color: #696969;
  font: 400 18px/1.57142 system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: -0.49px;
  -webkit-text-size-adjust: none;
}

body {
  margin: 2em auto 0;
  padding: 0 20px 4em;
}

h1 {
}

h2 {
  font-size: 18px;
  margin: 2em 0 0.2em;
}

a {
  color: #3d9fcb;
  font-weight: 500;
  text-decoration: none;
}

a:hover {
  color: #5a95fa;
  text-decoration: underline;
}

ul {
  margin: 0;
}

nav {
  font-weight: 500;
  margin: 2em 0;
  position: relative;
  z-index: 2;
}

nav ul + ul {
  margin: 1em 0;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  list-style: none;
  padding: 0;
}

img {
  display: block;
}

code {
  font-size: 14px;
}

button {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  font-weight: bold;
}

img {
  max-width: 100%;
}

video,
canvas {
  width: 100%;
  border: 2px solid #ccc;
}

iframe {
  border: 1px solid #ccc;
  display: block;
  margin: 10px 0;
}

input {
  font-size: 16px;
}

hr {
  background: #666;
  border: none;
  height: 2px;
}

.user-agent,
.output {
  margin: 2em 0;
}

.history-nav .selected:before,
.theme-nav .selected:before {
  content: "↠ ";
}

.viewport {
  align-items: first;
  background: rgb(246, 255, 108);
  border: 5px solid #999;
  box-sizing: border-box;
  color: #000;
  display: flex;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.safe-area {
  align-items: center;
  background: rgba(255, 191, 204, 0.798);
  border: 5px solid #999;
  box-sizing: border-box;
  color: #000;
  display: flex;
  justify-content: center;
  position: fixed;
  bottom: env(safe-area-inset-bottom);
  left: env(safe-area-inset-left);
  right: env(safe-area-inset-right);
  top: env(safe-area-inset-top);
}

.fixed {
  align-items: center;
  background: pink;
  border: 5px solid #999;
  box-sizing: border-box;
  display: flex;
  font-size: 13px;
  font-weight: bold;
  height: 100px;
  justify-content: center;
  position: fixed;
  width: 100px;
  z-index: 3;
}

.fixed-top {
  left: 0;
  top: 0;
}

.fixed-bottom {
  bottom: 0;
  right: 0;
}

.fixed-env {
  align-items: center;
  background: cyan;
  border: 5px solid #999;
  box-sizing: border-box;
  display: flex;
  font-size: 11px;
  font-weight: bold;
  height: 70px;
  justify-content: center;
  position: fixed;
  width: 70px;
  z-index: 3;
}

.fixed-env-top {
  left: env(safe-area-inset-left);
  top: env(safe-area-inset-top);
}

.fixed-env-bottom {
  bottom: env(safe-area-inset-bottom);
  right: env(safe-area-inset-right);
}

@media (prefers-color-scheme: dark) {

  html {
    background: #010101;
    color: #fff;
  }

}
