* {
    box-sizing: border-box
}

html {
    font-size: 16px;
    background: var(--bg);
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body, input, button {
    font-family: "code-saver", ui-monospace;
    font-weight: 400;
}

a {
    color: var(--accent);
}

h1 {
    font-size: 2em;
}

h2 {
    font-size: 1.75em;
}

h3 {
    font-size: 1.5em;
}

h4, h5, h6 {
    font-size: 1.25em;
}

body,
button,
input,
textarea,
select {
  font-size: 1rem;
}

input::placeholder,
textarea::placeholder {
  color: var(--input-placeholder);
}

:where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]), textarea, select):hover,
:where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]), textarea, select):focus {
  background: var(--input-bg-strong);
  outline: none;
  transition: background var(--dur-fast) var(--ease-out);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--glass);
  text-align: left;
}

thead th {
  border-bottom: 1px solid var(--accent);
}

a {
    color: var(--accent) !important;
}

.hidden {
    display:none;
}

.container {
    margin: 0 auto;
}

@media (min-width:640px) {
    .container {
        width: 100%;
        max-width: 820px;
        padding: 2rem 1.5rem;
    }
}


.logo {
    width: 1.8rem;
    height: auto;
    cursor: pointer;
    transform: translateY(3px);
}

.app-header {
    position: sticky;
    top: 0;
    padding-top: 1rem;
    margin-top: -1rem;
    margin-bottom: 1rem;
    background: var(--bg);
    z-index: 1000;
}

.modal-overlay {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgb(0, 0, 0, 0.5);
    z-index: 0;
}

:not(pre)>code[class*=language-], pre[class*=language-] {
    background-color: var(--glass);
}

:where(button, [role="button"], a, [tabindex]):focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: inherit;
    transition: outline-offset 120ms var(--ease-out, cubic-bezier(0.2, 0, 0, 1));
}

:where(button, [role="button"]):active:not(:disabled) {
    transform: scale(0.97);
    transition: transform 80ms var(--ease-out, cubic-bezier(0.2, 0, 0, 1));
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    :where(button, [role="button"]):active:not(:disabled) {
        transform: none;
    }
}