/*
 * Animated Banner Styles - Tell The People
 * Multiple background images with fade transitions
 */

.animated-banner-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 44%; /* Widescreen aspect ratio for desktop */
    overflow: hidden;
    margin-top: -120px; /* Tuck under the masthead */
}

.animated-banner-container .animated-banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    text-align: center;
    color: white;
    max-width: 1200px;
    padding: 0 20px;
    width: 100%;
}

.animated-banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    z-index: 1;
}

.animated-banner-slide.active {
    opacity: 1;
}

.animated-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

/* Wake the Town Company Credit */
.banner-company-credit {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 1;
}

.banner-company-credit a {
    color: rgba(188, 188, 188, 1);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 400;
    transition: opacity 0.3s ease;
}

.banner-company-credit a:hover {
    opacity: 0.8;
    color: rgba(188, 188, 188, 1);
}

/* Company Logo Animation */
.banner-company-logo {
    margin-bottom: 0;
    margin-top: -1rem;
    opacity: 0;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}

/* Banner Text Block - Hidden until triggered by JS */
.banner-text-block {
    opacity: 0;
    transform: translateY(-30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
    position: relative;
    z-index: 2;
}

.banner-text-block.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.banner-text-block.fade-out {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.company-logo-image {
    max-width: 480px;
    max-height: 240px;
    width: auto;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.banner-company-logo.fade-in {
    animation: fadeInCompanyLogo 1s ease-out forwards;
}

.banner-company-logo.fade-out {
    animation: fadeOutCompanyLogo 0.8s ease-out forwards;
}

@keyframes fadeInCompanyLogo {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes fadeOutCompanyLogo {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.98);
    }
}



.animated-banner-main-headline {
    font-size: 3.2em;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--key-yellow);
    line-height: 1.1;
    text-transform: uppercase;
}

.animated-banner-sub-headline {
    font-size: 3.2em;
    font-weight: 700;
    margin-bottom: 12px;
    color: white;
    line-height: 1.1;
    text-transform: uppercase;
}

.animated-banner-sub-headline-2 {
    font-size: 3.2em;
    font-weight: 700;
    margin-bottom: 12px;
    color: white;
    line-height: 1.1;
    text-transform: uppercase;
}

/* Typewriter Text Animation */
.rotating-text-container {
    position: relative;
    display: inline-block;
    min-width: 200px; /* Prevent layout shift */
}

.typewriter-container {
    display: inline-block;
}

.typewriter-text {
    display: inline;
}

.typewriter-cursor {
    display: inline-block;
    color: var(--key-yellow);
    font-weight: 400;
    animation: blink 1s infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

@keyframes fadeInMainHeadline {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInSubHeadline2 {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hide original rotating text elements (they're replaced by JS) */
.rotating-text {
    display: none;
}

.animated-text-elements {
    margin: 2rem 0;
}

.animated-text-1,
.animated-text-2,
.animated-text-3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    color: white;
    font-weight: 300;
}



/* Responsive Design */
@media screen and (max-width: 768px) {
    .animated-banner-container {
        margin-top: -120px; /* Same margin on mobile */
        padding-bottom: 140%; /* Very tall portrait format on mobile */
    }
    
    .animated-banner-main-headline {
        font-size: 1.75rem;
    }
    
    .animated-banner-sub-headline {
        font-size: 1.75rem;
        margin-bottom: 0;
    }
    
    .animated-banner-sub-headline-2 {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
    
    .animated-text-1,
    .animated-text-2,
    .animated-text-3 {
        font-size: 1.75rem;
    }
    
    .company-logo-image {
        max-width: 380px;
        max-height: 190px;
    }
    
    .banner-company-credit {
        bottom: 60px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
    
    .banner-company-credit a {
        font-size: 1rem;
    }

}

@media screen and (max-width: 480px) {
    .animated-banner-main-headline {
        font-size: 1.75rem;
    }
    
    .animated-banner-sub-headline {
        font-size: 1.75rem;
        margin-bottom: 0;
    }
    
    .animated-banner-sub-headline-2 {
        font-size: 1.75rem;
    }
    
    .animated-text-1,
    .animated-text-2,
    .animated-text-3 {
        font-size: 1.75rem;
    }
    
    .company-logo-image {
        max-width: 280px;
        max-height: 140px;
    }
    
    .banner-company-credit {
        bottom: 60px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
    
    .banner-company-credit a {
        font-size: 0.9rem;
    }
}

 