/* ===================== ANIMATIONS ===================== */

@keyframes flyUpFadeIn {
  0% {
    opacity: 0;
    transform: translateY(60px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes swayBackground {
  0%   { transform: translateX(0px) scale(1.02); }
  50%  { transform: translateX(-10px) scale(1.025); }
  100% { transform: translateX(0px) scale(1.02); }
}

@keyframes gradient-border {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes slideIn {
  0% {
    transform: translateX(30px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes artGlowPulse {
  0% {
    box-shadow: 0 0 6px rgba(102, 204, 255, 0.2), 0 0 12px rgba(138, 255, 193, 0.15);
  }
  50% {
    box-shadow: 0 0 16px rgba(102, 204, 255, 0.6), 0 0 25px rgba(0, 230, 255, 0.3);
  }
  100% {
    box-shadow: 0 0 6px rgba(102, 204, 255, 0.2), 0 0 12px rgba(138, 255, 193, 0.15);
  }
}

@keyframes popupGlowPulse {
  0% {
    box-shadow: 0 0 0px rgba(198, 151, 151, 0.2);
  }
  50% {
    box-shadow: 0 0 20px rgba(45, 108, 151, 0.5), 0 0 40px rgba(255, 255, 255, 0.3);
  }
  100% {
    box-shadow: 0 0 0px rgba(69, 27, 254, 0.2);
  }
}


@keyframes avatarPulse {
  0% {
    box-shadow: 0 0 12px rgba(102, 204, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 25px rgba(102, 204, 255, 0.7), 0 0 35px rgba(0, 230, 255, 0.5);
  }
  100% {
    box-shadow: 0 0 12px rgba(102, 204, 255, 0.3);
  }
}


/* ===================== GLOBAL & SCROLLBAR ===================== */

* {
  scrollbar-width: thin;
  scrollbar-color: #66ccff transparent;
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px; 
}

*::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 8px;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(#66ccff, #00ced1);
  border-radius: 8px;
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(#00ced1, #66ccff);
}

#star-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

#cloud-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

#rain-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}


#moon {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle at 30% 30%, #fff, #ccc);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(255,255,255,0.5);
  z-index: 9999;
  opacity: 0;
  animation: glowMoon 3s ease-in-out infinite alternate;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

#moon::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -20px;
  right: 0;
  font-size: 11px;
  color: #ccc;
  background: rgba(0,0,0,0.4);
  padding: 2px 6px;
  border-radius: 6px;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
#moon:hover::after {
  opacity: 1;
}

#moon.muted {
  filter: grayscale(100%) brightness(0.7);
}
#moon.playing {
  filter: drop-shadow(0 0 10px #00e6ff);
}

@keyframes glowMoon {
  from { filter: brightness(0.9); }
  to   { filter: brightness(1.1); }
}


/* ===================== LOADING ===================== */

#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  background: #000;
}

#loading-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  animation: swayBackground 6s ease-in-out infinite;
  transform-origin: center;
}

.loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.2);
  z-index: 1;
}

.loading-lower-container {
  position: absolute;
  bottom: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 2;
}


.loading-frame {
  width: 100%;
  padding: 25px 60px;
  background: radial-gradient(circle at center,rgba(0, 255, 255, 0.08),rgba(0, 0, 0, 0.6));
  border-radius: 20px 20px 0 0;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.3), 0 0 60px rgba(0, 255, 255, 0.15), inset 0 -4px 12px rgba(0, 255, 255, 0.2);
  position: relative;
  z-index: 2;
  backdrop-filter: blur(4px);
}

.loading-side-title {
  position: absolute;
  top: 20px;
  left: 15px;
  color: white;
  font-family: sans-serif;
  z-index: 10;
  text-align: center;
  animation: flyUpFadeIn 1.2s ease-out;
}

.loading-side-title .main-title {
  font-size: 30px;
  line-height: 1.4;
  font-weight: bold;
  letter-spacing: 2px;
  white-space: pre;
}



.loading-bar-glow {
  position: absolute;
  top: -20px;
  left: 50%;
  width: 300px;
  height: 6px;
  transform: translateX(-50%);
  background: radial-gradient(circle, #fff, transparent 70%);
  opacity: 0.3;
  filter: blur(6px);
}

.loading-text-zone {
  color: white;
  font-family: 'Georgia', serif;
  font-size: 20px;
  letter-spacing: 5px;
  margin-bottom: 12px;
}

#loading-label {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-start;
}

.loading-word {
  font-size: 20px;
}

.loading-dots span {
  font-size: 18px;
  color: white;
  animation: bounce 1.2s infinite;
  display: inline-block;
}

.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }
.loading-dots span:nth-child(4) { animation-delay: 0.6s; }
.loading-dots span:nth-child(5) { animation-delay: 0.8s; }

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

#wind-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}


.progress-track {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  position: relative;
  margin-top: 20px;
  overflow: visible; 
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(to right, #ffffff, #00ffff);
  transition: width 0.1s ease;
}

.progress-dot {
  position: absolute;
  top: -20px;
  left: 0;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  z-index: 5;
  pointer-events: none;
  overflow: visible;
}

.star-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  background-image: url('https://cdn-icons-png.flaticon.com/512/616/616489.png');
  background-size: cover;
  background-repeat: no-repeat;
  animation: spinStar 3s linear infinite;
  will-change: transform;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.5));
}


