html {
  font-size: 16px; /* Base font size */
  }
  @font-face {
  font-family: 'Roobert';
  src: url('fonts/Roobert-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  }
  
  body, html {
    position: relative;
  margin: 0;
  padding: 0;
  background: rgb(13, 16, 25);
  background: linear-gradient(
    325deg,
    rgba(20, 25, 13, 1) 0%,
    rgba(21, 41, 42, 1) 55%,
    rgba(16, 26, 14, 1) 100%
  ) !important;
  color: #efeff1;
  }
  /* For WebKit browsers (Chrome, Safari) */
  ::-webkit-scrollbar {
  width: 8px; /* Adjust width as needed */
  background-color: #2f2f2f; /* Dark grey background */
  }
  
  ::-webkit-scrollbar-thumb {
  background-color: #4a4a4a; /* Darker grey for the scrollbar thumb */
  border-radius: 4px; /* Rounded corners for the scrollbar thumb */
  }
  
  /* For Edge (not yet supported) */
  ::-ms-scrollbar {
  width: 8px; /* Adjust width as needed */
  }
  
  ::-ms-scrollbar-thumb {
  background-color: #4a4a4a; /* Darker grey for the scrollbar thumb */
  border-radius: 4px; /* Rounded corners for the scrollbar thumb */
  }
  
  ::-ms-scrollbar-track {
  background-color: #2f2f2f; /* Dark grey background */
  }
  .play-button {
    position: absolute;
    left: 0.4rem; /* Adjust based on your layout */
    top: 50%;
    transform: translateY(-50%);
    width: 2rem; /* Match image width */
    height: 2rem; /* Match image height */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; /* Allow clicks to pass through */
    z-index: 100;
  }
  .voice-item:hover .play-button {
    opacity: 1;
  }
  .play-icon {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent #ffffff;
    transition: all 0.3s ease;
  }
  /* Square stop icon */
.stop-icon {
  width: 18px;
  height: 18px;
  background-color: #ffffff;
  transition: all 0.3s ease;
}
.voice-item .voice-info {
  margin-left: 0.5rem;
}
  .container {
  font-family: Inter;
  max-width: 1300px;
  margin: 4.5rem auto;
  padding: 0 1.25rem;
  }
  .top-bar {
    background-color: #222e2c;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}
.top-bar, .container {
  position: relative;
  z-index: 1;
}
.left-panel, .right-panel {
  position: relative;
  z-index: 2;
}

#particles-js {
  width: 100%;
  height: 100%;
}
  .logo-container {
    flex-shrink: 0;
    margin-right: 1rem;
  }
  .logo-img {
    width: 7.5rem;
    height: auto;
    cursor: pointer;
  }
  .arrow-twitch-wrapper {
    flex-grow: 1;
  }
  .content-wrapper {
    max-width: 1300px; /* Adjust based on your design needs */
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 1rem;
}
  
.profile-bar {
  background-color: rgba(32, 32, 37, 0.8);
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.3);
  border: 1px solid #313131;
  padding: 0.625rem;
  border-radius: 5px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 11;
  transition: border-radius 0.2s ease-out;
}
  .profile-bar:not(.chat-active) {
    border-radius: 5px;
  }
  .profile-bar.chat-active {
    border-radius: 5px 5px 0 0;
    border-bottom: none;
  }
  .expandable-container {
    margin-bottom: 0.7rem;
  }
  /* Style the chat container and input */
  .chat-container {
    position: relative;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    background-color: rgba(32, 32, 37, 0.8);
    border: 1px solid #313131;
    border-radius: 0 0 5px 5px;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.3);
    transform-origin: top;
    transition: max-height 0.2s ease-out, opacity 0.15s ease-out;
  }

  .chat-container.active {
    max-height: 136px; /* Slightly larger than content to ensure smooth animation */
    opacity: 1;
  }

  .chat-input {
    width: 100%;
    min-height: 45px;
    max-height: 120px; /* Limit maximum height */
    border-radius: 4px;
    border: 2px solid transparent;
    background: #161819 !important;
    transition: background 100ms, border-color 100ms;
    color: #efeff1;
    padding: 0.6rem 40px 0.6rem 12px; /* Add right padding for button */
    font-family: Inter, sans-serif;
    font-size: 14px;
    box-sizing: border-box;
    resize: none; /* Prevent manual resizing */
    overflow-wrap: break-word;
    overflow-y: auto; /* Allow vertical scrolling if needed */
  }
  

