html {
  scroll-behavior: smooth;
}

@media (max-width: 586px) {
  html {
    font-size: 13px;
  }
}

@media (min-width: 587px) and (max-width: 768px) {
  html {
    font-size: 15px;
  }
}

@media (min-width: 769px) and (max-width: 1170px) {
  html {
    font-size: 16px;
  }
}

@media (min-width: 1170px) {
  html {
    font-size: 18px;
  }
}


body {
  margin: 0;
  padding: 0;
  font-family: "Nunito-Light", sans-serif;
  height: 100svh;
  width: 100vw;
  font-size: 1rem;
  background-color: white;
  color: black;
}


a {
  color: black;
  text-decoration: none;
}


p a {
  position: relative;
  display: inline-block; /* Ensures the link respects the text alignment */
}

p a::after {
  content: "";
  display: block;
  position: absolute;
  bottom: -0.075rem;
  left: 0;
  width: 100%;
  height: 0.2rem;
  background-color: black;
  border-radius: 0.1rem;
  transition: width 0.06s ease-out, left 0.06s ease-out;
}

p a:hover::after {
  width: calc(100% + 0.7em);
  left: -0.35em;
}


b {
  font-family: "Nunito-bold", sans-serif;
  font-weight: normal;  
}

/* br
{   content: "A" !important;
    display: block !important;
    margin-bottom: 1rem !important;
} */

br {
  content: "";
  display: block;
  padding: 0.25rem;
}

.bandcamp {
  width: 350px;
  height: 350px;
  border-radius: 0.5rem;
  border-style: solid;
  border-color: white;
  border-width: 0.35rem;
  filter: drop-shadow(0 0 5rem grey);
}

.bandcamp2 {
  border: 0.4rem solid white;
  width: 400px;
  height: 472px;
  border-radius: 0.4rem;
  filter: drop-shadow(0 0 5rem grey);
}

.nav-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 1rem 1.5rem;
  font-family: "Nunito-Bold", sans-serif;
  position: fixed;

  mix-blend-mode: difference;
  width: calc(100% - 3rem);
  top: 1.5rem;
  justify-content: center;
  z-index: 200000;
}

.nav-bar-works {
  display: flex;
  position: relative;
  padding: 2rem;
  font-family: "Nunito-Bold", sans-serif;
  mix-blend-mode: difference;
  width: calc(100% - 4rem);
  justify-content: center;
  margin-top: -14rem;
  padding-bottom: 9rem;
  z-index: 10;
}

.nav-item {
  justify-self: center;
  min-width: max-content;
  font-size: 1rem;
  gap: 1.5rem;
  height: 2.5rem;
  position: relative;
  text-decoration: none;
}

.nav-item a {
  color: white;
  text-decoration: none;
  padding-bottom: 1.7rem;
  letter-spacing: 0.05em;
  filter: none;
}

.nav-item a::after {
  content: "";
  display: block;
  position: absolute;
  bottom: -1rem;
  left: 0;
  width: 100%;
  height: 1.3em;
  background-color: white;
  border-radius: 0.2rem;
  opacity: 0;
  transition: width 0.06s ease-out, left 0.06s ease-out;
}

.nav-item a.active::after {
  width: 100%;
  left: 0;
  opacity: 1;
}

.nav-item a:hover::after {
  width: calc(100% + 1rem);
  left: -0.5rem;
  opacity: 1;
}



.active {
  font-size: 1.5rem;
  line-height: 0.8;
}

/*
.active::after {
  content: "";
  display: block;
  position: absolute;
  bottom: -1rem;
  left: 0;
  width: 100%;
  height: 1.3rem;
  background-color: black;
  border-radius: 0.2rem;
}
*/


.main {
  display: flex;
  position: relative;
  justify-content: center;
  align-items: center;
  height: calc(100svh - 1.5rem);
  width: calc(100vw - 1.5rem);
  scroll-snap-align: center;

  border-radius: 1.5rem;
  border: 0.75rem solid white;
}

.header {
  display: flex;
  position: relative;
  justify-content: center;
  align-items: center;
  height: 70svh;
  width: calc(100vw - 1.5rem);
  scroll-snap-align: center;
  z-index: -5;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 0.75rem solid white;
}


#dark {
  filter: brightness(0.7);
}

