/* Overlay for entire welcome section */
.welcome-section {
  position: relative;
  z-index: 1; /* content above background */
}

.welcome-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45); /* semi-transparent dark overlay */
  z-index: -1; /* place behind the content */
}

.welcome-section .container {
  position: relative;
  z-index: 2; /* ensure text stays above overlay */
}

/* Section Styling */
.welcome-section {
    background: linear-gradient(to top, rgba(255, 165, 0, 0.5), rgba(255, 255, 255, 0.1)),
                url('../images/story-bg.png') center/cover no-repeat;
    color: #fff;
    border-top: 5px solid #000;
    border-bottom: 5px solid #000;
}

/* Title Comic Style */
.comic-title {
    font-family: 'Pretoria', serif;
    font-size: 2.8rem;
    color: #ffdd00;
    text-shadow: 3px 3px 0px #000;
}

/* Story Text */
.story-text {
    font-family: 'Pretoria', serif;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px #000;
}

/* Character Cards */
.character-card {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.character-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 14px rgba(0,0,0,0.7);
}

/* Character Images */
.character-img {
    border-radius: 8px;
}

/* Villain Silhouette Special Effect */
.silhouette {
    filter: brightness(0) invert(1) contrast(2);
    transition: filter 0.3s ease;
}

.silhouette:hover {
    filter: drop-shadow(0 0 10px red) brightness(0) invert(1) contrast(2);
}

/* Character Names */
.character-name {
    font-family: 'Pretoria', serif;
    color: #ffdd00;
    text-shadow: 2px 2px 0px #000;
    font-size: 1.1rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .comic-title {
        font-size: 2rem;
    }
    .story-text {
        font-size: 1rem;
    }

    /* Overlay for entire welcome section */
.welcome-section {
  position: relative;
  z-index: 1; /* content above background */
}

.welcome-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45); /* semi-transparent dark overlay */
  z-index: -1; /* place behind the content */
}

.welcome-section .container {
  position: relative;
  z-index: 2; /* ensure text stays above overlay */
}

/* Section Styling */
.welcome-section {
    background: linear-gradient(to top, rgba(255, 165, 0, 0.5), rgba(255, 255, 255, 0.1)),
                url('../images/story-mb-bg.png') center/cover no-repeat;
    color: #fff;
    border-top: 5px solid #000;
    border-bottom: 5px solid #000;
}

}


/* Background burst behind title */
.gif-burst {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    opacity: 0.6;
    z-index: 0;
}

/* Dust under first character */
.gif-dust {
    position: absolute;
    bottom: -20px;
    left: 5%;
    width: 80px;
    z-index: 1;
}

/* POW near second character */
.gif-action {
    position: absolute;
    top: -30px;
    left: -15px;
    width: 100px;
    z-index: 2;
}

/* Coin near third character */
.gif-coin { 
    position: absolute;
    top: 10px;
    left: -20px;
    width: 60px;
    z-index: 2;
}
