main {
  max-width: 1200px;
  margin: auto;
}
hgroup {
  padding: 5rem 10px;
  display: flex;
  flex-direction: row;
}

hgroup > div {
  width: 100%;
}

hgroup h1 {
  font-size: 1.8rem;
}

hgroup p {
  opacity: 0.5;
}

.unfinished-proj {
  width: fit-content;
  max-width: 350px;
  position: relative;
  padding: 0.5rem;
  height: fit-content;
  cursor: pointer;
  border: 2px solid var(--panel-outline);
  border-radius: 8px;
  background: var(--overlay-col);
  text-decoration: none;
}

.unfinished-proj:hover {
  background: #fff2;
  border: 2px solid var(--text-col);
}

.unfinished-proj img {
  width: 100%;
}

.unfinished-proj div p,
.unfinished-proj div h3 {
  margin: 0;
  text-wrap: nowrap;
}

.header-group {
  display: flex;
  flex-direction: column;
}
.header-group > header {
  flex-grow: 1;
}

.filters {
  display: flex;
  padding: 0 10px;
}

.filters button,
.search-filter > input {
  margin-top: 1rem;
  font-family: inherit;
}

.search-filter {
  flex-grow: 1;
  display: flex;
  flex-direction: row-reverse;
}

.search-filter input {
  color: var(--text-col);
  background: none;
  border: 1px solid var(--panel-outline);
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-family: "Jetbrains Mono";
  opacity: 0.5;
  width: fit-content;
  list-style: none;
  cursor: pointer;
  height: fit-content;
  font-family: inherit;
}

button,
summary {
  color: var(--text-col);
  background: none;
  border: 1px solid var(--panel-outline);
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-family: "Jetbrains Mono";
  opacity: 0.5;
  width: fit-content;
  list-style: none;
  cursor: pointer;
  margin-right: 10px;
  position: relative;
}

summary:hover,
button.selected,
details[open] summary {
  opacity: 1;
  background: var(--text-col);
  color: var(--bg-col);
  border: 1px solid var(--text-col);
}

button:hover:after {
  content: "";
  position: absolute;
  left: -5px;
  top: -5px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--text-col);
  padding: 3px;
  border-radius: 12px;
}

.chapter-listings h2 {
  display: flex;
  justify-content: space-between;
}

.project-entry {
  position: relative;
  background: #0004;
  border-radius: 8px;
  border: 2px solid var(--panel-outline);
  overflow: hidden;
  height: 0;
  padding-top: 56%;
  display: flex;
}

.project-entry:hover {
  border: 2px solid var(--text-col);
  cursor: pointer;
}

.project-entry:hover p {
  opacity: 1;
}

.chapter-listing > div {
  display: flex;
  flex-wrap: wrap;
}
.chapter-listing > span {
  display: flex;
  flex-wrap: wrap;
}
.chapter-listing > div > div {
  width: 33.33%;
  padding: 10px;
  box-sizing: border-box;
}

.chapter-listing > div > :nth-child(3n) {
}
.chapter-listing h2 {
  margin: 1rem;
}
.hovered-display {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
  background: rgb(0, 0, 0);
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, .8) 0%,
    rgba(0,0,0, .4) 100%
  );
  display: flex;
  flex-direction: column;
  opacity: 0;
  justify-content: center;
  align-items: center;
  color: var(--secondary-text-col);
  padding: 10px;
  box-sizing: border-box;
  backdrop-filter: blur(3px);
  text-align: center;
}

.hovered-display.locked p {
  color: inherit;
}

.hovered-display i {
font-size: 3rem;
  opacity: 1;
}

.hovered-display:hover {
  opacity: 1;
}

.non-hovered-display {
  position: absolute;
  bottom: 0;
  width: 100%;
  text-align: center;
  background: rgb(0, 0, 0);
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  padding-bottom: 10px;
  padding-top: 10px;
  display: flex;
  padding: 10px;
  box-sizing: border-box;
  align-items: end;
}

.non-hovered-display span {
  background: #000;
  border: 1px solid var(--panel-outline);
  color: #fff;
  padding: 2px 5px;
  margin: 2px;
  border-radius: 5px;
  height: fit-content;
}

.project-entry h3 {
  bottom: 0;
  margin: auto;
  width: 100%;
}
.project-entry:not(:last-child) {
  margin-right: 1rem;
}

.project-entry img {
  width: 100%;
}

.chapter-listings > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.top-nav a {
  margin: 0.2rem;
  display: block;
  padding: 0.8rem;
  text-decoration: none;
  width: fit-content;
  opacity: 0.8;
  border-radius: 3rem;
}
@media (max-width: 1000px) {
  .chapter-listing > div > div {
    width: 50%;
  }
}

@media (max-width: 600px) {
  body {
    padding: 0;
  }

  .chapter-listing > div > div {
    width: 100%;
  }

  hgroup {
    flex-direction: column;
  }

  .filters {
    flex-direction: column;
  }

  .search-filter > input {
    width: 100%;
  }

  .project-entry {
    padding-top: 40%;
  }
}

.top-nav a:hover {
  opacity: 1;
  background: #fff1;
}

.project-entry img {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  object-fit: cover; /* Scale the image to cover the container */
  border-bottom: 1px solid var(--panel-col);
}

.chapter-listings > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.top-nav a {
  margin: 0.2rem;
  display: block;
  padding: 0.8rem;
  text-decoration: none;
  width: fit-content;
  opacity: 0.8;
  border-radius: 3rem;
}

.top-nav a:hover {
  opacity: 1;
  background: #fff1;
}
.plus-only > a {
  border-color: gold;
}

.hide-completed .completed,
.hide-unvisited > div > div:not(.visited),
.hide-plus .plus-only {
  display: none;
}

.chapter-listing > div > .completed>a {
  border: 2px solid #3f39;
}

.completed a > .fa-check {
  display: block;
  position: absolute;
  right: 10px;
  top: 10px;
  color: #3f3;
}