.banner {
  display: flex;
  flex-direction: row;
  align-items: start;
  width: calc(100% - 20vw);
  scroll-snap-align: start;
  gap: 0.5rem;
  margin: 0 10vw;
  padding: 10rem 0;
  font-size: 1rem;
  max-height: 40svh;
}

.banner p {
  text-align: justify;
  width: 100%;
  margin-inline: 1rem;
  z-index: 1;
}


.quote {
  position: relative;
  font-size: 0.7rem;
  left: 1rem;
  display: block;
  width: calc(100% - 1rem);
}

#quotebox {
  font-size: 1.2rem;
}

@media (max-width: 587px) {
  #quotebox {
    width: calc(100% - 3rem);
  }
}

@media (max-width: 587px) {
  .banner {
    flex-direction: column;
    align-items: center;
    justify-content: unset;
    width: calc(100% - 2rem);
    margin: 1rem 0;
    /* gap: 1.5rem; */
    padding: 25svh 1rem;
    font-size: 1.1rem;
    max-height: unset;
  }

  .quote {
    font-size: 0.9rem;
  }

}


@media (min-width: 1170px) {
  .banner {
    max-width: 900px;
    margin-left: calc(50vw - 450px);
    gap: 1rem;
  }

  #playlist {
    margin-left: calc(50vw - 0.75rem - 450px);
    margin-right: calc(50vw - 0.75rem - 450px);
  }
}



#nosnap {
  scroll-snap-align: none;
  padding: 1rem 0;
  height: 30svh;
}

@media (max-width: 587px) {
  #nosnap {
    padding: 1rem;
  }
}


@media (min-width: 588px) {
  #bottom-banner {
    padding: 2rem 0;
    scroll-snap-align: center;
  }
}

@media (min-width: 588px) and (max-width: 1169px) {
  #bottom-banner {
    margin: 0 calc(10vw + 1rem);
    width: calc(100% - 20vw - 2rem);
  }
}

@media (max-width: 587px) {
  #bottom-banner {
    padding-top: 20%;
    padding-bottom: 5%;
    height: 75%;
    gap: 1.5rem;
  }
}

@media (min-width: 769px) {
  #bottom-banner {
    gap: 1rem;
  }
}


.featuring {
  font-size: 0.8rem;
  letter-spacing: -0.02rem;
}

@media (min-width: 588px) {
  p.featuring::before {
  content: "";
  display: block;
  position: relative;
  top: -0.8rem;
  left: 0;
  width: 100%;
  height: 0.2rem;
  background-color: black;
  opacity: 0.05;
  border-radius: 0.1rem;
  }
}

.banner p::-webkit-scrollbar {
  display: none;
}

.allworks,
.playlist-item {
  font-size: 0.6rem;
  flex: 1;
  position: relative;
  text-decoration: none;
  /* color: black; */
  margin: 0;
  width: max-content;
  height: 1rem;
  display: flex;
  align-items: center;
  background-color: white;
  border-radius: calc(0.2rem + 1px);
  z-index: 10000;
  padding: 0.5rem;
  scale: 1;
  transition: scale 0.1s ease-out;
  white-space: nowrap;
}

.playlist-item {
  font-size: 1rem;
  height: 2rem;
  font-family: "Nunito-Light", sans-serif;
  padding: 3rem 2rem;
  filter: drop-shadow(0 0 4rem grey);
}


.playlist-item b {
  font-size: 1.3rem;
  letter-spacing: 0.05em;
}

.playlist-item p {
  position: absolute;
  font-size: 0.6rem;
  text-align: right;
  width: max-content;
  right: 2rem;
}

.allworks p {
  font-family: "Nunito-Bold", sans-serif;
  font-size: 0.7em;
}

@media (min-width: 588px) {
  .playlist-item b {
    padding-right: 5.1rem;
  }
}


@media (max-width: 587px) {

  .allworks,
  .playlist-item {
    font-size: 1rem;
    width: 80%;
    text-align: center;
    padding: 1.5rem;
  }

  .allworks {
    display: flex;
    max-height: 2rem;
    filter: drop-shadow(0 0 4rem rgba(255, 255, 255, 0.1));
  }

  .playlist-item {
    font-size: 1rem;
    display: block;
    height: 2rem;
    font-family: "Nunito-Light", sans-serif;
    margin-bottom: -3.5rem;
  }

  .playlist-item b {
    font-size: 2rem;
    line-height: 2;
  }

  .playlist-item p {
    font-size: 1rem;
    position: relative;
    width: auto;
    right: 0;
    text-align: center;
  }

  .allworks:hover {
    filter: drop-shadow(0 0 4rem rgba(255, 255, 255, 0.5));
  }

}

