/* Feel free to steal the code. I do have stolen it, too */

/* Fallback color variables */

:root{
  --clr-grayscale-100: #f2f2f2;
  --clr-grayscale-200: #e6e6e6;
  --clr-grayscale-300: #b3b3b3;
  --clr-grayscale-400: #9a9a9a;
  --clr-grayscale-500: #7f7f7f;
  --clr-grayscale-600: #4d4d4d;
  --clr-grayscale-700: #2f2f2f;
  --clr-grayscale-800: #1a1a1a;
  --clr-grayscale-900: #0d0d0d;
  --clr-blue-100: #f1f2f4;
  --clr-blue-200: #e0e6eb;
  --clr-blue-300: #9cb3c9;
  --clr-blue-400: #7099c2;
  --clr-blue-500: #4080bf;
  --clr-blue-600: #1f4d7a;
  --clr-blue-700: #0f3357;
  --clr-blue-800: #051a2e;
  --clr-blue-900: #010d18;
  --clr-green-100: #f4f4f1;
  --clr-green-200: #ebebe0;
  --clr-green-300: #e0e085;
  --clr-green-400: #c2c270;
  --clr-green-500: #bfbf40;
  --clr-green-600: #7a7a1f;
  --clr-green-700: #57570f;
  --clr-green-800: #2e2e05;
  --clr-green-900: #1a1a01;
}

/* Actual color variables */

:root{
  --clr-grayscale-100: hsl(0, 0%, 95%);
  --clr-grayscale-200: hsl(0, 0%, 90%);
  --clr-grayscale-300: hsl(0, 0%, 70%);
  --clr-grayscale-400: hsl(0, 0%, 60%);
  --clr-grayscale-500: hsl(0, 0%, 50%);
  --clr-grayscale-600: hsl(0, 0%, 30%);
  --clr-grayscale-700: hsl(0, 0%, 20%);
  --clr-grayscale-800: hsl(0, 0%, 10%);
  --clr-grayscale-900: hsl(0, 0%, 5%);
  --clr-blue-100: hsl(210, 90%, 95%);
  --clr-blue-200: hsl(210, 80%, 90%);
  --clr-blue-300: hsl(210, 50%, 70%);
  --clr-blue-400: hsl(210, 60%, 60%);
  --clr-blue-500: hsl(210, 50%, 50%);
  --clr-blue-600: hsl(210, 60%, 30%);
  --clr-blue-700: hsl(210, 70%, 20%);
  --clr-blue-800: hsl(210, 80%, 10%);
  --clr-blue-900: hsl(210, 90%, 5%);
  --clr-green-100: hsl(60, 90%, 95%);
  --clr-green-200: hsl(60, 80%, 90%);
  --clr-green-300: hsl(60, 70%, 70%);
  --clr-green-400: hsl(60, 60%, 60%);
  --clr-green-500: hsl(60, 50%, 50%);
  --clr-green-600: hsl(60, 60%, 30%);
  --clr-green-700: hsl(60, 70%, 20%);
  --clr-green-800: hsl(60, 80%, 10%);
  --clr-green-900: hsl(60, 90%, 5%);
}

/* Page reset */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* html, body */

html, body {
  height: 100%;
  background-color: var(--clr-blue-800);
  font-family: sans-serif;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}

body {
  justify-content: center;
  align-items: center;
  display: block;
  min-height: 100vh;
  line-height: 1.5;
  margin-top: 170px;
}

/* Headers */

h1 {
  font-family: sans-serif;
  font-size: clamp(0.8rem, 6vw, 3rem);
  color: var(--clr-grayscale-200);
  margin: 0;
}
h2 {
  font-family: sans-serif;
  font-size: 2.3rem;
  color: var(--clr-grayscale-200);
  margin: 0;
}
h3 {
  font-family: sans-serif;
  font-size: 1.8rem;
  color: var(--clr-grayscale-200);
  margin: 0;
}
h4 {
  font-family: monospace;
  font-size: 1rem;
  color: var(--clr-green-300);
  font-weight: normal;
}
h5 {
color: var(--clr-grayscale-200);
font-size: 1.4rem;
}

/* Text and links */

