:root {
  --black: #000000;
  --white: #ffffff;

  --bg: #000000;
  --content-color: #ffffff;
}

@media screen and (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --content-color: #000000;
  }
}

html[data-theme="light"] {
  --bg: #ffffff;
  --content-color: #000000;
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #000000;
  --content-color: #ffffff;
  color-scheme: dark;
}

html {
  background-color: var(--bg);
  color: var(--content-color);
  scroll-behavior: smooth;
  height: 100%;
  width: 100%;
  font-size: 1rem;
  overflow-y: scroll;
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  min-height: 100vh;
  width: 100%;
  margin: 0;
  padding: 2%;
  box-sizing: border-box;
}

.border-wrapper {
  border: 2px solid var(--content-color);
  padding: 2%;
  flex: 1 1 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

main,
.main {
  flex: 1 1 auto;
  width: 85%;
}

a {
  color: var(--content-color);
  text-decoration: underline;
}

picture {
  margin: 1% auto;
  display: flex;
  flex-direction: column;
}

.biglogo {
  width: 45%;
  height: auto;
}

nav {
  max-width: 98%;
}

nav picture {
  width: 100%;
}

.navlogo {
  transition: transform 0.3s ease;
}

.navlogo:hover {
  transform: scale(1.05);
}

hr {
  /* border-top: 2px solid var(--content-color); */
  width: 98%;
  height: 2px;
  background-color: var(--content-color);
  border: none;
}

.nav-hr {
  /* border-top: 6px solid var(--content-color); */
  height: 4px;
}

.section-hr {
  /* border-top: 6px solid var(--content-color); */
  margin: auto auto auto 2px;
  height: 6px;
}

.red-hr {
  background-color: red;
}

.about-block {
  margin-bottom: 4%;
}

.about-title-block {
  display: flex;
  flex-direction: row;
  gap: 20px;
  flex-wrap: nowrap;
  text-wrap: nowrap;
  margin-bottom: 1%;
}

.page-logo-box {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin-bottom: 2%;
  margin-top: 1%;
  scale: 1.8;
}

.page-logo-box h1 {
  margin-right: 5%;
  text-wrap: nowrap;
}

.page-logo-box picture {
  padding-left: 5%;
  margin-bottom: -1.5%;
  border-left: 2px solid var(--content-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "mozilla-text", sans-serif;
  font-style: normal;
}

a,
nav,
li,
span,
div {
  font-family: "mozilla-text", sans-serif;
  font-style: normal;
}

footer,
.footer {
  font-family: "mozilla-text", sans-serif;
  font-size: 0.7rem;
  margin-top: auto;
  margin-bottom: -1.5%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.indev-footer::after {
  /* This will generally remain unused. */
  content: " | You're viewing a development version of this site. Expect some bugs.";
  font-family: "mozilla-text", sans-serif;
  font-size: 0.7rem;
}

p {
  font-family: "aileron", sans-serif;
  font-weight: 400;
  font-style: normal;
}

nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-right {
  display: flex;
  align-items: center;
  /* gap: 16px; */
}

.nav-dropdown__toggle {
  appearance: none;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: inherit;
}

.nav-item {
  padding-left: 7px;
  padding-right: 8px;
  border-right: 2px solid var(--content-color);
  text-decoration: none;
  color: var(--content-color);
}

.nav-dropdown__toggle.nav-item {
  border-right: none;
}

.nav-item:hover {
  text-decoration: underline;
}

.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown__chevron {
  width: 6px;
  height: 6px;
  display: inline-block;
  border-right: 2px solid var(--content-color);
  border-bottom: 2px solid var(--content-color);
  transform: rotate(45deg);
  margin-top: -2px;
}

.nav-dropdown__menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  background: var(--bg);
  border: 2px solid var(--content-color);
  padding: 6px 0;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 10;
}

.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu {
  display: flex;
}

.nav-dropdown__link {
  padding: 6px 12px;
  text-decoration: none;
  color: var(--content-color);
  white-space: nowrap;
}

.nav-dropdown__link:hover,
.nav-dropdown__link:focus-visible {
  text-decoration: underline;
}

.theme-toggle {
  --toggle-collapsed: 2px;
  --toggle-expanded: 55px;
  --collapsed-height: 6px;
  --expanded-height: 25px;
  position: relative;
  width: var(--toggle-collapsed);
  height: var(--collapsed-height);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 2px 4px;
  margin-left: 7px;
  border: 2px solid var(--content-color);
  border-radius: 999px;
  background: var(--bg);
  overflow: hidden;
  transition: width 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
  transform: translateY(10%);
}

.theme-toggle::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--content-color);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease, transform 0.25s ease;
}

