body {
  font-family: var(--font-body);
  margin: 0;
  padding: 0;
}

/* Resets */

* {
  box-sizing: border-box;
  font-smoothing: antialiased;
  -webkit-font-smoothing: antialiased;
}

::-moz-placeholder {
  color: var(--color-medium);
}

:-ms-input-placeholder {
  color: var(--color-medium);
}

::placeholder {
  color: var(--color-medium);
}

::selection {
  background: #fff700;
  color: #000;
}

:target {
  scroll-margin-top: 90px;
}

@media (prefers-color-scheme: light) {
  .dark {
    display: none;
  }
}

@media (prefers-color-scheme: dark) {
  .light {
    display: none;
  }
}

.full-height {
  transition: height .1s ease-in-out;
  height: calc(var(--vh, 1vh) * 92);
}

/* Domain Specific */

body {
  background: var(--color-window);
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 14px;
  margin: 0;
}

a, a:visited, a:active {
  text-decoration: none;
  color: var(--color-primary);
}

h1, h2, h3 {
  text-transform: uppercase;
  font-family: var(--font-display);
  margin-bottom: 0;
  font-weight: 400;
}

blockquote {
  margin: 20px;
  border-left: 4px solid var(--color-accent);
  padding-left: 10px;
}

blockquote p {
  margin: 0;
  font-style: italic;
}

ul {
  list-style-type: disc;
  margin: 0 0px 0;
}

li {
  line-height: 24px;
  font-size: 16px;
}

/* Code */

body code {
  font: 14px var(--font-monospace);
  line-height: 18px;
  background-color: var(--color-background);
  display: inline-block;
  padding: 2px 4px;
  border-radius: 4px;
  overflow: visible;
  user-select: all;
  -webkit-user-select: all;
}

body pre code {
  display: block;
  padding: 26px;
  overflow: auto;
  overflow-y: hidden;
  user-select: all;
  -webkit-user-select: all;
}

body p > code,
body a > code,
body table code,
body li > code {
  display: inline;
  padding: 2px 4px;
  margin: 0 2px;
  border-radius: 2px;
  user-select: all;
  -webkit-user-select: all;
}

body a > code {
  padding: 0;
}

/* Tables */

table {
  width: 100%;
  text-align: left;
  border-collapse: collapse;
  border: 1px solid var(--color-border);
  margin: 20px 0;
}

table code {
  padding: 2px 4px;
  border-radius: 4px;
  background-color: var(--color-background) !important;
  color: var(--color-primary) !important;
  border: 1px solid var(--color-border);
}

th {
  font: 13px/16px var(--font-subheader);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 10px;
  background-color: var(--color-background);
  border-bottom: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  color: var(--color-info);
}

td {
  line-height: 22px;
  padding: 10px;
  border-bottom: 1px solid var(--color-border);
}

td:not(:nth-child(1)) {
  word-wrap: break-word; /* Ensure long words break */
  word-break: break-all; /* Ensure long words break */
  overflow-wrap: break-word; /* Ensure long words break */
  overflow: hidden; /* Hide overflow */
  text-overflow: ellipsis; /* Add ellipsis if content overflows */
}

td:not(:first-of-type) {
  border-left: 1px solid var(--color-border);
}

tr:last-of-type td {
  border-bottom: 0;
}

td:last-of-type {
  border-right: 0;
}

@media (max-width: 699px) {
  body table {
    display: block;
    max-width: -moz-fit-content;
    max-width: fit-content;
    margin: 20px 0;
    overflow-x: auto;
    white-space: nowrap;
  }
}

.github-icon {
  margin-left: -4px;
  width: 26px;
  height: 26px;
  color: var(--color-primary);
}

/* Buttons */

button {
  border: none;
  border-radius: 6px;
  place-self: center;
  display: grid;
  align-content: center;
  justify-content: center;
  min-width: 120px;
  height: 24px;
}

button[type] {
  height: 24px;
  width: 24px;
  min-width: 140px;
  color: var(--color-primary);
  text-transform: uppercase;
  transition: all .2s ease;
}

button[type]:hover {
  transform: scale(1.1);
  box-shadow: 0 1px 0 var(--color-shadow);
}

button[type]:active {
  transform: scale(0.97);
}

button[type="accent"] {
  background-color: var(--color-accent);
}

button[type="icon"] {
  width: 24px;
  height: 24px;
  min-width: unset;
  border: none;
}

button[type="icon"]:hover {
  box-shadow: none;
}

button[type="icon"] svg {
  width: 24px;
  height: 24px;
}

copy-icon button {
  background: transparent;
}

copy-icon.confirm svg {
  width: 16px;
  height: 16px;
}

button.delete,
button[data-value="delete"] {
  background-color: var(--color-danger) !important;
  color: wheat !important;
}

button.confirm,
button[type="confirm"] {
  background-color: accentcolor !important;
  color: white !important;
}

/* Links */

.button-link {
  text-transform: uppercase;
  letter-spacing: 0.2px;
  font-weight: 600;
  font-size: 12px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 140px;
  min-height: 40px;
  border: none;
  border-radius: 6px;
  transition: transform .2s ease;
}

.button-link.primary {
  background: var(--color-primary);
  color: var(--color-window);
}

.button-link:hover {
  transform: scale(1.04);
}
