:root {
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --text-color: #ffffff;
    --btn-bg: #ffffff;
    --btn-text: #2575fc;
    --btn-hover-bg: #2575fc;
    --btn-hover-text: #ffffff;
}

body.dark {
    --bg-gradient: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    --text-color: #f5f5f5;
    --btn-bg: #1e1e1e;
    --btn-text: #00c6ff;
    --btn-hover-bg: #00c6ff;
    --btn-hover-text: #1e1e1e;
}

body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: var(--bg-gradient);
    color: var(--text-color);
    margin: 0;
    overflow: hidden;
    transition: background 0.5s ease, color 0.3s ease;
}

.container {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: 0.5s;
    z-index: 2;
}

button {
    background-color: var(--btn-bg);
    color: var(--btn-text);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    margin: 10px;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
}

button:hover {
    background-color: var(--btn-hover-bg);
    color: var(--btn-hover-text);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

button:active {
    transform: translateY(0);
}

.fade {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.fade.show {
    opacity: 1;
}

.controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.fade-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
    z-index: 1;
}

body.transitioning .fade-overlay {
    opacity: 1;
}

.quote-box {
    max-width: 600px;
    margin: 0 auto;
}

#quote {
    font-size: 1.4rem;
    line-height: 1.6;
    margin-bottom: 20px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#author {
    font-style: italic;
    margin-bottom: 30px;
    color: var(--text-color);
    opacity: 0.9;
}

h1 {
    margin-bottom: 30px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .container {
        padding: 30px 20px;
        margin: 20px;
    }
    
    #quote {
        font-size: 1.2rem;
        min-height: 100px;
    }
    
    .controls {
        flex-direction: column;
        align-items: center;
    }
    
    button {
        width: 200px;
    }
}