#playlist {
  position: relative;
  bottom: calc(-50svh + 10rem);
  scroll-snap-align: none;
  max-width: unset;
}

@media (max-width: 587px) {
  #playlist {
    bottom: calc(-50svh + 15rem);
  }
}

.allworks:hover {
  font-family: "Nunito-Bold", sans-serif;
  mix-blend-mode: difference;
  scale: 1.05;
  filter: drop-shadow(0 0.5rem 4rem white);
  z-index: 1000;
}



.playlist-item:hover {
  /*font-family: "Nunito-Bold", sans-serif;
  mix-blend-mode: difference;*/
  scale: 1.01;
  /*filter: drop-shadow(0 0 2rem grey);*/
}

#active-item:hover {
  /*font-family: "Nunito-Bold", sans-serif;*/
  mix-blend-mode: difference;
  /*scale: 1.01;*/
  filter: drop-shadow(0 0 2rem grey);
}


.works-menu {
  position: absolute;
  width: 100%;
  height: 0;
}

#overlay {
  position: fixed;
  display: none;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255,255,255,0.7);
  z-index: 1000;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

#works-menu-container {
  position: relative;
  bottom: 1.5rem;
  padding: 0;
  padding-top: 2rem;
}

@media (min-width: 588px) and (max-width: 1169px) {
  #works-menu-container {
    margin: 0 calc(10vw + 1rem);
    width: calc(100% - 20vw - 2rem);
  }
}

@media (min-width: 769px) {
  #works-menu-container {
    gap: 1rem;
  }
}

#active {
  font-family: 'Nunito-Bold', sans-serif;
}


#active::after {
  content: "";
  display: block;
  position: absolute;
  bottom: 0.65em;
  left: 0.5rem;
  width: calc(100% - 1rem);
  height: 0.2em;
  background-color: white;
  border-radius: 0.1em;
  mix-blend-mode: difference;
}

@media (max-width: 587px) {
  #active::after {
    bottom: 1em;
    left: 1.5rem;
    width: calc(100% - 3rem);
    height: 0.2rem;
    border-radius: 0.1rem;
  }
}

@keyframes scaleDown {
    from {
        transform: scale(1.05);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}


#works-menu-container > * {
    animation-duration: 0.7s; 
    animation-timing-function: ease-out; 
    animation-fill-mode: forwards; 
    opacity: 1;
}

@media (max-width: 587px) {
  #works-menu-container {
    /* display: none; */
    position: fixed;
    z-index: 2000;
    bottom: 5rem;
    top: 5rem;
    justify-content: center;
    height: unset;
    padding: 1rem;
    gap: 1.5rem;
  }

  #selector {
    display: flex;
    position: fixed;
    bottom: 2.5rem;
    z-index: 100;
    filter: drop-shadow(0 0 5rem grey);
    padding: 1rem;
  }

}

@media (min-width: 588px) {

  #selector {
    display: none;
  }

}



.previews {
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  overflow-x: hidden;
  height: 100svh;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.previews::-webkit-scrollbar {
  display: none;
}

#small {
  height: 60%;
  width: auto;
  max-width: 90svw;
  border-radius: 0.3rem;
}

.preview-video {
  display: flex;
  position: absolute;
  z-index: -1;
  /* align-content: start;
  justify-content: start; */
  width: 100%;
  height: 100%;

  top: 50%;
  left: 50%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  will-change: transform;
}

#horizontal-scroll {
  display: grid;
  position: relative;
  overflow-x: scroll;
  overflow-y: hidden;
  gap: 4rem;
  padding: 1rem 3rem;

  grid-auto-flow: column;
  grid-auto-columns: 43ch;
  height: calc(100svh - 8.5rem);
  width: auto;
  top: 6.3rem;
  bottom: 8rem;
}

#horizontal-scroll::-webkit-scrollbar {
  display: none;
}

/* .box {scroll-snap-align: left;} */

#horizontal-scroll .box {
  border-radius: 0.4rem;
  overflow: hidden;
  max-height: calc(100svh - 14.7rem);
  margin: 0;
  text-decoration: none;
  align-items: center;
  filter: none;
}

