body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #222;
    margin: 0;
}

.container {
    position: relative; 
}

.word {
    font-size: 50px;
    color: white;
    margin: 0 15px;
    opacity: 0; /* Words start hidden */
    animation: wordFade 1.5s ease-in-out forwards; 
}

.word:nth-child(1) {
    animation-delay: 0.5s; 
}

.word:nth-child(2) {
    animation-delay: 2s; 
}

.word:nth-child(3) {
    animation-delay: 3.5s; 
}

@keyframes wordFade {
    10% {
        opacity: 1; /* Appear briefly */
    }
    90% {
        opacity: 0; /* Fade out */
    }
}

.explosion {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('dynamite.gif'); /* Replace */
    background-size: cover;
    opacity: 0; 
    animation: explosionAnimation 1.5s ease-out 5s forwards; /* Delay matches last word */
}

@keyframes explosionAnimation {
    100% { opacity: 1; }
}
