@import url('https://fonts.googleapis.com/css2?family=Roboto+Serif:wght@400;600&display=swap');

/* ===== GLOBAL ===== */
html,
body {
    height: 100%;
    margin: 0;
    font-family: 'Roboto Serif', serif;
    background: linear-gradient(to bottom right, #f8f9fa, #e3f2fd);
    color: #2c3e50;
    overflow: hidden;
}

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid #ddd;
    z-index: 10;
    box-sizing: border-box;
}

#main-title {
    font-size: 1.5rem;
    font-weight: 600;
}

#language-switch {
    display: flex;
    gap: 8px;
    align-items: center;
}

.flag {
    width: 28px;
    height: 20px;
    cursor: pointer;
    border-radius: 3px;
    border: 1px solid #ccc;
    transition: transform 0.2s, box-shadow 0.2s;
}

.flag:hover {
    transform: scale(1.1);
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
}

/* ===== SCROLL CONTAINER ===== */
#scroll-container {
    height: 100vh;
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

/* ===== SECTIONS ===== */
.section {
    min-width: 100%;
    height: 100vh;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    padding: 6rem 2rem 6rem 2rem;
    box-sizing: border-box;
    overflow-y: auto;
}

.section img {
    width: 80%;
    max-width: 300px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 0.8rem;
    color: #1a237e;
}

.section p {
    max-width: 600px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.scripture {
    font-style: italic;
    margin-top: 1rem;
    color: #3f51b5;
}

button.scripture-btn {
    margin-top: 1.5rem;
    margin-bottom: 2.5rem;
    background: #1a237e;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button.scripture-btn:hover {
    background: #303f9f;
}

/* ===== NAV BUTTONS ===== */
#nav-buttons {
    position: fixed;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    transform: translateY(-50%);
    z-index: 5;
    pointer-events: none;
}

#nav-buttons button {
    background: rgba(26, 35, 126, 0.85);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
    cursor: pointer;
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s, background 0.3s;
}

#nav-buttons button:hover {
    transform: scale(1.15);
    background: rgba(26, 35, 126, 1);
}

/* ===== MODAL ===== */
#modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#modal.active {
    opacity: 1;
    pointer-events: all;
}

#modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease;
}

#close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.4rem;
    cursor: pointer;
    color: #444;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== INDICATORS ===== */
#slide-indicators {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}

.indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(26, 35, 126, 0.3);
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.indicator.active {
    background: rgba(26, 35, 126, 0.9);
    transform: scale(1.2);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    header {
        padding: 0.75rem 1rem;
    }

    .flag {
        width: 24px;
        height: 17px;
    }

    #nav-buttons button {
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }
}

/* ===== UPDATE BANNER ===== */
#update-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 35, 126, 0.95);
    color: white;
    text-align: center;
    padding: 0.8rem;
    font-size: 1rem;
    z-index: 200;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.4s ease;
    transform: translateY(100%);
}

#update-banner.show {
    transform: translateY(0);
}

#update-banner button {
    background: #fff;
    color: #1a237e;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

.hidden {
    display: none;
}

/* ===== MOBILE FIXES ===== */
@media (max-width: 768px) {

    /* Move arrows to bottom so they don’t overlap text */
    #nav-buttons {
        position: absolute;
        /* relative to scrollable section */
        top: auto;
        bottom: 5rem;
        /* just above indicators */
        transform: none;
        pointer-events: all;
    }

    /* Slightly smaller padding in sections to fit buttons and indicators */
    .section {
        padding-bottom: 8rem;
        /* room for arrows + dots */
    }

    /* Center buttons horizontally */
    #nav-buttons button {
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }

    /* Keep dots visible and nicely spaced */
    #slide-indicators {
        bottom: 1.2rem;
    }
}