.chat-input:hover {
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.chat-input:focus {
  background: rgba(0, 0, 0, 0.2) !important;
  box-shadow: none;
  border-color: #a970ff !important;
  outline: none;
}

.chat-input::placeholder {
  color: #4b4b4b;
}
.chat-input-wrapper {
  position: relative;
  padding: 8px;
}
.format-toggle {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  padding: 6px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}
.format-toggle:hover {
  background-color: #35353B;
}
.format-toggle svg {
  width: 20px;
  height: 20px;
}

.chat-toggle {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.chat-toggle:hover {
  opacity: 1;
}

.chat-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

.chat-arrow.active {
  transform: rotate(180deg);
}
.profile-wrapper {
  position: relative;
  width: 100%;
  z-index: 10;
}
  .profile-pic-container {
    position: relative;
    display: inline-block;
  }

.live-indicator {
    position: absolute;
    bottom: -2px;
    left: 40%;
    transform: translateX(-50%);
    background-color: #e91916;
    color: white;
    font-size: 11px;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
    font-family: Inter, sans-serif;
    letter-spacing: 0.5px;
    display: none;
    text-transform: uppercase;
    z-index: 1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  }

  .profile-image {
  width: 1.875rem;
  height: 1.875rem;
  border-radius: 50%;
  background-color: #efeff1;
  margin-right: 0.625rem;
  }
  .particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
  }
  .main-content {
  display: flex;
  gap: 0.7rem;
  }
  
  .left-panel {
  z-index: 1;
  flex: 3;
  background-color: rgba(32, 32, 37, 0.8);
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.3);
  border-color: #313131;
  border-width: 1px;
  border-style: solid;
  border-radius: 5px;
  padding: 1.25rem;
  }
  
  .right-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  }
  
  .tab-buttons {
  display: flex;
  margin-bottom: 1.25rem;
  }
  
  .tab-button {
    display: flex;
    align-items: center;
    padding: 10px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: clamp(0.8rem, 2vw, 1.125rem); /* Responsive font size */
    white-space: nowrap;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tab-button img {
  width: clamp(20px, 4vw, 25px); /* Responsive icon size */
  margin-right: 8px;
}
  
  .tab-button.active {
  opacity: 1;
  border-bottom: 2px solid #4C95CF;
  }
  
  .search-bar {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: rgba(14, 14, 15, 0.5) !important;
    border-radius: 5px;
    padding: 0.625rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
  }
  
  .search-bar input {
    font-family: Inter, sans-serif;
    background: transparent;
    border: none;
    outline: none;
    color: #efeff1;
    width: 100%;
    font-size: 1rem;
  }
  
  .search-icon {
    width: 22px;
    height: 22px;
    margin-right: 8px;
    filter: invert(20%) sepia(0%) saturate(0%) hue-rotate(153deg) brightness(94%) contrast(91%);
  }
  
  .clear-icon {
    width: 22px;
    height: 22px;
    margin-left: 8px;
    cursor: pointer;
    display: none;
    filter: invert(80%) sepia(2%) saturate(15%) hue-rotate(314deg) brightness(87%) contrast(90%);
  }
  
  .clear-icon:hover {
    filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(93deg) brightness(103%) contrast(103%);
  }
  
  .voice-list, .classics-list {
  margin-bottom: 1.25rem;
  }
  
  /* New styles for arrow animation */
  .collapsible img {
    transition: transform 0.3s ease;
  }
  
  .collapsible.active img {
    transform: rotate(180deg);
  }
  
  .voice-item, .classic-item {
  user-select: none; /* Disable text selection */
  -webkit-user-select: none; /* For Safari */
  -moz-user-select: none; /* For Firefox */
  -ms-user-select: none; /* For Internet Explorer/Edge */
  display: flex;
  align-items: center;
  background-color: rgba(14, 14, 15, 0.5);
  padding: 0.5rem;
  border-radius: 5px;
  margin-bottom: 0.0rem;
  }
  
  .voice-item:hover .voice-image,
.voice-item.playing .voice-image {
  filter: brightness(0.7);
}
  .voice-item:hover .play-button,
.voice-item.playing .play-button {
  opacity: 1;
}
  .voice-image {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background-color: #9147ff;
  margin-right: 0.5rem;
  transition: filter 0.3s ease;
  }
  
  .guide, .how-to-send {
    background-color: rgba(32, 32, 37, 0.8);
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.3);
  border-color: #313131;
  border-width: 1px;
  border-style: solid;
  border-radius: 5px;
  padding: 0.6rem;
  }
  
  .example {
  background-color: rgba(14, 14, 15, 0.5);
  border-radius: 5px;
  padding: 0.625rem;
  margin-top: 0.625rem;
  }
  
  .tab-content {
    max-height: none;
    overflow-y: visible;
  }
  
  .sound-clip {
  display: flex;
  align-items: center;
  background-color: rgba(14, 14, 15, 0.5);
  padding: 0.5rem;
  border-radius: 5px;
  margin-bottom: 0.625rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 0.3s;
  }
  
  .sound-number {
    background-color: rgb(76, 128, 207);
    text-shadow: 0px 0px 3px rgba(0, 0, 0, 1), 
    0px 0px 5px rgba(0, 0, 0, 0.8), 
    0px 0px 8px rgba(0, 0, 0, 0.6); /* Adds a stronger glow effect */
  color: #fff;
  border-radius: 3px;
  padding: 0.3rem 0rem;
  margin-right: 0.5rem;
  font-size: 0.5rem;
  min-width: 1.25rem;
  text-align: center;
  padding-left: 0.1rem;
  padding-right: 0.1rem;
  }
  
  .voice-number {
  background-color: rgb(106, 187, 255, 0.2);
  color: #ffffff;
  border-radius: 3px;
  padding: 0.3rem 0.1rem;
  margin-right: 0.5rem;
  font-size: 0.7rem;
  min-width: 1.25rem;
  text-align: center;
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.3);
  }
  
  .sound-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr));
  gap: 0.625rem;
  padding: 0.625rem;
  }
  
  .sound-name {
  flex-grow: 1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  }
  
  .voice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.375rem, 1fr));
  gap: 0.625rem;
  padding: 0.625rem;
  }
  
  .voice-item {
  background-color: #18181b;
  border-radius: 5px;
  padding: 0.2rem;
  font-size: 0.775rem;
  cursor: pointer;
  transition: background-color 0.3s;
  display: flex;
  align-items: center;
  position: relative;
  flex-direction: row;
  overflow: hidden;
  }

  .voice-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
  }
  
  .voice-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.voice-credit {
  font-size: 0.7rem;
  color: #888;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0.1rem;
}
#floating-tooltip {
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  background-color: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.7rem;
  max-width: 200px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.1s ease;
  font-family: Inter, sans-serif;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.voice-credit {
  cursor: default;
  display: none;
}

