/* style.css */

:root {
    --bgColor: #000000;
    --accentColor: #f5efdf;
    --font: 'Cammron', serif;
    --fadeDuration: 2s;
    --slideDistance: 20px;
}

/* Light Effect */
.light-effect {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 600px; /* Adjust for desktop */
    height: 600px;
    background: radial-gradient(
        circle at bottom right,
        rgba(158, 158, 158, 0.164),
        transparent 50%
    );
    z-index: 1;
    pointer-events: none;
}

/* Flex Layout for Full-Screen Adjustments */
body {
    background-color: var(--bgColor);
    color: var(--accentColor);
    font-family: var(--font);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    text-align: center;
    overflow: hidden;
    position: relative;
}

/* Wrapper to center and manage spacing between content and footer */
.content-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1 0 auto;
    padding: 20px;
    overflow-y: auto;
}

/* Main Content Container - Prevent scrolling initially */
#quote-container {
    max-width: 60%;
    position: relative;
    z-index: 1;
    max-height: 70vh;
    overflow: hidden;
}

/* Footer Styling */
.footer {
    flex-shrink: 0;
    text-align: center;
    font-size: 14px;
    color: var(--accentColor);
    opacity: 0.7;
    margin-bottom: 10px;
}

.footer p {
    margin: 0;
    line-height: 1.5;
}

/* Title Container */
.title-container {
    margin-bottom: 20px;
}

.title-text {
    font-size: 48px;
    font-weight: 500;
    color: var(--accentColor);
}

/* Text Animation */
.animated-text {
    opacity: 0;
    transform: translateY(var(--slideDistance));
    animation: fadeInSlideUp var(--fadeDuration) ease forwards;
}

@keyframes fadeInSlideUp {
    0% {
        opacity: 0;
        transform: translateY(var(--slideDistance));
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Quote Styling */
#quote {
    font-size: 64px;
    margin-bottom: 20px;
}

#author {
    font-size: 28px;
    font-style: italic;
}

#date {
    margin-top: 20px;
    font-size: 16px;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    #quote-container {
        max-width: 80%;
        max-height: 65vh; /* Adjust max-height for smaller screens */
    }

    .light-effect {
        width: 30vw; /* Responsive width for mobile */
        height: 30vh; /* Responsive height for mobile */
    }

    #quote {
        font-size: 7vw;
    }

    #author {
        font-size: 4.5vw;
    }

    #date {
        font-size: 2.5vw;
    }

    .footer {
        font-size: 3vw;
    }
}

@media (max-width: 480px) {
    #quote-container {
        max-height: 60vh;
    }

    .light-effect {
        width: 35vw;
        height: 35vh;
    }

    #quote {
        font-size: 8vw;
    }

    #author {
        font-size: 5vw;
    }

    #date {
        font-size: 2.5vw;
    }

    .footer {
        font-size: 2vw;
    }
}
