/* Reset & Normalize CSS
 * ========================================================================== */

/* 1. Set box-sizing globally for layout consistency. */
*, *::before, *::after {
  box-sizing: border-box;
}

/* 2. Set line height and prevent font size adjustment after orientation changes. */
html {
  line-height: 1.15;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

/* 3. Remove default margin and set base font. */
html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, sans-serif;
}

/* Sections
 * ========================================================================== */

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
 * ========================================================================== */

dl dl,
dl ol,
dl ul,
ol dl,
ol ol,
ol ul,
ul dl,
ul ol,
ul ul {
  margin: 0;
}

hr {
  box-sizing: content-box;
  color: inherit;
  height: 0;
  overflow: visible;
}

main {
  display: block;
}

pre {
  font-family: monospace, monospace;
  font-size: 1em;
}

/* Text-level semantics
 * ========================================================================== */

a {
  background-color: transparent;
}

abbr[title] {
  text-decoration: underline dotted;
}

b,
strong {
  font-weight: bolder;
}

code,
kbd,
samp {
  font-family: monospace, monospace;
  font-size: 1em;
}

small {
  font-size: 80%;
}

/* Embedded content
 * ========================================================================== */

audio,
video {
  display: inline-block;
}

audio:not([controls]) {
  display: none;
  height: 0;
}

img {
  border-style: none;
}

/* Tabular data
 * ========================================================================== */

table {
  border-color: inherit;
  text-indent: 0;
}

/* Forms
 * ========================================================================== */

button,
input,
select,
textarea {
  margin: 0;
  font-family: inherit;
}

button {
  overflow: visible;
  text-transform: none;
}



fieldset {
  padding: 0.35em 0.75em 0.625em;
}

input {
  overflow: visible;
}

legend {
  box-sizing: border-box;
  color: inherit;
  display: table;
  max-width: 100%;
  white-space: normal;
}

progress {
  display: inline-block;
  vertical-align: baseline;
}

select {
  text-transform: none;
}

textarea {
  overflow: auto;
}

[type="checkbox"],
[type="radio"] {
  box-sizing: border-box;
  padding: 0;
}

[type="search"] {
  outline-offset: -2px;
}

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

::-webkit-input-placeholder {
  color: inherit;
  opacity: 0.54;
}

::-webkit-search-decoration {
  -webkit-appearance: none;
}

::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}

::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

:-moz-focusring {
  outline: 1px dotted ButtonText;
}

:-moz-ui-invalid {
  box-shadow: none;
}

/* Interactive
 * ========================================================================== */

details {
  display: block;
}

dialog {
  background-color: white;
  border: solid;
  color: black;
  display: block;
  margin: auto;
  padding: 1em;
  position: absolute;
  left: 0;
  right: 0;
  width: fit-content;
  height: fit-content;
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
}

dialog:not([open]) {
  display: none;
}

summary {
  display: list-item;
}

/* Scripting
 * ========================================================================== */

canvas {
  display: inline-block;
}

template {
  display: none;
}

/* User interaction
 * ========================================================================== */

[hidden] {
  display: none;
}