#floating-tooltip.visible {
  opacity: 1;
}

  .voice-tag {
  color: #fff;
  cursor: pointer;
  display: inline-block;
  border-radius: 3px;
  padding: 0.125rem 0.3125rem;
  font-size: 0.8em;
  margin-left: 0.3125rem;
  }
  
  .voice-tag::after {
  content: 'Default voice';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 0.3125rem;
  border-radius: 4px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  }
  
  .voice-tag:hover::after {
  opacity: 1;
  visibility: visible;
  }
  
  .collapsible {
  background-color: rgba(255, 255, 255, 0.0) !important;
  cursor: pointer;
  padding: 0.625rem;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 1.125rem;
  color: #fff;
  }
  
  .content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
  }
  
  .sound-clip:not(.playing):hover, .voice-item:not(.playing):hover {
    background-color: #292929 !important;
}
  
  .blue {
  color: #6ABBFF;
  font-weight: 600;
  }
  
  .yellow {
  color: #DAA520;
  font-weight: 600;
  }
  
  .green {
  color: #00fa9a;
  font-weight: 600;
  }
  
  .tab-button {
  display: flex;
  align-items: center;
  padding: 10px;
  border: none;
  background: none;
  cursor: pointer;
  }
  
  .button-content {
  display: flex;
  align-items: center;
  }
  
  .button-icon {
  width: 20px;
  border-radius: 50%;
  margin-right: 8px;
  filter: invert(33%) sepia(77%) saturate(6685%) hue-rotate(250deg) brightness(103%) contrast(97%);
  }
  
  .example-button, .example-button2 {
    background-color: transparent;
    background-color: rgba(14, 14, 15, 0.5);
    color: #efeff1;
    font-size: 1rem;
    padding: 0.625rem;
    margin-top: 10px;
    border-radius: 10px;
    border-style: none;
    border: 1px solid #333333;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.2s ease;
    box-sizing: border-box;
  }
  
  .example-button:hover, .example-button2:hover {
    background-color: #252525;
  }
  
  .voice-item, .sound-clip, .example-button, .example-button2 {
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    border: 2px solid transparent;
    transition: border-color 0.2s ease, background-color 0.3s;
  }
  
  .voice-item, .sound-clip, .example-button .example-button2 {
  box-sizing: border-box;
  border: 2px solid transparent;
  transition: border-color 0.2s ease;
  transition: background-color 0.3s;
  }
  .footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 2rem;
    gap: 1rem;
  }
  
  .footer-links, .social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
  }
  
  .footer-link, .social-icon {
    color: #efeff1;
    text-decoration: none;
  }
  
  .social-icon:hover {
    color: #A1A5A2 !important;
  }
  a {
    font-weight: 400;
    color: #68affc;
    text-decoration: none;
    cursor: pointer;
    transition: 0.1s;
  }
  a:hover {
    color: #8bb0ff !important;
  }
  .social-icon i {
    font-size: 1.5rem;
  }
  
  .elevenlabs-logo {
    width: 12rem;
  }
  
  .copyright {
    text-align: center;
  }
  
  .top-bar {
    background-color: rgba(29, 35, 39, 0.411);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding: 0.625rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
}
  .arrow-img {
  width: 7.5rem;
  }
  
  .arrow-twitch-wrapper {
  cursor: pointer;
  }
  
  .tab-button {
  opacity: 0.3;
  color: rgb(185, 185, 185);
  transition: opacity 0.3s ease, color 0.3s ease;
  }
  
  
  .tab-button.active {
  opacity: 1;
  color: #4C95CF;
  }
  
  .tab-button img {
  transition: filter 0.3s ease;
  }
  
  #lottie-container {
  width: 40px;
  height: 40px;
  cursor: pointer;
  }
  
  @keyframes ai-border-animation {
  0%, 100% {
    background-color: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 5px rgba(59, 130, 246, 0.5);
  }
  50% {
    background-color: rgba(147, 51, 234, 0.1);
    border-color: rgba(147, 51, 234, 0.5);
    box-shadow: 0 0 10px rgba(147, 51, 234, 0.5);
  }
}
  
