/* Removing footer-related styles */
.footer, .disclaimer {
  display: none;
}

/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Comic Sans MS', 'Comic Neue', cursive, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Header styles */
.header {
  background: linear-gradient(135deg, #9b87f5, #7E69AB);
  color: white;
  text-align: center;
  padding: 40px 20px;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.logo {
  width: 80px;
  height: 80px;
  margin-right: 15px;
  border-radius: 50%;
  border: 3px solid white;
}

.site-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.tagline {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Section styles */
section {
  padding: 40px 0;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 25px;
  text-align: center;
  color: #7E69AB;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, #9b87f5, #7E69AB);
  margin: 10px auto 0;
  border-radius: 2px;
}

.intro {
  background-color: white;
  border-radius: 15px;
  margin: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.intro-text {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* Character grid */
.character-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 30px;
}

.character {
  background-color: white;
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  cursor: pointer;
  position: relative;
}

.character:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
}

.character::after {
  content: '';
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237E69AB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='8' x2='12' y2='16'%3E%3C/line%3E%3Cline x1='8' y1='12' x2='16' y2='12'%3E%3C/line%3E%3C/svg%3E");
  background-size: contain;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.character:hover::after {
  opacity: 1;
}

.character h3 {
  color: #1A1F2C;
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.character p {
  color: #555;
}

/* Character Popup styles */
.character-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.show-popup {
  opacity: 1;
  visibility: visible;
}

.popup-content {
  background: white;
  width: 90%;
  max-width: 800px;
  border-radius: 15px;
  padding: 30px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.show-popup .popup-content {
  transform: scale(1);
}

.popup-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 2px solid #9b87f5;
  padding-bottom: 15px;
}

.popup-character-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-right: 20px;
  background-color: #f3f3f3;
}

.popup-character-info h3 {
  font-size: 1.8rem;
  color: #7E69AB;
  margin-bottom: 5px;
}

.popup-character-info p.character-type {
  font-size: 1.2rem;
  color: #555;
  font-style: italic;
}

.popup-body {
  margin-bottom: 20px;
}

.popup-body p {
  margin-bottom: 15px;
  font-size: 1.1rem;
  line-height: 1.6;
}

.close-popup {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(155, 135, 245, 0.1);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.close-popup:hover {
  background-color: rgba(155, 135, 245, 0.2);
  transform: rotate(90deg);
}

.close-popup::before,
.close-popup::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 2px;
  background-color: #7E69AB;
}

.close-popup::before {
  transform: rotate(45deg);
}

.close-popup::after {
  transform: rotate(-45deg);
}

.character-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.character-trait {
  background-color: #f0ebff;
  color: #7E69AB;
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: bold;
}

/* Video container */
.video-container {
  margin-bottom: 30px;
}

.aspect-w-16 {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.aspect-w-16 video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  background-color: #000;
}

/* Video controls styling */
video::-webkit-media-controls-panel {
  background-image: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
}

video::-webkit-media-controls-play-button {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

/* Episode buttons */
.episode-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.episode-button {
  background-color: #9b87f5;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 1rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(155, 135, 245, 0.3);
}

.episode-button:hover {
  background-color: #7E69AB;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(155, 135, 245, 0.4);
}

.episode-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transition: all 0.6s;
}

.episode-button:hover::before {
  left: 100%;
}

/* Character background colors */
.bg-purple-300 {
  background-color: #d8b4fe;
}

.bg-orange-300 {
  background-color: #fdba74;
}

.bg-pink-300 {
  background-color: #f9a8d4;
}

.bg-teal-300 {
  background-color: #5eead4;
}

.bg-blue-300 {
  background-color: #93c5fd;
}

.bg-yellow-300 {
  background-color: #fde047;
}

/* Animations */
@keyframes popIn {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  40% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

.animate-pop {
  animation: popIn 0.8s ease-out forwards;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .site-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .episode-list {
    grid-template-columns: 1fr;
  }
  
  .popup-header {
    flex-direction: column;
    text-align: center;
  }
  
  .popup-character-image {
    margin-right: 0;
    margin-bottom: 15px;
  }
}

@media (max-width: 480px) {
  .logo {
    width: 60px;
    height: 60px;
  }
  
  .site-title {
    font-size: 1.8rem;
  }
  
  .character {
    padding: 15px;
  }
  
  .character h3 {
    font-size: 1.3rem;
  }
  
  .popup-content {
    padding: 20px;
  }
  
  .character-grid {
    grid-template-columns: 1fr;
  }
}
