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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    color: #e8e8e8;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    padding: 40px 0;
    position: relative;
}

header h1 {
    font-size: 2.5rem;
    color: #f5deb3;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
}

.subtitle {
    color: #a0a0a0;
    font-style: italic;
    font-size: 1.1rem;
}

.admin-link {
    position: absolute;
    top: 0;
    right: 0;
    color: #a0a0a0;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 16px;
    border: 1px solid #a0a0a0;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.admin-link:hover {
    background: #f5deb3;
    color: #1a1a2e;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.quote-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 700px;
    text-align: center;
    border: 1px solid rgba(245, 222, 179, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

#quote-display {
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

#quote-display .loading {
    color: #a0a0a0;
    font-style: italic;
}

#quote-display .quote-text {
    font-size: 1.8rem;
    color: #f5deb3;
    line-height: 1.8;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 20px;
    border-radius: 8px;
}

#quote-display .quote-text:hover {
    background: rgba(245, 222, 179, 0.1);
    transform: scale(1.02);
}

#quote-display .quote-text .hint {
    display: block;
    font-size: 0.8rem;
    color: #a0a0a0;
    margin-top: 10px;
    font-style: italic;
}

.btn {
    background: linear-gradient(135deg, #f5deb3 0%, #d4a574 100%);
    color: #1a1a2e;
    border: none;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 222, 179, 0.3);
}

.translation-panel {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 30px;
    width: 100%;
    max-width: 700px;
    margin-top: 30px;
    border: 1px solid rgba(245, 222, 179, 0.2);
    animation: fadeIn 0.5s ease;
}

.translation-panel.hidden {
    display: none;
}

.translation-panel h3 {
    color: #f5deb3;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.translation-panel #translation-text {
    font-size: 1.3rem;
    color: #e8e8e8;
    line-height: 1.7;
    margin-bottom: 20px;
}

.quote-meta {
    padding-top: 15px;
    border-top: 1px solid rgba(245, 222, 179, 0.2);
}

.quote-meta #book-title {
    color: #a0a0a0;
    font-style: italic;
}

footer {
    text-align: center;
    padding: 20px 0;
    color: #666;
    font-size: 0.9rem;
}

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

@media (max-width: 600px) {
    header h1 {
        font-size: 1.8rem;
    }

    .quote-container {
        padding: 25px;
    }

    #quote-display .quote-text {
        font-size: 1.4rem;
    }

    .admin-link {
        position: static;
        display: block;
        margin-top: 20px;
    }
}