@keyframes spinStar {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}


.progress-dot .sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  opacity: 0.6;
  animation: sparkleOut 1s ease-out infinite;
  filter: blur(1px);
}

.progress-dot .sparkle:nth-child(1) {
  top: 10%;
  left: 90%;
  animation-delay: 0s;
}

.progress-dot .sparkle:nth-child(2) {
  top: 50%;
  left: 110%;
  animation-delay: 0.3s;
}

.progress-dot .sparkle:nth-child(3) {
  top: 80%;
  left: 95%;
  animation-delay: 0.6s;
}

@keyframes sparkleOut {
  0% {
    transform: scale(0.8) translate(0, 0);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.4) translate(10px, -10px);
    opacity: 0;
  }
}


.quote-text {
  font-size: 14px;
  color: #eee;
  margin-top: 16px;
  font-style: italic;
  text-align: right;
  opacity: 0;
  transition: opacity 1.2s ease;
}


@keyframes quoteFadeCycle {
  0%, 100% { opacity: 0; }
  10%, 90% { opacity: 1; }
}

/* ===================== MOBILE FRIENDLY ===================== */

@media screen and (max-width: 768px) {
  .intro-container {
    flex-direction: column;
    align-items: center;
  }
  .intro-left, .intro-right {
    min-width: 100%;
  }
  .navbar {
    flex-wrap: wrap;
  }
  .art-card {
    width: 100%;
  }
  .tab-menu button {
    font-size: 0; /* Ẩn chữ */
  }
  .tab-menu button i {
    font-size: 18px;
  }
  .arts-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
    margin: 20px auto;
    gap: 10px;
  }
}


@media screen and (min-width: 768px) {
  .remember-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin-top: 30px;
}

  .remember-column {
    width: 280px;
  }

  .remember-center-circle {
    margin-top: 40px;
  }
}

@media screen and (max-width: 400px) {
  .tab-menu button {
    padding: 4px 8px;
    font-size: 12px;
  }
  .intro-container {
    gap: 20px;
    padding: 0 20px;
  }
}

@media screen and (max-width: 768px) {
  .characters-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
    margin: 20px auto;
    gap: 10px;
  }

  .character-tab {
    font-size: 0; /* ẩn chữ */
    padding: 8px 12px;
  }

  .character-tab i {
    font-size: 18px;
  }
}


/* ===================== BASE STYLES ===================== */

body {
    margin: 0;
    font-family: 'Georgia', serif;
    opacity: 0;
    transform: translateY(30px);
    animation-name: flyUpFadeIn;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    animation-timing-function: ease-out;
    }


.page-section {
    display: none;
  }

.page-section.active {
    animation-name: flyUpFadeIn;
    animation-duration: 1s;
    display: block;
  }


/* ===================== NAVBAR ===================== */

.navbar {
    display: flex;
    justify-content: center;
    background: linear-gradient(180deg, #0d0d0d 0%, #1a1a1a 40%, #2b2b2b 100%);
    padding: 10px 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  }

.navbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
  font-weight: bold;
  color: #eeeeee;
  text-decoration: none;
  margin: 0 15px;
  position: relative;
  padding: 5px 0;
  transition: color 0.3s;
}


.navbar a i {
  font-size: 16px;
  margin-bottom: 3px;
  color: #ffffff;
}

.navbar a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 20%;
  width: 60%;
  height: 2px;
  background: #26759d;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.navbar a:hover::after,
.navbar a.active::after {
  transform: scaleX(1);
}

.navbar a:hover {
  color: #66ccff;
}

.navbar a:hover i {
  color: #26759d;
}

.navbar a.active {
  color: #66ccff;
}
.navbar a.active i {
  color: #26759d;
}


/* ===================== HEADER ===================== */

.header {
    position: relative;
    height: 120px;
    text-align: center;
    color: white;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
    padding: 30px;
  }

.header::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('https://f2.toyhou.se/file/f2-toyhou-se/images/99330046_eV106tpnbLRI62r.png');
    background-size: cover;
    background-position: center 30%;
    filter: blur(1px);
    z-index: -1;
  }

