body, html {
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: black;
    font-family: 'Georgia', serif; /* Elegant serif font for poetry */
}

.container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

img {
    position: absolute;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    object-position: center;
    transition: opacity 1.5s ease-in-out; /* Smooth transition for image changes */
    filter: brightness(0.85); /* Slightly dim the image to make text more readable */
}

.quote {
    position: absolute;
    color: white;
    font-size: clamp(1.5rem, 4vw, 3rem); /* Responsive font size */
    text-align: center;
    z-index: 10;
    max-width: 80%;
    line-height: 1.5;
    letter-spacing: 0.5px;
    padding: 2rem;
    transform: translateY(0); /* For animation */
    animation: fadeIn 1.5s ease-in;
    font-weight: 300; /* Slightly lighter weight for elegance */
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 15px;
    color: white;
    z-index: 10;
    font-size: clamp(1rem, 1vw, 1rem); /* Responsive font size */
    font-family: sans-serif;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.footer p {
    margin: 0;
    font-variant: small-caps; /* Subtle nod to historical typography */
    font-weight: 800;
}

.vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(ellipse at center, 
                               rgba(0, 0, 0, 0) 30%, 
                               rgba(0, 0, 0, 0.5) 70%, 
                               rgba(0, 0, 0, 0.9) 100%);
    z-index: 5;
}

/* Add animation for quote appearance */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Optional: Add this class to create a container for the quote if you want to add an author name */
.quote-container {
    position: absolute;
    z-index: 10;
    text-align: center;
    max-width: 90%;
}

/* Optional: Style for the author attribution if you add it to your HTML */
.author {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    font-style: italic;
    margin-top: 1rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    animation: fadeIn 2s ease-in;
}

/* Add a subtle box around the quote for better visibility on varied backgrounds */
.quote::before {
    content: "";
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    z-index: -1;
}

/* Media query for better mobile experience */
@media (max-width: 768px) {
    .quote {
        font-size: clamp(1.2rem, 5vw, 2rem);
        max-width: 90%;
    }
    
    .vignette {
        background: radial-gradient(ellipse at center, 
                                   rgba(0, 0, 0, 0) 10%, 
                                   rgba(0, 0, 0, 0.6) 70%, 
                                   rgba(0, 0, 0, 0.9) 100%);
    }
}
