/* Hero Banner */
.hero {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 320px;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.8s ease, transform 6s ease;
}

.hero:hover .hero-img {
  transform: scale(1.06);
}

.hero-gray {
  opacity: 1;
}

.hero-color {
  opacity: 0;
}

.hero:hover .hero-gray {
  opacity: 0;
}

.hero:hover .hero-color {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(to bottom, rgba(0,0,0,0.35), rgba(0,0,0,0.6));
  pointer-events: none;
}

.hero-title {
  font-family: 'Fredoka One', cursive;
  font-size: 3rem;
  color: #ffffff;
  text-shadow: 0 4px 20px rgba(0,0,0,0.8);
  margin: 0 0 10px;
  letter-spacing: 1px;
}


/* Default = Dark Mode */
:root {
  --bg-color: #0f172a;
  --text-color: #ffffff;
  --card-color: #1e293b;
  --card-border: #334155;
  --accent-color: #60a5fa;
  --muted-color: #94a3b8;
}

/* Light Mode */
.light-mode {
  --bg-color: #91a5b9;
  --text-color: #0b0c0c;
  --card-color: #a8c1d8;
  --card-border: #7a9ab5;
  --accent-color: #1d4ed8;
  --muted-color: #374151;
}

body {
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;

  font-family: 'Nunito', Arial, sans-serif;

  background: var(--bg-color);
  color: var(--text-color);
}

/* Canvas */
#bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* Content */
.content {
  text-align: center;
  padding: 60px 20px 80px;
  max-width: 860px;
  margin: 0 auto;
}

/* Button */
#themeToggle {
  padding: 10px 20px;
  margin: 20px;
  cursor: pointer;
  border: none;
  border-radius: 6px;
  background: var(--card-color);
  color: var(--text-color);
}

/* Sections */
.section {
  margin: 50px auto;
}

.section h1 {
  font-family: 'Fredoka One', cursive;
  letter-spacing: 0.5px;
  font-size: 2rem;
  margin-bottom: 16px;
}

.section h2 {
  font-family: 'Fredoka One', cursive;
  letter-spacing: 0.5px;
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.section h3 {
  font-family: 'Fredoka One', cursive;
  letter-spacing: 0.5px;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

/* Two-column layout for character info */
.two-col {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* Info Cards */
.info-card {
  background: var(--card-color);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 24px 28px;
  text-align: left;
  flex: 1;
  min-width: 220px;
  max-width: 360px;
}

.info-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-card ul li {
  padding: 6px 0;
  border-bottom: 1px solid var(--card-border);
  font-size: 0.95rem;
  line-height: 1.5;
}

.info-card ul li:last-child {
  border-bottom: none;
}

/* Contact Section */
.contact-section a {
  color: var(--accent-color);
  text-decoration: none;
}

.contact-section a:hover {
  text-decoration: underline;
}

.copy-fallback {
  margin-top: 10px;
}

#copyEmailBtn {
  padding: 8px 16px;
  cursor: pointer;
  border: 1px solid var(--card-border);
  border-radius: 6px;
  background: var(--card-color);
  color: var(--text-color);
  font-size: 0.9rem;
}

#copyEmailBtn:hover {
  border-color: var(--accent-color);
}

/* Character description */
.char-desc {
  flex: 1 1 300px;
  max-width: 400px;
}

.char-desc h2 {
  margin-bottom: 10px;
  text-align: left;
}

.char-desc p {
  line-height: 1.6;
  font-size: 16px;
  text-align: left;
}

/* Video */
.video-box {
  display: flex;
  align-items: center;   /* Vertically aligns text with video */
  gap: 30px;              /* Space between video and text */
  margin: 40px;
  flex-wrap: wrap;        /* stacks on narrow screens only */
}

.video-frame {
  flex: 1 1 380px;   /* video claims a defined share of the row, not 100% */
  min-width: 280px;
  max-width: 500px;
}

.video-box iframe {
  width: 100%;
  height: 280px;
  border-radius: 16px;
  display: block;
}

@media (max-width: 700px) {
  .video-box {
    margin: 40px 10px;
  }
}