/* base setup */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: #000;
    color: #fff;
}

/* overlays for crossfade */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
    z-index: -2;
    animation: kenburns 20s ease-in-out infinite alternate;
}

#overlay1 { z-index: -2; }
#overlay2 { z-index: -3; }

/* Ken Burns effect */
@keyframes kenburns {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.1) translate(-2%, -2%); }
}

/* overlay tint for subtle color effect */
.overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--tint-color, rgba(255,255,255,0.1));
    pointer-events: none;
    transition: background 1s ease;
    z-index: 1;
}

/* quote container with glassmorphism */
.quote-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    min-height: 280px;
    padding: 40px;
    border-radius: 20px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.8);
    box-sizing: border-box;
    z-index: 2;
}

/* text styling */
#quote {
    font-size: 2rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

#author {
    font-size: 1.3rem;
    font-style: italic;
    opacity: 0.9;
}

/* fade-up animation for text */
@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(20px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.animate-text {
    animation: fadeUp 0.8s ease forwards;
}

/* responsive */
@media (max-width: 600px) {
    #quote { font-size: 1.4rem; }
    #author { font-size: 1rem; }
}