.header-text {
  text-align: center;
  position: relative;
  width: 100%;
}

.header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  color: #ffffff;
  text-shadow: 0 0 10px #00ced1, 0 0 20px #00688b;
  margin-bottom: 5px;
}

.header-quote {
  font-size: 14px;
  color: #ffffff;
  font-style: italic;
  position: absolute;
  right: 20px;
  bottom: -10px;
}

/* ===================== CLOCK ===================== */

.floating-clock {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 999;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 15px;
  padding: 12px 20px;
  font-family: 'Georgia', serif;
  box-shadow: 0 0 10px rgba(102, 204, 255, 0.4);
  backdrop-filter: blur(4px);
  animation: flyUpFadeIn 1s ease;
}

.clock-time {
  font-size: 32px;
  font-weight: bold;
  background: linear-gradient(90deg, #66ccff, #8affc1, #d4baff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 6px rgba(102, 204, 255, 0.3);
  text-align: center;
}

.clock-date {
  font-size: 14px;
  color: #d4baff;
  text-align: center;
  margin-top: 4px;
  font-style: italic;
}



/* ===================== INTRODUCTION ===================== */

/* ---- Container and Layout */
.intro-left {
  flex: 1;
  min-width: 250px;
  text-align: center;
  padding-top: 30px;
}

.intro-right {
  flex: 2;
  min-width: 300px;
  position: relative;
  overflow: hidden;
  padding-top: 30px; 
}

.intro-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding: 0 40px 40px 40px; 
  border-radius: 0 0 20px 20px; 
  color: white;
  animation: flyUpFadeIn 1s ease-out;
  background: linear-gradient(180deg, #0d0d0d 0%, #1a1a1a 40%, #2b2b2b 100%);
}

/* ---- Avatar and Status ---- */
.intro-avatar {
  border: 4px solid transparent;
  border-radius: 20px;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(45deg, #66ccff, #90d170, #8affc1) border-box;
  box-shadow: 0 0 15px rgba(102, 204, 255, 0.5);
  animation: avatarPulse 2.5s ease-in-out infinite;
  transition: transform 0.3s;
}

.intro-avatar:hover {
  transform: scale(1.03);
  box-shadow: 0 0 25px rgba(102, 204, 255, 0.8), 0 0 35px rgba(0, 230, 255, 0.5);
}

.avatar-caption {
  margin-top: 10px;
  font-size: 14px;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 0 0 4px #000;
} 

/* ---- Name and Quote ---- */
.intro-name {
  font-size: 28px;
  font-family: 'Georgia', serif;
  color: #d4baff;
}

.intro-quote {
  font-style: italic;
  font-size: 14px;
  margin-bottom: 20px;
}

/* ---- Top Image and Welcome ---- */
.intro-image-wrapper {
  text-align: center;
  margin-bottom: 15px;
}

.intro-img-top {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid #66ccff;
  object-fit: cover;
  box-shadow: 0 0 8px #00ced1;
}

.welcome-message {
  text-align: center;
  font-size: 14px;
  font-style: italic;
  color: #ffffff;
  margin-bottom: 20px;
  padding: 0 20px;
}

.no-result-message {
  text-align: left;
  color: #bbb;
  font-style: italic;
  font-size: 16px;
  padding: 20px 0;
  animation: fadeIn 0.3s ease-in-out;
}

/* ---- Intro Footer ---- */
.intro-bottom-text {
  margin-top: 30px;
  font-style: italic;
  text-align: center;
  padding: 0 20px;
}

/* ===================== INFORMATION BOXES ===================== */

/* ---- Art Status and Information Card ---- */
.info-box-formatted {
  background: #ffffff08;
  padding: 20px 30px;
  border-radius: 15px;
  font-family: 'Georgia', serif;
  color: #ffffff;
  box-shadow: 0 0 10px #00000040;
}

.info-box, .music-box {
  background: #ffffff10;
  padding: 20px;
  border-radius: 15px;
  margin-bottom: 20px;
}

.info-title {
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  letter-spacing: 1px;
  color: #408fb6;
  margin-bottom: 15px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-row:last-child {
  border-bottom: none;
}

.label {
  font-weight: bold;
  color: #a8e4ff;
  text-transform: uppercase;
  font-size: 13px;
}

.value {
  text-align: right;
  font-size: 13px;
  color: #ffffff;
}

/* ---- Music Box Info ---- */
.music-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.music-box li {
  margin-bottom: 8px;
}


/* ===================== TAB MENU ===================== */

.tab-menu {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: none;        
  box-shadow: none;         
  border-radius: 0;
}

.tab-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: #e0f7ff;
  font-weight: 500;
  padding: 6px 10px;          
  border-radius: 8px;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  position: relative;
  overflow: hidden;
}

.tab-menu button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #ffffff, #00f0ff);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 0;
}

.tab-menu button:hover::before {
  opacity: 0.25;
}

.tab-menu button:hover {
  color: #ffffff;
}

.tab-menu button > * {
  position: relative;
  z-index: 1; 
}

.tab-menu button.active {
  background: linear-gradient(to right, #ffffff, #d8fcff);
  color: #002f4b;
  font-weight: bold;
}

/* ===================== TAB CONTENT ===================== */

.tab-content {
  display: none;
  animation: flyUpFadeIn 0.5s ease-out;
  position: relative;
  overflow: auto;
  padding: 20px;
  border-radius: 15px;
  background: rgba(0, 47, 75, 0.3);
  backdrop-filter: blur(6px);
  box-shadow: 0 0 10px #00000040;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}

.tab-content.active {
  display: block;
}

.tab-content ul {
  padding-left: 20px;
}

.tab-content li {
  margin-bottom: 6px;
  list-style-type: disc;
}

.tab-content h2 {
  text-align: center;
}

/* ===================== TO-DO LIST ===================== */

.todo-wrapper {
  background: rgba(255,255,255,0.05);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 0 10px #00000040;
  margin-bottom: 30px;
  font-family: 'Georgia', serif;
}

.todo-title {
  color: #66ccff;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 15px;
}

.todo-item {
  background: rgba(0, 0, 0, 0.2);
  padding: 12px 15px;
  margin-bottom: 15px;
  border-radius: 12px;
  box-shadow: 0 0 6px rgba(0, 206, 209, 0.3);
  transition: transform 0.3s;
}

.todo-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 10px #00e6ff;
}

.todo-name {
  font-weight: bold;
  color: #66ccff;
  font-size: 14px;
}

.todo-desc {
  font-size: 13px;
  color: #e0e0e0;
  margin: 5px 0;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: #333;
  border-radius: 5px;
  overflow: hidden;
}

.progress {
  height: 100%;
  background: linear-gradient(to right, #00e6ff, #66ccff);
}

/* ===================== OPINIONS ===================== */

/* ---- General Layout ---- */
.do-dont-box {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 25px;
  justify-content: center;
}

.love-hate-box {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 25px;
  justify-content: center;
}

/* ---- Left/Right Box ---- */
.do-section, .dont-section {
  flex: 1;
  min-width: 200px;
  background: #ffffff08;
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 0 10px #00000040;
  font-family: 'Georgia', serif;
}

.love-section, .hate-section {
  flex: 1;
  min-width: 200px;
  background: #ffffff08;
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 0 10px #00000040;
}

/* ---- Title ---- */
.do-title {
  color: #00e676;
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 10px;
}

.dont-title {
  color: #ff4d4d;
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 10px;
}

.love-title {
  color: #66ccff;
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 10px;
}

.hate-title {
  color: #66ccff;
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 10px;
}

/* ---- List ---- */
.do-section li, .dont-section li {
  color: #ffffff;
  font-size: 13px;
  margin-bottom: 5px;
  list-style: disc;
  padding-left: 5px;
}

.love-section ul, .hate-section ul {
  list-style: disc;
  padding-left: 20px;
  margin: 0;
}

.love-section li, .hate-section li {
  color: #ffffff;
  font-size: 13px;
  margin-bottom: 5px;
}

/* ===================== FRIENDS CAROUSEL ===================== */

/* ---- Carousel Layout ---- */
.friends-carousel-3d {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.carousel-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: #66ccff;
  cursor: pointer;
  transition: color 0.3s;
}

.carousel-btn:hover {
  color: #00ced1;
}

.carousel-track-3d {
  display: flex;
  gap: 30px;
  width: 360px;
  justify-content: center;
  align-items: flex-end;
  overflow: visible;
}

/* ---- Friends Avatar ---- */
.friend-avatar-3d {
  width: 100px;
  height: 100px;
  margin-bottom: 0px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
  opacity: 0.6;
  filter: blur(1px);
  z-index: 1;
  transform: translateZ(0);
}

.friend-avatar-3d.center {
  transform: scale(1.2) translateY(10px);
  opacity: 1;
  filter: none;
  z-index: 2;
}

.friend-avatar-3d.center img {
  border: 3px solid #66ccff;
  box-shadow: 0 0 12px #00e6ff;
}

.friend-avatar-3d img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.friend-avatar-3d.side:hover {
  transform: scale(1.1);
  filter: blur(0.5px);
  opacity: 0.8;
}

/* ---- Friend Name ---- */
.friend-avatar-3d .friend-name {
  margin-top: 8px;
  font-size: 13px;
  color: #66ccff;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.3s;
}

.friend-avatar-3d.center .friend-name {
  opacity: 1;
}

/* ---- Effects ---- */
.friend-avatar-3d.animate-friend {
  animation: slideIn 0.4s ease;
}

/* ===================== MUSIC PLAYER ===================== */
 
/* ---- Music Card ---- */
.music-section {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.music-card {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 15px;
  padding: 15px;
  width: 250px;
  color: #d4baff;
  box-shadow: 0 0 10px #00000060;
  text-align: center;
  font-family: 'Georgia', serif;
  margin: 10px;
  position: relative;
  transition: box-shadow 0.4s ease, transform 0.3s;
}

.music-card.playing {
  box-shadow: 0 0 20px #00e6ff, 0 0 10px #66ccff;
  transform: scale(1.02);
}

/* ---- Music Info ---- */
.music-info h3 {
  margin: 0;
  font-size: 18px;
  color: #28549a;
}

.music-info p {
  margin: 4px 0 10px 0;
  font-size: 14px;
  color: #68aacb;
}

/* ---- Music Cover ---- */
.music-cover {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  margin-top: 10px;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.music-cover.show {
  opacity: 1;
  display: block !important;
}

/* ---- Status ---- */
.now-playing {
  position: absolute;
  top: 8px;
  right: 12px;
  background: rgba(0, 206, 209, 0.2);
  color: #66ccff;
  font-size: 12px;
  font-style: italic;
  padding: 2px 6px;
  border-radius: 8px;
  display: none;
}

.music-card.playing .now-playing {
  display: block;
}

/* ---- Music Control ---- */
.music-controls button {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 18px;
  margin: 0 5px;
  cursor: pointer;
}

.music-controls button:hover {
  color: #00e6ff;
}

.music-controls button.repeat-toggle {
  transition: color 0.3s;
}
.music-controls button.repeat-toggle:hover {
  color: #00e6ff;
}
    
/* ---- Seek Bar ---- */
.seek-bar {
  width: 100%;
  margin: 10px 0;
  appearance: none;
  height: 4px;
  background: #ddd;
  border-radius: 2px;
}

/* ---- Time ---- */
.time-display {
  font-size: 12px;
  color: #b0e0e6;
  margin-top: -6px;
  margin-bottom: 8px;
  text-align: center;
}

/* ---- Volume ---- */
.volume-controls {
  margin-top: 10px;
}

.volume-controls button {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 16px;
  margin: 0 5px;
  cursor: pointer;
}

.volume-controls button:hover {
  color: #00e6ff;
}

.volume-bar {
  width: 80px;
  height: 4px;
  background: #ddd;
  border-radius: 3px;
  appearance: none;
  accent-color: #66ccff;
  margin: 0 8px;
  cursor: pointer;
}

.volume-bar::-webkit-slider-thumb {
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #66ccff;
  border: none;
  box-shadow: 0 0 2px #000;
}

.volume-bar::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #66ccff;
  border: none;
}

.volume-percent {
  font-size: 12px;
  color: #b0e0e6;
  min-width: 36px;
  text-align: left;
}

/* ---- Tempo ---- */
.tempo-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  font-size: 12px;
  color: #b0e0e6;
}

.tempo-icon {
  margin-right: 8px;
}

.tempo-bar {
  width: 80px;
  height: 4px;
  margin: 0 8px;
  appearance: none;
  background: #ddd;
  border-radius: 3px;
  accent-color: #66ccff;
}

.tempo-bar::-webkit-slider-thumb {
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #66ccff;
  border: none;
  box-shadow: 0 0 2px #000;
}

.tempo-value {
  min-width: 36px;
  text-align: left;
}

/* ===================== SOCIAL MEDIA ===================== */

/* ---- General Layout ---- */
.social-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.social-card {
  flex: 1;
  min-width: 250px;
  background: #005f6a33;
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 0 10px #00000050;
  text-align: center;
  font-family: 'Georgia', serif;
  color: #d4baff;
  position: relative;
  transition: transform 0.3s ease;
}

.social-card:hover {
  transform: scale(1.03);
  box-shadow: 0 0 16px rgba(0, 206, 209, 0.6);
}

/* ---- Header ---- */
.social-header {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}

.social-header .line {
  height: 4px;
  background: linear-gradient(to right, #66ccff, #00ced1);
  border-radius: 4px;
}

.social-header .short {
  width: 20px;
}

.social-header .long {
  width: 60px;
}

/* ---- Icon and Avatar ---- */
.social-icon-link {
  display: inline-block;
  border-radius: 20px;
  padding: 5px;
  border: 4px solid transparent;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(45deg, #e0ffc4, #ffffff, #00ced1) border-box;
  transition: 0.3s;
}

.social-icon-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
}

/* ---- Social Inform ---- */
.social-text {
  margin-top: 10px;
}

.social-text .platform {
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 1px;
  color: #28549a;
}

.social-text .username {
  font-size: 14px;
  color: #66ccff;
}

.social-text .status {
  font-size: 12px;
  font-style: italic;
  margin-top: 6px;
  color: #b0e0e6;
}

/* ---- Gradient style left/right ---- */
.gradient-left .social-icon-link {
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, #8affc1, #ffffff, #0080ff) border-box;
}

.gradient-right .social-icon-link {
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, #66ccff, #ffffff, #00688b) border-box;
}


/* ===================== BLACKLIST ===================== */

/* ---- Blacklist Card ---- */
.blacklist-item {
  display: flex;
  align-items: center;
  background: rgba(255, 0, 0, 0.05);
  border-left: 4px solid #ff4d4d;
  padding: 12px 15px;
  margin-bottom: 15px;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(255, 0, 0, 0.2);
}

/* ---- Avatar ---- */
.blacklist-avatar img {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
  margin-right: 15px;
  transition: transform 0.3s;
  box-shadow: 0 0 6px rgba(255, 0, 0, 0.3);
}

.blacklist-avatar:hover img {
  transform: scale(1.05);
}

/* ---- Text ---- */
.blacklist-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blacklist-name {
  font-weight: bold;
  color: #ff6666;
  font-size: 15px;
}

.blacklist-reason {
  font-size: 13px;
  color: #ffcccc;
  margin-top: 3px;
}

/* ===================== SEARCH ENGINE ===================== */

mark {
  background: linear-gradient(to right, #66ccff, #8affc1);
  color: #000;
  padding: 0 3px;
  border-radius: 4px;
  font-weight: bold;
}


/* ===================== ART SIDEBAR ===================== */
    
/* ---- Sidebar Container ---- */
.arts-sidebar {
  position: relative;
  margin: 40px 0 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 220px;
  padding: 20px;
  border-radius: 15px;
  background: linear-gradient(180deg, #0d0d0d 0%, #1a1a1a 40%, #2b2b2b 100%);
  box-shadow: 0 0 10px #00000060;
}

/* ---- Sidebar Button ---- */
.sidebar-btn {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  color: #e0f7ff;
  font-family: 'Georgia', serif;
  font-size: 14px;
  padding: 10px 16px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  position: relative;
  transition: background 0.3s, transform 0.2s, color 0.3s;
  text-align: left;
}

.sidebar-btn::before {
  content: "";
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 50%;
  margin-right: 10px;
  display: inline-block;
}

.sidebar-btn:hover {
  background: linear-gradient(to right, #00ced1, #66ccff);
  transform: translateX(5px);
  color: #ffffff;
}

.sidebar-btn.active {
  background: linear-gradient(to right, #ffffff, #66ccff);
  color: #1d689a;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(173, 190, 255, 0.4);
  border: 1px solid #00cccc;
  transition: 0.3s;
}

.sidebar-btn.active::before {
  background: linear-gradient(45deg, #1d689a, #236262);
}


/* ===================== ART GALLERY ===================== */

/* ---- Gallery Container ---- */
.art-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start; 
  align-items: flex-start;    
  gap: 20px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 15px;
  flex-grow: 1; 
  flex-shrink: 1;
  flex-basis: 0;
  max-width: calc(100% - 240px);
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}

.arts-left {
  width: 220px;
  flex-shrink: 0;
}

/* ---- Art Card ---- */

.arts-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 40px 40px 40px 0;
  border-radius: 0 0 20px 20px;
  color: white;
  animation: flyUpFadeIn 1s ease-out;
  background: linear-gradient(180deg, #0d0d0d 0%, #1a1a1a 40%, #2b2b2b 100%);
  align-items: flex-start;
}

.art-card {
  width: 195px;
  background: #1c1c24;
  border: 2px solid #444;
  border-radius: 10px;
  text-align: center;
  padding: 10px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s, box-shadow 0.3s;
  font-family: 'Georgia', serif;
  color: #fff;
  animation: artGlowPulse 2.8s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.art-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 16px rgba(0, 206, 209, 0.6);
}

.art-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}


.art-card .art-title {
  font-size: 15px;
  color: #a8e4ff;
  margin-top: 6px;
}


/* ===================== ART POPUP ===================== */

/* ---- Popup Container ---- */
#art-popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  text-align: center;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  vertical-align: middle;
}

.popup-glow {
  animation: popupGlowPulse 2.5s ease-in-out infinite;
  border-radius: 12px;
}


/* ---- Popup Navigation Arrows ---- */
.popup-nav:hover {
  background: rgba(255, 255, 255, 0.15);
}

.popup-nav.left {
  left: 0;
}

.popup-nav.right {
  right: 0;
}

.popup-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 80px;
  height: 100vh;
  font-size: 48px;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: white;
  cursor: pointer;
  z-index: 10000; /* cao hơn cả popup */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, color 0.3s;
}

.popup-nav:disabled {
  opacity: 0.2;
  cursor: not-allowed;
}

/* ---- Popup Content ---- */
.art-popup-content {
  background: #1a1a1a;
  padding: 20px;
  border-radius: 12px;
  max-width: 90%;
  max-height: 90%;
  overflow: auto;
  position: relative;
  text-align: center;
  display: inline-block;
}

/* ---- Close Button ---- */
.art-popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 28px;
  cursor: pointer;
  transition: color 0.3s;
  z-index: 10;
}

/* ---- Art Info Section ---- */
.art-popup-info {
  margin-top: 15px;
  color: #eee;
  font-family: 'Georgia', serif;
}

.owner-link {
  text-decoration: none;          
  color: #66ccff;
  font-weight: bold;
  transition: color 0.3s;
  position: relative;
}

.owner-link::before {
  content: "✦ ";
  color: #8affc1;
  font-weight: normal;
  margin-right: 2px;
}

.owner-link:hover {
  color: #ffffff;
}

.art-popup-content img {
  max-width: 100%;
  max-height: 500px;
  border-radius: 10px;
  box-shadow: 0 0 12px #00e6ff;
}



/* ===================== ART PAGINATION ===================== */

/* ---- Pagination Controls ---- */
.arts-pagination-controls {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding: 20px;
  border-radius: 16px;
  background: rgba(20, 20, 20, 0.8);
  box-shadow: 0 0 10px rgba(0, 206, 209, 0.3);
  border: 1px solid #333;
  backdrop-filter: blur(4px);
}

.arts-pagination-controls button {
  background: linear-gradient(to right, #00ced1, #66ccff);
  border: none;
  color: #001f2f;
  font-weight: bold;
  padding: 10px 18px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Georgia', serif;
}

.arts-pagination-controls button:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 10px rgba(102, 204, 255, 0.4);
}

.arts-pagination-controls button:disabled {
  opacity: 0.4;
  cursor: default;
  box-shadow: none;
}

.arts-pagination-controls span {
  color: #b0e0e6;
  font-weight: bold;
  font-size: 14px;
}


/* ===================== CHARACTERS ===================== */

.characters-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 40px 40px 40px 0;
  border-radius: 0 0 20px 20px;
  color: white;
  animation: flyUpFadeIn 1s ease-out;
  background: linear-gradient(180deg, #0d0d0d 0%, #1a1a1a 40%, #2b2b2b 100%);
  align-items: flex-start;
}

.characters-left {
  width: 220px;
  flex-shrink: 0;
}

.characters-sidebar {
  position: relative;
  margin: 40px 0 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 220px;
  padding: 20px;
  border-radius: 15px;
  background: linear-gradient(180deg, #0d0d0d 0%, #1a1a1a 40%, #2b2b2b 100%);
  box-shadow: 0 0 10px #00000060;
}

.char-sidebar-btn {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  color: #e0f7ff;
  font-family: 'Georgia', serif;
  font-size: 14px;
  padding: 10px 16px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  position: relative;
  transition: background 0.3s, transform 0.2s, color 0.3s;
  text-align: left;
}

.char-sidebar-btn:hover {
  background: linear-gradient(to right, #00ced1, #66ccff);
  transform: translateX(5px);
  color: #ffffff;
}

.char-sidebar-btn.active {
  background: linear-gradient(to right, #ffffff, #66ccff);
  color: #1d689a;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
  border: 1px solid #00cccc;
  transition: 0.3s;
}

.char-sidebar-btn.active::before {
  background: linear-gradient(45deg, #1d689a, #236262);
}


.characters-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; 
  align-items: flex-start;    
  gap: 20px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 15px;
  flex-grow: 1; 
  flex-shrink: 1;
  flex-basis: 0;
  max-width: calc(100% - 240px);
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}

.character-card {
  width: 180px;
  background: transparent;
  padding: 8px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(4px);
  position: relative;
  perspective: 1000px; 
  height: 280px;
}

.character-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(102, 204, 255, 0.7);
}

.character-card img {
  width: 100%;
  height: 150px;
  border-radius: 8px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.character-card:hover img {
  transform: scale(1.05);
}

.character-card a {
  text-decoration: none;
  color: inherit;
}

.character-text {
  text-align: center;
  margin-top: 10px;
}

.character-text .character-name {
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  margin-bottom: 4px;
}

.character-text .character-title {
  font-family: 'Times New Roman', Times, serif;
  font-size: 13px;
  font-style: italic;
  font-weight: 400;
  color: #fff;
}

.character-text .character-name,
.character-text .character-title {
  color: #fff;
}
.character-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.character-card.flipped .character-inner {
  transform: rotateY(180deg);
}

.character-front, .character-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  overflow: hidden;
}

.character-front {
  background: transparent;
}

.character-back {
  background: rgba(0, 0, 0, 0.75);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 16px 12px;
  color: white;
  text-align: center;
  height: 100%; 
  box-sizing: border-box;
}


.character-back p {
  font-size: 13px;
  text-align: center;
  margin-bottom: 10px;
}

.character-back a.character-link-button {
  background: #66ccff;
  color: #000;
  padding: 6px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  margin-top: auto;
  transition: background 0.3s, color 0.3s;
}

.character-back a.character-link-button:hover {
  background: #00ccff;
  color: #fff;
}

.flip-card {
  perspective: 1000px;
}
.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}
.flip-card:hover .flip-inner {
  transform: rotateY(180deg);
}
.character-front, .character-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  padding: 10px;
  box-sizing: border-box;
}

.character-description {
  font-family: 'Georgia', serif;
  font-size: 13px;
  margin-top: 10px;
  margin-bottom: 20px;
  line-height: 1.4;
  color: white;
}

.character-species {
  font-size: 12px;
  font-style: italic;
  color: #ccc;
  margin-top: 6px;
  padding: 4px;
  text-align: center;
  font-family: 'Roboto', sans-serif;
  position: relative;
}

/* === Gradient Button === */
.character-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  border: 2px solid;
  border-image: linear-gradient(45deg, #ffffff, #8cddf2) 1;
  border-radius: 20px;
  font-weight: 400;
  font-size: 14px;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  color: white;
  background-color: transparent;
  text-decoration: none;
  transition: all 0.3s ease;
}

.character-link-button:hover {
  box-shadow: 0 0 8px rgba(200, 255, 255, 0.3);
  transform: scale(1.03);
  color: white;
}



/* ===================== FACTIONS ===================== */

.faction-banner {
  position: relative;
  width: 100%;
  margin-bottom: 20px;
  border-radius: 10px;
  overflow: hidden;
}

.faction-banner img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.faction-overlay {
  position: absolute;
  top: 0;
  right: 0;
  width: 45%; 
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4); 
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;  
  justify-content: flex-start; 
  color: white;
}

.faction-overlay h3 {
  margin: 10px 0 10px 0;
  font-size: 26px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.faction-overlay h3::before {
  content: "| ";
  color: #ffffff;
  margin-right: 6px;
  font-weight: 500;
}

.faction-overlay p {
  max-height: 200px;
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  font-family: 'Roboto', sans-serif;
  opacity: 0.9;
  overflow: auto;
}

.faction-hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin: 30px 0;
  width: 100%;
}

/* ===================== LIBRARY ===================== */

.story-container {
  display: block;
  flex-wrap: wrap;
  gap: 20px;
  padding: 40px 40px 40px 0;
  border-radius: 0 0 20px 20px;
  color: white;
  animation: flyUpFadeIn 1s ease-out;
  background: linear-gradient(180deg, #0d0d0d 0%, #1a1a1a 40%, #2b2b2b 100%);
  align-items: flex-start;
}

.story-left {
  width: 220px;
  flex-shrink: 0;
}

.story-sidebar {
  position: relative;
  margin: 40px 0 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 220px;
  padding: 20px;
  border-radius: 15px;
  background: linear-gradient(180deg, #0d0d0d 0%, #1a1a1a 40%, #2b2b2b 100%);
  box-shadow: 0 0 10px #00000060;
}

.story-sidebar-btn {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  color: #e0f7ff;
  font-family: 'Georgia', serif;
  font-size: 14px;
  padding: 10px 16px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  position: relative;
  transition: background 0.3s, transform 0.2s, color 0.3s;
  text-align: left;
}

.story-sidebar-btn:hover {
  background: linear-gradient(to right, #66ccff, #8affc1);
  transform: translateX(6px);
  color: white;
}

.story-sidebar-btn.active {
  background: linear-gradient(to right, #ffffff, #66ccff);
  color: #1d689a;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
  border: 1px solid #00cccc;
  transition: 0.3s;
}

.story-sidebar-btn.active::before {
  background: linear-gradient(45deg, #1d689a, #236262);
}

.story-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start; 
  align-items: flex-start;    
  gap: 20px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 15px;
  flex-grow: 1; 
  flex-shrink: 1;
  flex-basis: 0;
  max-width: calc(100% - 240px);
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}
