:root {
  --carbon-black: #18181b;
  --alabaster-grey: #e4e4e7;

  --bg-color: var(--carbon-black);
  --color: var(--alabaster-grey);

  --font-stack: monospace;

  font-size: 1.6em;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "slnt" 0, "wdth" 100, "GRAD" 0, "ROND" 0;
}

iframe,
hr,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: 100%;
  font-weight: normal;
}

iframe {
  border: 0;
}

b,
strong {
  font-weight: bolder;
}

small {
  font-size: 80%;
}

table {
  border-color: currentcolor;
}

progress {
  vertical-align: baseline;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg-color: var(--alabaster-grey);
    --color: var(--carbon-black);
  }
}

body {
  background-color: var(--bg-color);
  font-family: var(--font-stack);
  margin-left: 30%;
  margin-right: 30%;
  text-align: start;
  hyphens: auto;
  word-spacing: normal;
  font-size: 1rem;
  margin-top: 5vh;
}

@media (max-width: 1500px) {
  body {
    margin-left: 20%;
    margin-right: 20%;
  }
}

@media (max-width: 1000px) {
  body {
    margin-left: 10%;
    margin-right: 10%;
  }
}

@media print {
  [print-hide] {
    display: none !important;
  }
}

h1 {
  font-size: 1.3rem;
  font-weight: bolder;
}

h2 {
  font-size: 1.2rem;
  font-weight: bolder;
}

[hidden] {
  display: none !important;
}

[nosel] {
  -webkit-user-select: none;
  user-select: none;
}

[center] {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-grow: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

a {
  text-decoration: underline;
  text-underline-offset: 4px;
  color: var(--color) !important;
}

.opacity50 {
  opacity: 50%;
}

.full-width {
  width: 100%;
}

button {
  border: 0.1rem solid var(--color);
  padding: 0.2rem 0.4rem;
  background-color: var(--bg-color);
  color: var(--color);
  font-family: --var(--font-stack);
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-size: 1rem;
  cursor: pointer;
  box-sizing: border-box;
  a {
    text-decoration: none;
  }
}

p svg,
a svg,
span svg,
li svg,
h1 svg,
h2 svg,
h3 svg,
h4 svg,
h5 svg,
h6 svg,
button svg,
p img,
h1 img,
h2 img,
summary svg {
  height: 1em;
  vertical-align: -0.15em;
  width: auto;
}

hr {
  border-color: var(--color);
  margin: 5% 0%;
}

kbd {
  border: var(--color) solid 0.1rem;
  color: var(--text-color);
  padding: 0.1rem 0.3rem 0.1rem 0.3rem;
}

mark {
  padding: 0.1rem 0.1rem;
  background-color: var(--color);
  color: var(--bg-color);
}

code,
pre {
  background-color: var(--color);
  color: var(--bg-color);
  font-family: var(--font-stack);
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-size: 1rem;
  overflow-x: scroll;
}

code {
  padding: 0.1rem;
}

pre {
  padding: 0.5rem;
}

summary {
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

details[open] div {
  border-left: 0.1em solid var(--color);
  padding-left: 1rem;
}

header {
  margin-bottom: 10%;
}

footer {
  font-size: 70%;
  margin-top: 10%;
}

.card {
  padding: 0.5em 1rem;
  border: 0.1rem solid var(--color);
}

.blur {
  filter: blur(10px);
}

.project-title {
  font-size: 1rem;
}

.project-description {
  font-size: 0.7rem;
}

/* New Input Styles */
input,
textarea,
select {
  background-color: var(--bg-color);
  color: var(--color);
  border: 0.1rem solid var(--color);
  font-family: var(--font-stack);
  font-size: 1rem;
  padding: 0.2rem 0.4rem;
  box-sizing: border-box;
  width: 100%;
}

textarea {
  resize: both;
  width: 100%;
}

optgroup {
  font-family: var(--font-stack);
  font-weight: bolder;
  background-color: var(--bg-color);
  color: var(--color);
}

input:focus,
textarea:focus,
select:focus {
  outline: 1px solid var(--color);
  outline-offset: 1px;
}
