@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

html, body {
  margin: 0;
  padding: 0;
  background-color: black;
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: Share Tech Mono;
}
  
#top-toggle {
  position: absolute;
  top: 1vw;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 30;
}
  
#top-toggle img {
  display: block;
  width: auto;
  height: 2vw;
  cursor: pointer;
}

#top-toggle.visible {
  opacity: 1;
  pointer-events: auto;
}

#menu {
  display: flex;
  gap: 3vw;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
}

#menu.shifted {
  top: calc(100% - 5vw);
  transform: translate(-50%);
}

.square-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.label {
  position: absolute;
  bottom: 105%;
  left: -0.2vw;
  font-size: 1vw;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  visibility: hidden;
  opacity: 0;
  transition: color 0.2s ease, opacity 0.4s ease;
}

.square {
  width: 4vw;
  height: 4vw;
  border: 3px solid black;
  cursor: pointer;
  transition: opacity 0.4s ease, transform 0.4s ease;
  opacity: 1;
  transform: scale(1);
}

.square:hover {
  transform: scale(1.1);
}

.square-container:nth-child(1) .square { background-color: #544841; }
.square-container:nth-child(2) .square { background-color: #4e4b20; }
.square-container:nth-child(3) .square { background-color: #594f55; }
.square-container:nth-child(4) .square { background-color: #2c2047; }
.square-container:nth-child(5) .square { background-color: #4f4f44; }
.square-container:nth-child(6) .square { background-color: #425945; }

.square-hidden {
  opacity: 0;
  transform: scale(0, 0);
  pointer-events: none;
}

.square-container:hover .label {
  visibility: visible;
  opacity: 1;
  text-shadow:
    -1px -1px 0px black,
     1px -1px 0px black,
    -1px  1px 0px black,
     1px  1px 0px black;
}

.square-container:nth-child(1):hover .label { color: #544841; }
.square-container:nth-child(2):hover .label { color: #4e4b20; }
.square-container:nth-child(3):hover .label { color: #594f55; }
.square-container:nth-child(4):hover .label { color: #2c2047; }
.square-container:nth-child(5):hover .label { color: #4f4f4f; }
.square-container:nth-child(6):hover .label { color: #425945; }

main {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 10;
}

section {
  height: 100%;
  width: 100%;
  color: rgb(240, 246, 240);
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  font-size: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  display: flex;
}

section.active {
  opacity: 1;
  pointer-events: auto;
}

.section-tag {
  position: absolute;
  top: 4vw;
  font-size: 2vw;
  padding: 0.5vw 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

#ABOUT .content {
  display: flex;
  align-items: flex-start;
  gap: 2vw;
  width: 90%;
  justify-content: center;
}

.about-text {
  flex: 1;
  font-size: 1.2vw;
  line-height: 1.5;
}

.about-gifs {
  display: flex;
  flex-direction: row;
  gap: 1vw;
  flex: 0 0 auto;
}

.about-gifs img {
  width: 25vw;
  height: auto;
  border-radius: 8px;
}

.carousel {
  width: 100vw;
  overflow: hidden;
  margin: auto;
}

.carousel-track {
  display: flex;
  will-change: transform;
  cursor: grab;
  user-select: none;
  justify-content: center;
}

.carousel-track.dragging {
  cursor: grabbing;
}

.carousel-item {
  flex: 0 0 70%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.carousel-item img {
  max-width: 100%;
  border-radius: 8px;
  transform: scale(0.95);
  filter: brightness(0.5);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.carousel-item.active img {
  transform: scale(1);
  filter: brightness(1);
}

.carousel-nav {
  text-align: center;
  margin-top: 1em;
  display: flex;
  justify-content: center;
  gap: 1vw;
}

#artCarousel .carousel-item {
  flex: 0 0 58%; 
}

#moreArtCarousel .carousel-item {
  flex: 0 0 50%; 
}

.nav-dot {
  display: inline-block;
  width: 0.8vw;
  height: 0.8vw;
  border-radius: 50%;
  background-color: rgb(34, 35, 35);
  cursor: pointer;
  transition: background-color 0.3s;
}

.nav-dot.active {
  background-color: rgb(240, 246, 240);
}

#FEATS .content {
  width: 90%;
  height: calc(100vh - 14vw);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

.feats-content {
  display: flex;
  flex-direction: column;
  gap: 2vw;
  font-size: 1vw;
  line-height: 1.5;
}

.feats-content .years {
  font-size: 1.2vw;
  color: rgb(240, 246, 240);
  margin-bottom: 0.5vw;
  font-weight: bold;
  text-decoration: underline dotted;
}

.feats-content ul {
  list-style: none;
  margin: 0;
  border-left: 2px solid rgb(34, 35, 35);
  padding-left: 1vw;
}

.feats-content li {
  margin-bottom: 0.5vw;
}

.feats-content a {
  color: rgb(240, 246, 240);
  text-decoration: none;
  background: 
  linear-gradient(to right, rgba(0, 0, 0, 0)),
  linear-gradient(to right, rgb(240, 246, 240), rgb(0, 0, 0, 0));
  background-size: 100% 0.1em, 0 0.1em;
  background-position: 100% 100%, 0 100%;
  background-repeat: no-repeat;
  transition: background-size 200ms;
}

.feats-content a:hover {
  background-size: 0 0.1em, 100% 0.1em;
}

.links-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2vw;
  padding: 2vw;
  width: 90%;
  max-height: 75%;
  overflow-y: auto;
  margin: auto;
}

.link-group {
  display: flex;
  flex-direction: column;
}

.link-title {
  font-size: 1.2vw;
  font-weight: bold;
  color: rgb(240, 246, 240);
  margin-bottom: 0.5vw;
}

.link-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1vw;
}

.link-grid a {
  padding: 0.5vw 1vw;
  border-radius: 0.2vw;
  font-size: 1vw;
  color: rgb(240, 246, 240);
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.link-grid a:hover {
  background-color: rgb(34, 35, 35);
  transform: scale(1.05);
}

.merch-highlight {
  display: flex;
  justify-content: center;
  margin-bottom: 0.5vw;
}

.merch-button {
  position: relative;
  padding: 0.7vw 1.5vw;
  font-size: 1.2vw;
  font-weight: bold;
  color: rgb(240, 246, 240);
  text-decoration: none;
  border-radius: 1vw;
  background: none;
  z-index: 1;
  transition: transform 0.2s ease;
}

.merch-button::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: inherit;
  background: linear-gradient(
    270deg,
    #7b0403, #b21a01, #da3907, #f36315, #fe992c,
    #f5c53a, #d5e735, #a8fc3a, #6afe65, #2befa0,
    #1ad5ce, #34acf7, #467ff5, #4450bd, #351d56, #222323, #7b0403
  );
  background-size: 200% 200%;
  background-repeat: repeat;
  animation: rainbowFlow 4s linear infinite, glowPulse 3s ease-in-out infinite;
  z-index: -2;
}

.merch-button::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  background-color: black;
  border-radius: inherit;
  z-index: -1;
}

.merch-button:hover {
  transform: scale(1.05);
}

.merch-button:hover::after{
    background-color: rgb(34, 35, 35);
}

@keyframes rainbowFlow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 8px rgba(240, 246, 240, 0.2);
  }
  50% {
    box-shadow: 0 0 16px rgba(240, 246, 240, 0.5);
  }
}

@media (max-width: 768px) {
  #top-toggle img {
    height: 5vh;
  }

  .section-tag {
    top: 6.5vh;
    font-size: 3vh;
  }

  #menu {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    width: 84vw;
    gap: 2vw;
    justify-content: center;
  }

  #menu.shifted {
    top: calc(100% - 13vw);
  }

  .square-container {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    min-width: 12vw;
  }

  .square {
    width: 8vw;
    height: 8vw;
  }

  .label {
    visibility: visible;
    opacity: 1;
    position: static;
    font-size: 2vw;
    text-align: center;
    color: rgb(240, 246, 240);
    pointer-events: auto;
    user-select: none;
    transition: opacity 0.4s ease;
  }

  .label.square-hidden {
    opacity: 0;
    pointer-events: none;
  }

  #ABOUT .content {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow-y: auto;
    height: 75%;
    box-sizing: border-box;
    scroll-behavior: smooth;
  }
  
  .about-text {
    font-size: 3.5vw;
    line-height: 1.5;
    width: 100%;
  }
  
  .about-gifs {
    flex-direction: column;
    align-items: center;
    gap: 4vw;
    width: 100%;
  }
  
  .about-gifs img {
    width: 85vw;
    height: auto;
    border-radius: 8px;
  }

  .carousel-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    width: 90vw;
    margin: 4vw auto 0 auto;
    gap: 3vw;
  }
  
  .nav-dot {
    width: 3vw;
    height: 3vw;
    border-radius: 50%;
    background-color: rgb(34, 35, 35);
    transition: background-color 0.3s;
  }

  #FEATS .content {
    height: 75%;
    width: 90%;
    margin: 0 auto;
    scroll-behavior: smooth;
  }
  
  .feats-content {
    gap: 6vw;
    font-size: 3.5vw;
    line-height: 1.5;
  }
  
  .feats-content .years {
    font-size: 4vw;
    margin-bottom: 2vw;
  }
  
  .feats-content ul {
    padding-left: 4vw;
  }
  
  .feats-content li {
    margin-bottom: 2vw;
  }

  .links-wrapper {
    padding: 4vw 0;
    scroll-behavior: smooth;
    gap: 8vw;
  }
  
  .link-title {
    font-size: 4vw;
    margin-bottom: 2vw;
  }
  
  .link-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2vw;
  }
  
  .link-grid a {
    padding: 1.5vw 3vw;
    border-radius: 1vw;
    font-size: 3.5vw;
  }
  
  .merch-button {
    font-size: 4vw;
    padding: 2vw 4vw;
    border-radius: 2vw;
  }

  .merch-button::before {
    border-radius: 2.5vw;
  }

  .merch-highlight {
    margin-bottom: 2vw;
  }

}