@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600&display=swap');

/* Define Theme Colors */
:root {
  --blue: #87D9FF;
  --light-blue: #6ADCFF;
  --purple: rgba(143, 1, 201, 0.8);
  --white: #ffffff;
  --card-gradient: linear-gradient(145deg, #6ADCFF, #8F01C9);
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Arial', sans-serif;
  background: linear-gradient(to bottom, #a8dfff, #f3e6ff);
  color: #000;
  overflow-x: hidden;
  position: relative;
}

.background-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  opacity: 0.8;
  animation: sparkle linear infinite;
}

.download-buttons {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  padding-left: 5px;
}

.button-image {
  width: 110px;
  height: auto;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.button-image:hover {
  transform: scale(1.05);
  opacity: 0.8;
}

/* Header */
header {
  display: flex;
  align-items: center; 
  padding: 10px 20px;
  background: var(--card-gradient);
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
  position: relative;
}

.logo {
  left: 20px;
  height: 45px;
  margin-right: 10px;
}

.logo-text {
  width: 100px;
}

/* Intro Section */
.intro {
  text-align: center;
  padding: 15px 20px
}

.intro h3 {
  font-size: 1.0rem;
  margin-bottom: 2px;
}

.intro p {
  font-size: 1rem;
  color: #333;
}

.profiles-wrapper {
  margin: 20px 0;
  margin-top: 2px;
  margin-bottom: 2px;
}

.profiles-wrapper h3 {
  text-align: center;
  font-size: 1.2em;
  color: #000;
  margin-bottom: 2px;
  margin-top: 2px;
}

.profiles {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 35px;
  padding: 10px;
  margin-left: 10px;
  margin-right: 10px;
  scroll-behavior: smooth;
}

.profiles::-webkit-scrollbar {
  height: 4px;
}

.profiles::-webkit-scrollbar-thumb {
  border-radius: 4px;
}

.profile {
  flex-shrink: 0;
  width: clamp(80px, 15vw, 120px);
  height: clamp(80px, 15vw, 120px); 
  border-radius: 50%;
  border: 5px solid #87D9FF; 
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile img {
  width: auto; 
  height: 100%; 
  object-fit: cover;
  object-position: center;
}

.script-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px;
}

/* Game Cards */
.game-cards-wrapper {
  padding: 8px;
  margin-top: 5px;
  margin-right: 2px;
  position: relative;
}

.game-cards {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding: 5px 0;
  transition: transform 0.5s ease-in-out;
}

.card {
  flex: 0 0 auto;
  width: 120px;
  height: 150px;
  background: var(--card-gradient);
  color: var(--white);
  font-size: 14px;
  font-weight: bold;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
  user-select: none;
}

.card img {
  width: 60px;
  height: 60px;
  margin-bottom: 8px;
}

/* Voice Rooms Section */
.voice-rooms {
  text-align: center;
  padding: 30px 30px;
  background: linear-gradient(to right, #8F01C9, #6ADCFF);
  color: var(--white);
  margin: 20px 0;
  margin-top: 10px;
  margin-bottom: 30px;
  border-radius: 15px;
}

.party-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  display: block;
  margin: 10px auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.voice-rooms h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #fff;
}

.voice-rooms p {
  font-size: 1rem;
  margin-bottom: 30px;
  color: #f3f3f3;
}

.caption-section {
  text-align: center;
  background: var(--light-blue);
  color: white;
  padding: 2px 20px;
  font-size: 0.9rem;
  font-weight: bold;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.card:hover {
  transform: scale(1.1);
  transition: transform 0.3s;
}

#banner-text {
  animation: colorShift 5s infinite;
}

/* Keyframes for Sliding Animation */
@keyframes slide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-calc(100% - 100vw));
  }
}

@keyframes sparkle {
  0%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.5);
    opacity: 1;
  }
}

@keyframes colorShift {
  0% {
    color: #000000;
  }
  50% {
    color: #87D9FF;
  }
  100% {
    color: #6ADCFF;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .card {
    width: 100px;
    height: 130px;
    font-size: 12px;
  }

  .card img {
    width: 50px;
    height: 50px;
  }

  .intro h3 {
    font-size: 1.5rem;
  }

  .intro p {
    font-size: 0.9rem;
  }

  .profiles img {
    width: 100px;
    height: 100px;
  }

  .add-credits {
    font-size: 12px;
    padding: 6px 12px;
  }

  .voice-rooms h3 {
    font-size: 1.5rem;
  }

  .voice-rooms p {
    font-size: 0.9rem;
  }

  .profiles {
    max-height: 140px;
  }

  .profile {
    max-width: 120px;
    max-height: 120px;
  }

  .party-image {
    max-width: 90%;
  }
}

@media (max-width: 400px) {
  .button-image {
    width: 50%;
  }
}

/* Customer Service Button */
.customer-service-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--purple);
  color: var(--white);
  padding: 15px 25px;
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  z-index: 1000;
  font-weight: 500;
}

.customer-service-btn:hover {
  background-color: rgba(143, 1, 201, 0.6);
  transform: translateY(-2px);
}

.customer-service-btn i {
  font-size: 20px;
}

/* Popup Styles */
.cs-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.cs-popup.active {
  display: flex;
}

.cs-popup-content {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
}

.cs-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.cs-popup-header h2 {
  color: var(--purple);
  margin: 0;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
  padding: 0.5rem;
}

.close-btn:hover {
  color: var(--purple);
}

/* Form Styles */
#cs-form .form-group {
  margin-bottom: 1rem;
}

#cs-form input,
#cs-form textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--blue);
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
}

#cs-form textarea {
  resize: vertical;
  min-height: 100px;
}

#cs-form input:focus,
#cs-form textarea:focus {
  border-color: var(--purple);
  outline: none;
  box-shadow: 0 0 0 3px rgba(143, 1, 201, 0.2);
}

.cs-submit-btn {
  background-color: var(--purple);
  color: var(--white);
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  width: 100%;
  transition: all 0.3s ease;
}

.cs-submit-btn:hover {
  background-color: rgba(143, 1, 201, 0.6);
  transform: translateY(-2px);
}

/* Responsive Design for Customer Service */
@media (max-width: 768px) {
  .customer-service-btn {
    padding: 10px 15px;
    bottom: 20px;
    right: 20px;
  }

  .cs-popup-content {
    padding: 1.5rem;
  }
}

@media (max-width: 400px) {
  .customer-service-btn {
    padding: 8px 12px;
    bottom: 15px;
    right: 15px;
  }

  .cs-popup-content {
    width: 95%;
    padding: 1rem;
  }
}