:root {
  --background-color: light-dark(oklch(0.98 0 0), oklch(0.16 0.11 266.88));
  --foreground-color: light-dark(black, oklch(0.83 0.0833 266.57));
  --border-color: light-dark(oklch(0.87 0 0), oklch(0.68 0.1704 266.34));
  --focus-color: light-dark(oklch(0.91 0.1327 94.23), oklch(0.42 0.1882 266.4));
  --code-color: light-dark(oklch(0.9 0.0011 17.18), oklch(0.25 0.1665 266.52));
  
  --primary-color: oklch(0.56 0.1882 266.4);
  
  --small-space: 0.1rem;
  --medium-space: 0.5rem;
  --large-space: 1rem;
}

* {
  box-sizing: border-box;
}

main {
  padding: 0;
}
h1 {
  margin: 0;
}
h2 {
  margin-bottom: 1rem !important;
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
nav ul {
  display: flex;
  flex-direction: row;
  list-style: none;
  padding: 0;
  gap: 1rem;
  align-items: center;
}
nav a {
  border: none;
}

svg {
  fill: var(--primary-color);
  max-height: 1rem;
}

@media (prefers-contrast: more) {
  :root {
    --border-color: light-dark(black, oklch(0.68 0.1704 266.34));
  }
}

html {
  color-scheme: light dark;
  overflow-y: scroll;
  font-family: "Standard", sans-serif;
  padding: 0 1rem;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}
.container {
  padding-bottom: 3rem;
}
@media screen and (max-width: 1000px) {
  .grid {
    display: block;
  }
}
* {
  line-height: 1.5;
}

h2 + *, h3 + * {
  margin-top: 0.5rem;
}

html, input[type="text"], .list_entry, button, .search_indicator, pre, .list-entry, textarea {
  background-color: var(--background-color);
}

button {
  font-size: 1.1rem;
}

textarea {
  field-sizing: content;
}

input[type="text"], .list_entry, button, .search_indicator, textarea {
  border: var(--small-space) solid var(--border-color);
  color: var(--foreground-color);
}

p, em, li, abbr, dl, dt, dd, pre, sup, figcaption, caption, blockquote, cite, img, details, summary {
  color: var(--foreground-color);
  text-wrap: pretty;
}
a > em {
  color: inherit;
} 
h2 {
  font-size: 1.5rem;
  margin-bottom: 0;
}
.side-by-side {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}


.full-width {
  width: 100%;
  margin-top: 1rem;
}

h2 {
  margin: 0;
  padding: 0;
  margin-bottom: 0 !important;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 0;
  margin-top: 0;
}
.side-by-side {
  margin-top: 1rem;
}
button {
  align-items: center;
  display: flex;
}
h4 {
  margin-bottom: 0;
}

h3 + *, h4 + * {
  margin-top: 0.25rem;
}

p, em, li, abbr, dl, dt, dd, pre {
  font-size: 1.075rem;
}

h1 {
  font-size: 2rem;
}

input[type="text"], textarea {
  width: 100%;
  font-size: 1rem;
  border-radius: 0.25em;
  padding: 0.5em;
}

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

h4 {
  font-size: var(--large-space);
}

h1, h2, h3, h4, h5, h6, a {
  color: light-dark(var(--primary-color), var(--border-color))
}

a {
  text-decoration: none;
  border-bottom: var(--small-space) solid var(--primary-color);
}

a:hover, a:active, .hover_link {
  background-color: light-dark(lightgrey, var(--focus-color));
  color: light-dark(var(--primary-color), var(--foreground-color));
}


a:focus, summary:focus, .focused_link, button:focus, button:hover, input[type="text"]:focus {
  background-color: var(--focus-color);
  color: var(--foreground-color);
  outline: none;
}

button {
  border-radius: 0.25rem;
  cursor: pointer;
  outline: none;
  font-size: var(--large-space);
}

.question:not(:last-child) {
    margin-top: 4vh;
}

.options {
    align-items: center;
    display: grid;
    gap: .75rem;
    margin: 1rem 0;
    border-left: 0.25rem solid var(--primary-color);
    padding-left: 1rem;
}


details {
    margin-top: 3vh;
}

details > button {
    margin-bottom: 1rem;
}

h4 {
  margin-top: 0;
}

.answers {
    border-left: 0.25rem solid var(--primary-color);
    padding-left: 1rem;
    margin-top: 1rem;

    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.answers input,
.answers textarea {
    width: 100%;
    padding: 0.75rem;
}

.answers textarea {
    min-height: 120px;
}

.answers-select {
  margin-top: 1vh; 
}

.html-preview textarea {
  margin-bottom: 4vh;
  min-height: 10rem;
}

.delete {
  padding: 0 0.25rem;
  margin: 0;
  padding-right: 1.25rem;
  width: fit-content;
}
.delete *, .delete-nav * {
  fill: rgb(142, 39, 39);
}

label {
  margin-top: 0.25rem;
  display: block;
  color: var(--foreground-color) !important;
}
.adds-to span {
  color: var(--foreground-color) !important;
}
input[type="checkbox"] {
  height: 1.15rem;
  width: 1.15rem;
}
details {
  cursor: pointer;
}
.question {
  padding-left: 1rem;
  border-left: 0.25rem solid var(--border-color);
}