.voice-item.playing, .sound-clip.playing, .example-button.playing, .example-button2.playing, .filter-item.playing {
  border-width: 2px;
  border-style: solid;
  animation: ai-border-animation 2s linear infinite;
}

.voice-item, .sound-clip, .example-button, .example-button2, .filter-item {
  transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
  
  @media screen and (max-width: 48rem) {
    
    html {
    font-size: 14px; /* Slightly smaller base font size for mobile */
    }
    
    .top-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    }
    
    .profile-bar {
    order: 0;
    }
    
    .guide {
    order: 1;
    }
    
    .left-panel {
    order: 3;
    }
    
    .sound-grid {
    grid-template-columns: repeat(auto-fill, minmax(9.375rem, 1fr));
    }
    
    .container, .main-content {
    display: flex;
    flex-direction: column;
    }
    
    .container {
      font-family: Inter;
      max-width: 1300px;
      margin: 0.8rem auto;
      padding: 0 1.25rem;
      }
    
    .right-panel, .how-to-send {
    order: 2;
    }
    
    .voice-grid {
    grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
    }
    .tab-button {
      padding: 8px;
    }
    .tab-button span {
      display: none; /* Hide the number on smaller screens */
    }
}

  @media screen and (max-width: 480px) {
    .tab-buttons {
      justify-content: center !important;
      }
    .tab-button {
        flex-direction: column;
        align-items: center;
        text-align: center;
        font-size: 0.7rem;
    }
    
    .tab-button img {
        margin-right: 0;
        margin-bottom: 4px;
    }
}
  
.filter-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: 0.625rem;
}

.filter-item {
  background-color: rgba(14, 14, 15, 0.5);
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  padding: 0.75rem;
  cursor: pointer;
  transition: background-color 0.3s, border-color 0.2s ease;
  border: 2px solid transparent;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.filter-item:hover {
  background-color: #252525;
}

.filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-arrow {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.filter-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, margin-top 0.3s ease;
  margin-top: 0;
}

.filter-item.expanded .filter-arrow {
  transform: rotate(180deg);
}

.filter-item.expanded .filter-content {
  max-height: 500px; /* Adjust this value based on your content */
  margin-top: 0.8rem;
}

.filter-id {
  background-color: #DAA520;
  color: #362d19;
  border-radius: 3px;
  padding: 0.3rem 0.5rem;
  font-size: 0.875rem;
  font-weight: bold;
  margin-right: 0.5rem;
}

.filter-description {
  flex-grow: 1;
  font-weight: 600;
  font-size: 0.875rem;
}

.filter-example {
  width: 100%;
  font-size: 0.875rem;
  color: #ffffff;
}

  