* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --text-color: rgba(255, 255, 255, 0.95);
    --text-color-secondary: rgba(255, 255, 255, 0.7);
    --overlay-color: rgba(0, 0, 0, 0.4);
    --transition-speed: 0.6s;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    height: 100vh;
    overflow: hidden;
    position: relative;
    color: var(--text-color);
}

.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1a1a1a; /* Fallback color */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity var(--transition-speed) ease-in-out;
    z-index: 1;
}

.background-image.fade-out {
    opacity: 0;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-color);
    z-index: 2;
}

.content {
    position: relative;
    z-index: 3;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
}

.quote-container {
    max-width: 800px;
    width: 100%;
    animation: fadeIn 1s ease-in-out;
}

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

.quote {
    margin: 0;
    padding: 0;
    border: none;
}

.quote-text {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.quote-author {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 400;
    color: var(--text-color-secondary);
    font-style: normal;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.quote-author::before {
    content: '— ';
}

.refresh-btn {
    position: fixed;
    bottom: 3rem;
    right: 3rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 4;
}

.refresh-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: rotate(180deg);
}

.refresh-btn:active {
    transform: rotate(180deg) scale(0.95);
}

.attribution {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    font-size: 0.875rem;
    color: var(--text-color-secondary);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.attribution a {
    color: var(--text-color-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.attribution a:hover {
    color: var(--text-color);
}

@media (max-width: 768px) {
    .refresh-btn {
        bottom: 2rem;
        right: 2rem;
        width: 48px;
        height: 48px;
    }
    
    .content {
        padding: 1.5rem;
    }
    
    .quote-text {
        margin-bottom: 1.5rem;
    }
}

