/* copied from a previous project which is why it has code styles and stuff */

body {
  font-family: Verdana, sans-serif;
  margin: auto;
  padding: 20px;
  max-width: 80%;
  background-color: #f0f2f5;
  color: #444;
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
  color: #222;
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

strong, b {
  color: #222;
}

a {
  color: #3273dc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

input, textarea {
  font-size: 16px;
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

button {
  background-color: #3273dc;
  color: #fff;
  border: none;
  padding: 0.6rem 1rem;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 0.5rem;
}

button:hover {
  background-color: #2255aa;
}

figure {
  margin: 2rem auto;
  text-align: center;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

figcaption {
  margin-top: 0.5rem;
  font-style: italic;
  color: #666;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

table, th, td {
  border: 1px solid #ddd;
  padding: 8px;
}

blockquote {
  border-left: 3px solid #999;
  color: #222;
  padding-left: 20px;
  font-style: italic;
  margin: 1.5rem 0;
}

footer {
  padding: 25px;
  text-align: center;
}

.helptext {
  color: #777;
  font-size: small;
}

.errorlist {
  color: #eba613;
  font-size: small;
}

ul.blog-posts {
  list-style-type: none;
  padding: 0;
}

ul.blog-posts li {
  display: flex;
  align-items: center;
  padding: 10px 0;
}

ul.blog-posts li span {
  flex: 0 0 130px;
}

ul.blog-posts li a:visited {
  color: #8b6fcb;
}

@media (prefers-color-scheme: dark) {
  body {
    background-color: #333;
    color: #ddd;
  }

  h1, h2, h3, h4, h5, h6 {
    color: #eee;
  }

  strong, b {
    color: #eee;
  }

  a {
    color: #8cc2dd;
  }

  code {
    background-color: #777;
  }

  pre code {
    color: #ddd;
  }

  blockquote {
    color: #ccc;
  }

  textarea, input {
    background-color: #252525;
    color: #ddd;
    border: 1px solid #444;
  }

  .helptext {
    color: #aaa;
  }
}
