#title {
  font-size: 5.3vw;
  color: red;
  font-family: "diatype2";
  -webkit-text-stroke: 0.17vw;
}

#header {
  position: fixed;
  top: 0rem;
  left: 1.2rem;
  text-transform: uppercase;
  z-index: 10;
  color: red;
  padding-right: 10vw;
  padding-bottom: 5vh;
}

#header a {
  cursor: pointer;
  color: red;
  font-family: "diatype";
  font-weight: 900; /* Black/Bold */
  text-decoration: none;
  margin-right: 0.3rem;
}

.folder {
  display: flex;
  align-items: center;
  line-height: 0;
}

.collection-types {
  display: flex;
  align-items: center;
}

.collection-types a {
  opacity: 0;
  margin-left: -2rem;
  pointer-events: none;
}

.collection-types a.visible {
  margin-left: 0;
  opacity: 1;
  pointer-events: auto;
  transition: font-size 0.2s, opacity 0.5s,
    margin 0.1s cubic-bezier(1, 0.9, 0.9, 1) !important;
}

#menu a {
  font-size: 1.7rem;
  margin-right: 0.7rem;
  border-radius: 0.7rem;
  line-height: 130%;
  transition: 0.3s ease-in-out;
  user-select: none;
}

#menu-link {
  display: none;
}

#menu a:hover,
.collection-types a.active,
.collection-types a:hover {
  color: black !important;
  background-color: red;
  margin-left: 0rem;
  font-size: 1.9rem;
  transition: margin 0.2s ease-in-out;
  padding: 0.2rem 0.4rem 0.2rem 0.4rem;
}

#collection-container {
  position: fixed;
  top: 0rem;
  left: 0vw;
  transform: translateY(100%);
  font-size: 2.2rem;
  line-height: 100%;
  height: 100%;
  width: 100%;
  font-family: "diatype";
  font-weight: 900; /* Black/Bold */
  opacity: 0;
  text-transform: uppercase;
  z-index: 5;
  overflow-y: hidden;
  transition: transform 0.2s, opacity 0.2s;
}

.collection-entries {
  padding-top: 1.5rem;
  position: absolute;
  left: 51vw;
  width: 45vw;
  z-index: 10;
  height: calc(100% - 1.5rem);
  margin-bottom: 25rem;
  overflow-y: auto;
  display: block;
  pointer-events: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.collection-entries::-webkit-scrollbar {
  display: none;
}

.collection-entry:hover .collection-entry-title {
  background-color: red;
  color: black;
}

.collection-entry {
  display: flex;
  position: relative;
  cursor: pointer;
  margin-bottom: 0.7rem;
  color: red;
}

.collection-entry-year {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 1rem;
}

.collection-entry-title {
  display: inline-block;
  margin-left: 8rem;
  margin-top: -0.5rem;
  padding: 0.5rem 1rem 0.5rem 1rem;
  margin-right: 0;
  width: auto;
  border-radius: 1rem;
}

.coverimage {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(0deg);
  transform-origin: center;
  max-width: 70vw;
  max-height: 80vh;
  min-width: 40vw;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease-in-out;
}

/* has conditional for blurring background */
body:has(.collection-link.active) #landingpage-gallery {
  opacity: 0.5 !important;
  filter: blur(30px) !important;
}

@media (max-width: 1080px) {
  #title {
    font-size: 11vw;
    -webkit-text-stroke: 0.27vw;
    margin-bottom: 0;
    width: 100vw;
    display: block;
  }
  #header {
    padding-bottom: 0;
    left: 1.5vw;
  }

  .collection-link,
  .collection-types {
    display: none;
  }

  .collection-types.visible,
  .folder {
    display: block;
    margin: 0;
  }

  .collection-link.visible {
    display: inline-block;
    width: auto;
  }

  #menu:has(.collection-link.active) .collection-link:not(.active),
  #menu:has(.collection-link.active) .folder-link,
  #menu:has(.collection-link.active) #about-link {
    display: none;
  }

  #menu:has(.collection-link.active) .collection-types.visible {
    display: flex;
    align-items: start;
    padding: 0;
    margin: 0;
  }

  .collection-entries {
    margin-top: 1.2rem;
    padding-bottom: 10rem;
    display: block;
    top: 17vw;
    left: 2.5vw;
    width: calc(100% - 5vw);
    height: calc(100% - (20vw + 3.2rem));
    mask-image: linear-gradient(
      to bottom,
      transparent 0%,
      black 1%,
      black 100%
    );
    -webkit-mask-image: linear-gradient(
      to bottom,
      transparent 0%,
      black 1%,
      black 100%
    );
  }

  .collection-entry {
    width: calc(100% - 3rem);
  }
}

@media (max-width: 768px) {
  #menu-link {
    display: inline;
  }

  #header {
    left: 2.5vw;
  }
  #menu a {
    font-size: 1.6rem;
  }

  #menu a:hover,
  .collection-types a.active,
  .collection-types a:hover {
    font-size: 1.7rem;
  }

  body:has(.collection-link.active) #menu-link,
  body:has(#menu-links.is-open) #menu-link {
    display: none;
  }

  #hover-image {
    display: none;
  }

  .collection-entries {
    margin-top: 0.3rem;
    top: calc(18vw + 0.6rem);
  }

  #menu-links {
    display: none;
  }

  #menu-links.is-open {
    display: block;
  }

  #collection-container {
    font-size: 1.6rem;
  }

  .collection-entry {
    width: 100%;
  }
  .collection-entry-title {
    margin-left: 4.5rem;
    hyphens: auto;
    word-break: break-word;
  }

  #menu a:hover,
  .collection-types a:hover {
    background-color: none;
    color: red;
  }
}

/* Disable hover styles on touch devices */
@media (hover: none) and (pointer: coarse) {
  #menu a:hover,
  .collection-types a:hover {
    background-color: none;
    color: red;
  }
}
