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

body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 15px;
}

.container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 20px;
    width: 100%;
    max-width: 600px;
    text-align: center;
}

h1 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.input-section {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
    gap: 10px;
}

#bible-verse, #image-description {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

#generate-btn {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    align-self: center;
}

.loading-indicator {
    display: none;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-top: 5px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.result-container {
    position: relative;
    width: 100%;
    margin-top: 20px;
    display: none;
}

.image-wrapper {
    position: relative;
    width: 100%;
    max-width: 1080px;
    aspect-ratio: 1 / 1;
}

#generated-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.verse-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #00274C;  
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 1.5rem;  
    font-weight: bold;  
    box-sizing: border-box;
    line-height: 1.4;
}

.download-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #4CAF50;
    color: white;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    z-index: 10;
}

.download-btn i {
    font-size: 20px;
}

@media screen and (max-width: 600px) {
    .container {
        padding: 15px;
    }

    h1 {
        font-size: 1.2rem;
    }

    #bible-verse, #image-description {
        font-size: 0.9rem;
    }

    .verse-overlay {
        font-size: 1rem;
        padding: 10px;
    }

    .download-btn {
        width: 40px;
        height: 40px;
    }

    .download-btn i {
        font-size: 16px;
    }
}

