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

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

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

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 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 {
  font-family: "mozilla-text", sans-serif;
  font-size: 0.7rem;
  margin-top: auto;
  margin-bottom: -1.5%;
}

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

nav a {
  text-decoration: none;
}

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

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

.nav-right a {
  padding-left: 8px;
  padding-right: 8px;
  border-right: 2px solid var(--content-color);
}

.nav-right a:last-child {
  border-right: none;
}

.nav-right a:hover {
  text-decoration: underline;
}

@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;
  margin-bottom: 20px;
}

.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;
  }
}
