/* === GLOBAL === */
* {
  box-sizing: border-box;
}
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f9f9f9;
  color: #333;
  overflow: hidden;
}

/* === WRAPPER === */
.coverflow-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  position: relative;
}

/* === homepage === */
.description-box {
  max-width: 700px;
  margin: 0 auto 20px auto;
  padding: 0 20px;
  text-align: center;
  font-family: 'Caveat', cursive;
  font-size: 21rem;
}
.center-content h1 {
  font-family: 'Caveat', cursive;
  font-size: 4 rem;
}

/* === BACKGROUND CANVAS CONTAINER === */
#gl-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: black; /* 或任何色，看 canvas 有没有挂上去 */
  z-index: 0; /* 🔙 在内容后面 */
  pointer-events: auto;
  opacity: 1;
}

#gl-container canvas {
  position: fixed;
  display: block;
  top: 0;
  left: 0;
  z-index: 0;
  opacity: 0.9 !important;
  display: block;
  width: 100vw !important;
  height: 100vh !important;
}


/* === CENTERED TEXT CONTENT === */
.center-content {
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  text-shadow: 0 0 10px rgba(0,0,0,0.6);
  z-index: 999999;
}

.center-content h1 {
  font-size: 3rem;
  margin-bottom: 0.5em;
}

.center-content p {
  font-size: 1.2rem;
  margin-bottom: 1.5em;
}

.explore-btn {
  display: inline-block;
  padding: 10px 25px;
  background-color: rgba(255,255,255,0.1);
  border: 2px solid white;
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.explore-btn:hover {
  background-color: rgba(255,255,255,0.3);
}


/* === ARROWS === */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 100;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
#left-arrow {
  left: 20px;
}
#right-arrow {
  right: 20px;
}
.arrow:hover {
  background-color: #fff;
}

/* === CAROUSEL === */
.carousel {
  display: flex;
  gap: 20px;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  scroll-padding: 50%;
  padding: 10px 20px;
  max-width: 100%;
  height: 100%;
  scrollbar-width: none;
  align-items: center;
  justify-content: flex-start;
}

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

.coverflow-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 80px;
  padding-bottom: 60px;
  height: 100vh;
}

.arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  z-index: 100;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: background-color 0.2s ease;
}

.arrow:hover {
  background-color: #f0f0f0;
}

#left-arrow {
  left: 20px;
}

#right-arrow {
  right: 20px;
}

.spacer {
  flex: 0 0 50vw; /* 调整左右空白宽度 */
}

/* === GALLERY CARD === */
.gallery-card {
  flex: 0 0 300px; /* 加大卡片宽度 */
  height: 400px;    /* 自定义高度 */
  scroll-snap-align: center;
  padding: 20px;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  color: white;
  font-weight: bold;
  font-size: 1.1em;
  text-align: center;
  text-decoration: none;
  position: relative;
  transform: scale(0.85);
  filter: grayscale(70%) brightness(0.6);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, filter 0.3s ease, z-index 0.3s;
  z-index: 1;
}

.gallery-card.active {
  z-index: 10;
}

.card-label {
  font-family: "Bodoni Moda", serif;
}
.back-button {
  font-family: "Bodoni Moda", serif;
}

/* === CARD LABEL === */
.card-label {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.4);
  color: #fff;
  padding: 6px 14px;
  border-radius: 12px;
  font-weight: bold;
  font-size: 0.9em;
  pointer-events: none;
}

/* === BACK BUTTON === */
.back-button {
  margin-top: 20px;
  padding: 10px 20px;
  background: #eee;
  border-radius: 30px;
  text-decoration: none;
  color: #333;
  font-weight: bold;
}
.back-button:hover {
  background: #ddd;
}

/* === Social Button === */
.social-icons {
  margin: 1.5em 0;
  display: flex;
  justify-content: center;
  gap: 1.3em;
  font-size: 1.2rem;
}

.social-icons a {
  color: white;
  transition: transform 0.2s ease, color 0.3s ease;
}

.social-icons a:hover {
  color: #ffffff;
  transform: scale(1.2);
}

/* === VINYL === */
.vinyl-wrapper {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 120px;
  height: 120px;
  cursor: pointer;
  z-index: 10000;
}


.vinyl {
  width: 100%;
  height: 100%;
  /* border-radius: 50%; */
  animation: spin 6s linear infinite;
  transition: opacity 0.3s;
  /* box-shadow: 0 0 15px rgba(255, 255, 255, 0.2); */
}

.paused {
  animation-play-state: paused;
  opacity: 0.6;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.click-label {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0;
  color: white;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
  animation: bounce 2s infinite;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10001;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6); /* ✅ 文本阴影 */
}

.click-label i {
  font-size: 1.2rem;
  transform: rotate(180deg);
  margin-bottom: 2px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6); /* ✅ icon阴影 */
}

@keyframes bounce {
  0%, 100% {
    transform: translate(-50%, -5px);
  }
  50% {
    transform: translate(-50%, -15px);
  }
}