.theme-toggle:hover,
.theme-toggle:focus-within {
  width: var(--toggle-expanded);
  height: var(--expanded-height);
  transform: translateY(2%);
}

.theme-toggle:hover::before,
.theme-toggle:focus-within::before {
  opacity: 0;
}

.theme-toggle__button {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--content-color);
  width: 22px;
  height: 22px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 999px;
  cursor: pointer;
  opacity: 0;
  transform: translateX(-4px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.theme-toggle:hover .theme-toggle__button,
.theme-toggle:focus-within .theme-toggle__button {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.theme-toggle__button.is-active {
  background: var(--content-color);
  color: var(--bg);
}

.theme-toggle__icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

@media (max-width: 768px) {
  .theme-toggle {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {

  .theme-toggle,
  .theme-toggle::before,
  .theme-toggle__button {
    transition: none;
  }
}

@media (max-width: 768px) {
  nav {
    flex-direction: column;
    justify-content: center;
    gap: 15px;
  }

  .nav-right {
    justify-content: center;
    flex-wrap: wrap;
  }
}

.active {
  font-weight: bold;
}

.horizontal-boxes {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
  padding: 1%;
  align-items: center;
  justify-content: center;
}

.box {
  width: 100%;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--content-color);
}

.thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-box:hover .thumb-img {
  transform: scale(1.05);
}

.article-box {
  display: flex;
  flex-direction: column;
  align-content: center;
  text-align: center;
  gap: 5%;
  flex: 0 0 calc(25% - 20px);
  box-sizing: border-box;
}

.body-image {
  max-width: 30%;
  height: auto;
  margin: 1%;
}

.float-right {
  float: right;
}

.float-left {
  float: left;
}

.boxed {
  border: 2px solid var(--content-color);
  transition: transform 0.3s ease;
}

.boxed:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px var(--content-color);
}

.hoverglow:hover {
  box-shadow: 0 0 10px var(--content-color);
}

.hoverglow-red:hover {
  box-shadow: 0 0 10px red;
}

ul.tagslist {
  display: flex;
  flex-direction: row;
  gap: 10px;
  list-style-position: inside;
  padding-left: 0;
}

ul.tagslist li {
  display: inline;
  padding: 0px 5px 5px 5px;
  border: 2px solid var(--content-color);
  border-radius: 2px;
}


@media screen and (max-width: 900px) {
  .article-box {
    flex: 0 0 calc(50% - 20px);
  }

  picture {
    width: 80%;
  }

  .biglogo {
    width: 86%;
  }

  .page-logo-box {
    scale: 1;
  }

  .page-logo-box picture {
    display: none;
  }
}

@media (max-width: 600px) {
  .article-box {
    flex: 0 0 80%;
    margin-left: auto;
    margin-right: auto;
  }
}



.news-container {
  width: 98%;
  overflow: hidden;
  background: var(--bg);
  padding: 10px 0;
  position: relative;
  border-radius: 5px;
}

.news-title {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  font-weight: bold;
  color: var(--bg);
  background: var(--content-color);
  padding: 5px 10px;
  border-radius: 3px;
}

.news-ticker-wrapper {
  display: flex;
  overflow: hidden;
  width: 100%;
}

.news-ticker {
  display: flex;
  white-space: nowrap;
  animation: scroll 30s linear infinite;
}

.news-ticker span {
  padding: 0 20px;
  color: var(--content-color);
  font-size: 16px;
  border-right: 3px solid var(--content-color);
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}