@media (max-width: 587px) {
  #horizontal-scroll {
    display: grid;
    grid-auto-flow: row;
    grid-auto-columns: auto;
    height: auto;
    padding: 1rem 2rem;
    padding-bottom: 13rem;
    gap: 5rem;
  }
}

@media (max-width: 587px) {
  #horizontal-scroll .box {
    width: auto;
    height: 30rem;
  }
}

.box img, .box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(50%) brightness(50%) contrast(200%);
  transition: filter 0.7s 0s;
  border-radius: 0.4rem;
}

.box:hover img, .box:hover video {
  filter: saturate(100%) brightness(100%) contrast(100%);
  border-radius: 0.4rem;
}

.box-title {
  position: relative;
  text-decoration: none;
  top: calc(-100% - 3rem);
  font-size: 1.2rem;
  color: black;
  background-color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.2rem;
  mix-blend-mode: difference;
  margin: 2.95rem 0.3rem;
  margin-bottom: 0;
  font-family: "Nunito-Bold", sans-serif;
  letter-spacing: 0.03em;
  line-height: 2;
}

.box-title i {
  font-size: 0.6em;
  font-family: "Nunito-Light", sans-serif;
}

.box-tag {
  position: relative;
  text-decoration: none;
  width: calc(100% - 1rem);
  top: calc(-100% - 3rem);
  font-size: 0.8rem;
  color: white;
  mix-blend-mode: difference;
  padding-left: 1.4rem;
  z-index: 100;
}


h1 {
  margin: 0;
  padding-top: 4.5rem;
  font-size: 4rem;
  white-space: nowrap;
  font-weight: normal;
  text-align: center;
  letter-spacing: 0.05em;
  width: auto;
}

@media (max-width: 465px) {
  h1 {
    font-size: 2.5rem;
  }
}

.title a {
  text-decoration: none;
}

.subtitle {
  color: white;
  font-family: 'Nunito-Light';
  text-align: center;
  letter-spacing: 0.2rem;
}


.space {
  display: block;
  height: 2rem;
}

#bottom-space {
  /* margin-top: -35svh; */
}


#about img {
  width: 100%;
  filter: grayscale(1);
  border-radius: 0.3rem;
  max-height: 75svh;
  object-fit: cover;
}

@media (max-width: 587px) {
  #about {
    margin: auto;
    padding-top: 0;
  }

  #about img {
    border-radius: 0.8rem;
    position: relative;
    left: -0.25rem;
    top: -0.4rem;
    width: calc(100vw - 1.5rem);
  }
}


.footer {
  display: flex;
  bottom: 1rem;
  left: 1.8rem;
  position: fixed;
  font-size: 0.5rem;
  color: white;
  mix-blend-mode: difference;
  z-index: 1000;
}

.construction {
  display: flex;
  bottom: 1rem;
  right: 1.8rem;
  position: fixed;
  font-size: 0.5rem;
  color: white;
  mix-blend-mode: difference;
  z-index: 1000;
}

#construction {
  display: flex;
  bottom: 0.5rem;
  right: 0.5rem;
  position: fixed;
  mix-blend-mode: revert;
  z-index: 1000;
  width: 168px;
  height: 31px;
}

.frame-top {
  position: fixed;
  height: 3rem;
  width: calc(100% + 1.5rem);
  overflow: hidden;
  top: -0.75rem;
  left: -0.75rem;
  z-index: 100;
}

.frame-bottom {
  position: fixed;
  height: 3rem;
  width: calc(100% + 1.5rem);
  overflow: hidden;
  bottom: -0.75rem;
  left: -0.75rem;
  z-index: 100;
}

.frame-btop {
  display: absolute;
  height: 3rem;
  width: calc(100vw - 1.5rem);
  border: 1.5rem solid white;
  border-radius: 2.3rem;
  z-index: 100;
}

.frame-bbottom {
  display: absolute;
  height: 3rem;
  width: calc(100vw - 1.5em);
  border: 1.5rem solid white;
  border-radius: 2.3rem;
  z-index: 100;
  transform: translateY(-3rem);
}

@media (max-width: 587px) {
  .frame-btop, .frame-bbottom {
    left: calc(-0.75rem - 1px);
    width: calc(100vw - 1.5rem + 0px);
  }
}