p {
  font-size: 1.3rem;
  color: var(--clr-grayscale-200);
}
small {
  color: var(--clr-green-300);
  font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace;
  font-size: 1rem;
}
a, a:visited {
  color: var(--clr-green-300);
  text-decoration: underline dotted var(--clr-green-400);
  font-weight: bold;
}
a:hover {
  color: var(--clr-green-200);
  text-decoration: underline dotted var(--clr-green-300);
}
a:focus, a:active {
  color: var(--clr-green-100);
  text-decoration: underline dotted var(--clr-green-200);
}
a.title {
  color: var(--clr-grayscale-200);
  text-decoration: none;
}
a.title:hover {
  color: var(--clr-grayscale-100);
}
i {
  text-decoration: none;
  color: var(--clr-green-300);
}
i:hover {
  text-decoration: none;
  color: var(--clr-green-200);
  transform: rotateY(20deg);
}
i:focus, i:active {
  color: var(--clr-green-100);
  transform: rotateY(20deg) rotateX(20deg);
}
hr {  color: var(--clr-green-800);
}

/* Lists */

.table-wrapper {
  overflow-x: scroll;
}

ul, ol {
  display: block;
  padding-inline-start: 1.5rem;
  word-break: normal;
  hyphens: auto;
  color: var(--clr-grayscale-200);
  font-size: 1.3rem;
}
/* ul li {
  list-style-type: circle;
 }*/
ul li li {
  list-style-type: square;
}
ol {
  list-style-type: decimal;
}
li {
  display: list-item;
}
ul.sitemap-links {
  word-break: break-all;
}
ul.tags {
  list-style-type: none;
  margin: 0;
  padding: 0;
  font-size: 1.2rem;
  font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace;
}

/* Tables */

table {
  border: 0px;
}
th, td {
  padding-left: 0.3rem;
  font-size: 1.4rem;
  color: var(--clr-grayscale-200);
}

/* Header */

header {
  margin-bottom: 6.5rem;
  position: fixed;
  top: 0;
  width: 100%;
  background-color: var(--clr-grayscale-800);
  box-shadow: 0px 0px 15px 10px var(--clr-grayscale-900);
  text-align: center;
}
ul.header {
  display: flex;
  flex-direction: row;
  padding-inline-start: initial;
  padding: 0;
  list-style-type: none;
  justify-content: center;
  gap: 1rem;
}
li.header {
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
}
li.header a {
  text-decoration: none;
}

/* Main */

.container {
  width: 90vw;
  max-width: 1000px;
  margin: 0 auto;
  padding: 10px 5px 0px 0px;
  background: var(--clr-green-600);
  border-style: solid;
  border-width: 2px 2px 2px 0px;
  border-color: var(--clr-green-300);
  border-radius: 125px 22px 22px 250px;
  box-shadow: 3px 0px 10px var(--clr-grayscale-200);
  align-items: center;
  gap: 2vw;
}

.bread, .sitemap {
  background: var(--clr-green-800);
  width: 100%;
  padding: 10px 30px;
  border-style: solid;
  border-width: 2px;
  border-color: var(--clr-green-300);
  border-radius: 20px;
  box-shadow: 0px 0px 10px var(--clr-grayscale-200);
  font-size: 1.2rem;
}

.sitemap {
  word-break: break-all;
}

/* Social media links */

.socialmedia {
  text-align: center;
  font-size: clamp(0.8em, 6vw, 3em);
}
.socialmedia a {
  text-decoration: none;
}

/* Footer */

footer {
  margin-top: 1rem;
  text-align: center;
  color: var(--clr-grayscale-200);
}

.footer {
  font-size: 0.8rem;
}

/* Error pages */

.error {
  width: 100%;
  justify-content: center;
  text-align: center;
  h1 {
    color: var(--clr-green-300);
    font-size: 10vw;
  }
  h2 {
    color: var(--clr-green-300);
    font-size: 3.8vw;
  }
  a {
    color: var(--clr-green-300);
    text-decoration: none;
    font-size: 2.2vw;
    transition-duration: 0.4s;
  }
  a:hover {
    color: var(--clr-grayscale-200);
    text-decoration: none;
    text-shadow: 0px 0px 20px var(--clr-grayscale-200);
  }
}

/* Buttons and inputs */

button {
  display: inline-block;
  background-color: var(--clr-green-300);
  padding: 10px;
  border-width: 3px;
  border-color: var(--clr-green-900);
  border-radius: 10px;
  box-shadow: 0px 0px 10px var(--clr-grayscale-200);
  color: var(--clr-green-800);
  transition-duration: 0.4s;
  font-size: 1rem;
  font-weight: bold;
}
button:hover {
  background-color: var(--clr-green-400);
  box-shadow: 0px 0px 15px 3px var(--clr-green-500);
  color: var(--clr-green-100);
}
button:focus, button:active {
  background-color: var(--clr-green-500);
  box-shadow: 0px 0px 15px 3px var(--clr-green-400);
  color: var(--clr-green-100);
}

