@charset "UTF-8";

@media only screen {
  body {
    color: #bfc7a9;
  }

  html {
    background-color: #1d1d1d;
  }
}

@media screen {
  .page {
    background-color: #fff;
    box-shadow: 2px 2px 5px 1px rgba(240, 240, 240, .25);
    filter: drop-shadow(2px 2px 5px rgba(240, 240, 240, .75));
    margin: 20px;
    padding: 0;
  }
}

@page {
  margin: 0;
}

.none {
  display: none;
}

.scrollable-y {
  max-height: 80svh;
  overflow-y: scroll;
}

a,
a:visited {
  color: #eee;
}

body,
header,
html,
svg {
  margin: 0;
  padding: 0;
}

body,
html {
  height: auto !important;
}

button,
input[type="file"],
input[type="reset"],
input[type="submit"] {
  cursor: pointer;
}

dialog {
  background-color: rgb(72, 72, 72);
  border: 4px outset rgba(168, 168, 168, .5);
  border-radius: 8px;
  box-shadow: 2px 2px 5px 2px rgba(224, 224, 224, .75);
  color: #bfc7a9;
  padding: 12px 8px 4px 8px;
}

dialog::backdrop {
  background: rgba(29, 29, 29, 0.75);
  backdrop-filter: blur(4px);
}

dialog:has(>main>article) {
  padding: 0;
}

dialog>main {
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin: 0;
  padding: 0;
}

dialog>main>article {
  background-color: #333;
  color: #eee;
  display: inline-block;
  font-family: monospace;
  margin: 0;
  padding: 4px 8px;
  width: calc(100% - 3em);
}

dialog>nav {
  align-items: center;
  display: grid;
  grid-template-columns: repeat(2, auto);
  margin: 0 0 8px 0;
  padding: 2px 0 2px 1em;
}

dialog>nav>h2 {
  font-size: 125%;
  margin: 0;
}

dialog>nav>button {
  justify-self: right;
  width: fit-content;
}

fieldset,
h1,
h4,
img,
input,
label,
legend,
summary {
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  user-select: none;
}

fieldset {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 6px;
  width: fit-content;
}

h1.header,
img.logo {
  display: inline-block;
}

h4 {
  color: #eee;
  text-decoration-line: underline;
  text-underline-offset: 2px;
}

header {
  align-items: center;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  padding: 0 16px;
}

header>span {
  align-items: center;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 8px;
}

main {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 16px;
  padding: 16px 0 0 0;
}
