:root {
    --primary-color: #2d3436;
    --secondary-color: #636e72;
    --accent-color: #dfe6e9;
    --holy-glow: #f1c40f;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--primary-color);
    color: var(--accent-color);
    font-family: 'Arial', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    max-width: 800px;
    width: 90%;
    padding: 1rem;
    text-align: center;
    position: relative;
    margin: 0 auto;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
    box-sizing: border-box;
}

.prayer-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 100%;
    overflow-y: auto;
    padding: 1rem;
    box-sizing: border-box;
}

.loading-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    overflow: hidden;
}

.holy-light {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--holy-glow) 0%, transparent 70%);
    animation: pulse 2s infinite;
    z-index: 1002;
}

.fa-cross {
    font-size: 4rem;
    color: var(--holy-glow);
    animation: float 3s infinite;
    z-index: 1001;
}

.holy-circles {
    position: absolute;
    width: min(300px, 80vw);
    height: min(300px, 80vw);
    border: 2px solid var(--holy-glow);
    border-radius: 50%;
    animation: expand 3s infinite;
}

button {
    background: var(--secondary-color);
    color: var(--accent-color);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0.5rem 0;
}

button:hover {
    background: var(--holy-glow);
    color: var(--primary-color);
}

.result {
    margin: 0.5rem auto;
    padding: 1rem;
    background: var(--secondary-color);
    border-radius: 15px;
    opacity: 0;
    transition: opacity 0.5s ease;
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.result.visible {
    opacity: 1;
}

.prayer-text {
    font-size: 1rem;
    line-height: 1.4;
    margin: 0;
    padding: 0.5rem;
}

.prayer-image {
    max-width: 100%;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
}

.prayer-image img {
    width: 100%;
    max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.hidden {
    display: none;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
    100% { transform: scale(1); opacity: 0.5; }
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

@keyframes expand {
    0% { transform: scale(0.8); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 0.2; }
    100% { transform: scale(0.8); opacity: 0.8; }
}

.donation-section {
    display: none;
    margin-top: 1rem;
    text-align: center;
}

.donation-btn {
    background-color: #f7931a;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.donation-btn:hover {
    background-color: #e88a0c;
}

.qr-code {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    margin: 1rem auto;
    max-width: 200px;
    display: none;
}

.qr-code.visible {
    display: block;
}

.hidden {
    display: none;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

.modal.show {
    display: flex !important;
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    background-color: var(--primary-color);
    color: var(--accent-color);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--secondary-color);
    transform: translateY(0);
    margin: auto;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #ffffff;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.close-btn:hover {
    opacity: 1;
}

#btcQRCode {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin: 20px auto;
    display: inline-block;
}

.btc-address {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    word-break: break-all;
    padding: 15px;
    background: #2a2a2a;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid #333;
}

#btcAddressText {
    font-family: monospace;
    font-size: 12px;
    background: #1a1a1a;
    padding: 10px;
    border-radius: 6px;
    width: 100%;
    text-align: center;
    color: #f7931a;
}

.copy-address {
    background: #f7931a;
    border: none;
    border-radius: 25px;
    padding: 8px 16px;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.copy-address i {
    font-size: 14px;
}

.copy-address:hover {
    background: #ff9f1a;
    transform: scale(1.05);
}

/* Add responsive adjustments */
@media screen and (max-width: 480px) {
    .modal-content {
        width: 95%;
        padding: 20px 15px;
    }

    #btcQRCode {
        padding: 10px;
    }

    #btcQRCode img {
        width: 180px !important;
        height: 180px !important;
    }

    .copy-address {
        width: auto;
        padding: 8px 20px;
    }

    .copy-address span {
        display: inline-block;
    }
}

.modal h3 {
    color: #f7931a;
    margin-bottom: 10px;
    font-size: 24px;
}

.modal p {
    color: #cccccc;
    margin-bottom: 20px;
}

.share-button {
    margin-top: 1rem;
    background: var(--secondary-color);
    color: var(--accent-color);
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem auto;
}

.share-button:hover {
    background: var(--holy-glow);
    color: var(--primary-color);
}

.share-button i {
    font-size: 1.2rem;
}

/* Add these styles for share buttons */
.share-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.5rem;
}

.share-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--primary-color);
    color: var(--accent-color);
}

.share-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.share-btn i {
    font-size: 1.2rem;
}

.whatsapp { background-color: #25D366; color: white; }
.facebook { background-color: #1877F2; color: white; }
.twitter { background-color: #1DA1F2; color: white; }
.copy { background-color: #6c757d; color: white; }

/* Replace the .twitter style with: */
.x-share { 
    background-color: #000000; 
    color: white; 
}

/* Add these responsive styles */
@media screen and (max-width: 768px) {
    h1 {
        font-size: 1.5rem;
        margin: 1rem 0;
    }

    button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .prayer-text {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .share-buttons {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .share-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 480px) {
    .container {
        width: 95%;
        padding: 0.5rem;
    }

    h1 {
        font-size: 1.2rem;
    }

    .result {
        padding: 1rem;
    }

    .share-buttons {
        justify-content: center;
    }

    .share-btn {
        flex: 0 0 calc(50% - 0.5rem);
        text-align: center;
    }
}

/* Add styles for better loading visibility */
.loading-animation {
    background: rgba(0, 0, 0, 0.9);
}

.holy-light {
    z-index: 1002;
}

/* Add debug styles to check if content is being generated */
.prayer-text:empty::after {
    content: 'No prayer generated yet';
    color: #666;
    font-style: italic;
}

.prayer-image:empty::after {
    content: 'No image generated yet';
    color: #666;
    font-style: italic;
}

/* Add these responsive styles */
@media screen and (max-height: 700px) {
    .container {
        padding: 0.5rem;
    }
    
    h1 {
        font-size: 1.2rem;
        margin: 0.5rem 0;
    }
    
    .prayer-image img {
        max-width: 200px;
    }
    
    .share-buttons {
        gap: 0.25rem;
    }
    
    button {
        padding: 0.5rem 1rem;
        font-size: 1rem;
        margin: 0.25rem 0;
    }
}

@media screen and (max-width: 480px) {
    .container {
        width: 100%;
        padding: 0.5rem;
    }
    
    .result {
        margin: 0.25rem auto;
        padding: 0.5rem;
    }
}