input {
  box-sizing: border-box;
  padding: 10px;
  width: 70vw;
  max-width: 600px;
  border-width: 3px;
  border-color: var(--clr-green-300);
  border-radius: 5px;
  background-color: var(--clr-green-200);
  font-family: serif;
  color: var(--clr-grayscale-800);
}
input:focus {
  background-color: var(--clr-green-100);
  color: var(--clr-grayscale-900);
}

/* Scrollbar */

/* Firefox + fallback */

* {
  scrollbar-width: auto;
  scrollbar-color: var(--clr-green-500) var(--clr-grayscale-900);
}

/* Chrome, Edge, and Safari */

*::-webkit-scrollbar {
  width: 8px;
}
*::-webkit-scrollbar-track {
  background: var(--clr-grayscale-900);
}
*::-webkit-scrollbar-thumb {
  background-color: var(--clr-green-800);
  border-radius: 20px;
  border: 0;
}

/* Pagination */

.pagination {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 1rem;
  list-style: none;
}

/* Screen Reader */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  padding: 0;
}

/* Responsiveness */

@media (max-width: 768px) {
  body {
    h1 {
      font-size: clamp(0.5rem, 5vw, 1.8rem);
    }
    h2 {
      font-size: clamp(0.4rem, 6vw, 2.0rem);
    }
    h3 {
      font-size: clamp(0.3rem, 5vw, 1.8rem);
    }
    h4, small {
      font-size: clamp(0.1rem, 3vw, 1.5rem);
    }
    h5 {
      font-size: clamp(0.2rem, 4vw, 1.7rem);
    }
  }

  li.header {
    font-size: 1.3rem;
  }

  .container {
    width: 95vw;
    margin-top: -50px;
    border-radius: 125px 22px 22px 125px;
  }

  .bread, .sitemap {
    padding: 10px 10px;
    font-size: 1rem;

    ul, ol {
      word-break: normal;
    }
    li {
      font-size: 1rem;
    }
    th, td {
      font-size: 0.9rem;
    }
    p {
      font-size: 1rem;
    }
  }

  .sitemap {
    ul, ol {
      word-break: break-all;
    }
  }

  .socialmedia {
    font-size: clamp(0.5rem, 14vw, 2.4rem);
  }

  .error {
    width: 100%;
    justify-content: center;
    text-align: center;

    h1 {
      font-size: 15vw;
      color: var(--clr-grayscale-200);
    }
    h2 {
      font-size: 5.7vw;
      color: var(--clr-grayscale-200);
    }
    a {
      font-size: 4vw;
      transition-duration: 0.4s;
    }
  }
}

/* Font Awesome */

@font-face {
  font-family: 'Font Awesome 6 Free';
  font-style: normal;
  font-weight: 900;
  font-display: block;
  src: url("/fonts/fa-solid-900.woff2") format("woff2"), url("/fonts/fa-solid-900.ttf") format("truetype");
}

@font-face {
  font-family: 'Font Awesome 6 Brands';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("/fonts/fa-brands-400.woff2") format("woff2"), url("/fonts/fa-brands-400.ttf") format("truetype");
}
.fa-rss {
  --fa: "\f09e";
}
.fa-bluesky {
  --fa: "\e671";
}
.fa-mastodon {
  --fa: "\f4f6";
}
.fa-camera {
  --fa: "\f030";
}
.fa-envelope {
  --fa: "\f0e0";
}
.fa-sun {
  --fa: "\f185";
}
.fa-moon {
  --fa: "\f186";
}
.fa-solid, .fa-brands {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  display: var(--fa-display, inline-block);
  font-style: normal;
  font-variant: normal;
  line-height: 1;
  text-rendering: auto;
}
.fa-solid::before, .fa-brands::before, .fa::before {
  content: var(--fa);
}
.fa-solid {
  font-family: 'Font Awesome 6 Free';
}
.fa-brands {
  font-family: 'Font Awesome 6 Brands';
}

/* Hidden */

.hidden {
  width: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  border-radius: 15px;
  padding: 10px;
}
.hidden img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
