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

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
}

.container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
}

.quote-container {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.language-selector {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.lang-btn {
    background: #f5f5f5;
    border: none;
    padding: 8px 15px;
    margin: 0 5px 10px 5px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: #e0e0e0;
}

.lang-btn.active {
    background: #6e8efb;
    color: white;
}

.quote-content {
    margin: 20px 0;
    position: relative;
    min-height: 150px;
}

.quote-icon {
    font-size: 30px;
    color: #a777e3;
    opacity: 0.4;
    position: absolute;
    top: -10px;
    left: 0;
}

.quote-text {
    font-size: 24px;
    line-height: 1.5;
    margin-bottom: 20px;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.quote-author {
    font-style: italic;
    text-align: right;
    font-size: 18px;
    color: #666;
    margin-top: 10px;
}

.quote-actions {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.btn {
    background: #6e8efb;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    margin: 0 5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn:hover {
    background: #5a7de9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 0;
}

.footer {
    text-align: center;
    margin-top: 20px;
    color: white;
    font-size: 14px;
}

.footer a {
    color: white;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.footer .fa-heart {
    color: #ff6b6b;
}

#notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: #333;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    opacity: 0;
    transition: all 0.3s ease;
}

#notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Make the app responsive */
@media (max-width: 600px) {
    .container {
        padding: 10px;
    }
    
    .quote-container {
        padding: 20px 15px;
    }
    
    .quote-text {
        font-size: 20px;
    }
    
    .quote-author {
        font-size: 16px;
    }
    
    .lang-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Add animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.quote-text, .quote-author {
    animation: fadeIn 0.5s ease-in-out;
}

/* Pinyin styling */
.pinyin-text {
    font-size: 14px;
    line-height: 1.5;
    color: #777;
    margin-top: 5px;
    margin-bottom: 15px;
    font-style: italic;
    animation: fadeIn 0.5s ease-in-out;
}

#quote-pinyin {
    text-align: center;
    margin-bottom: 20px;
}

#author-pinyin {
    text-align: right;
    margin-top: 5px;
}

/* Make pinyin responsive */
@media (max-width: 600px) {
    .pinyin-text {
        font-size: 12px;
    }
} 