:root {
    --bg-color: #132e47;
    --arabic-color: #bd8641;
    --english-color: #ffffff;
    --ayah-color: #8da4b8;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--english-color);
    font-family: 'Alice', serif;
    overflow: hidden; /* Prevents the whole page from scrolling */
}

/* Header & Info Icon */
header {
    text-align: center;
    padding: 25px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: linear-gradient(to bottom, var(--bg-color) 60%, transparent);
}

header h1 {
    margin: 0;
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    font-weight: 400;
}

#info-btn {
    position: absolute;
    right: 25px;
    top: 22px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid var(--arabic-color);
    background: transparent;
    color: var(--arabic-color);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Horizontal Slider */
.slider-wrapper {
    position: relative;
    height: 100vh;
}

.dua-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    width: 100%;
    height: 100%;
    scrollbar-width: none;
}

.dua-container::-webkit-scrollbar {
    display: none;
}

/* Individual Card - The Scroll Secret */
.dua-card {
    flex: 0 0 100vw;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 100px 12vw; /* Room for header and footer */
    box-sizing: border-box;
    overflow-y: auto; /* Allows vertical scroll for long text */
}

/* This inner wrapper ensures short text stays centered, 
   but long text starts from the top. */
.dua-content {
    margin: auto 0; 
    text-align: center;
    width: 100%;
    max-width: 1100px;
}

/* Large Typography */
.arabic-text {
    color: var(--arabic-color);
    font-family: 'Mirza', serif;
    font-size: clamp(2.5rem, 8vh, 6rem); 
    line-height: 1.3;
    margin-bottom: 30px;
    direction: rtl;
}

.english-text {
    color: var(--english-color);
    font-size: clamp(1.3rem, 3.5vh, 2.2rem);
    line-height: 1.6;
    margin-bottom: 20px;
    font-weight: 300;
}

.ayah-ref {
    color: var(--ayah-color);
    font-size: 1rem;
    letter-spacing: 2px;
    opacity: 0.7;
}

/* Nav Buttons */
.nav-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--arabic-color);
    font-size: 3rem;
    cursor: pointer;
    z-index: 10;
    opacity: 0.3;
    transition: opacity 0.3s;
}

.nav-btn:hover { opacity: 1; }
#prev-btn { left: 15px; }
#next-btn { right: 15px; }

/* Modal Settings */
.modal {
    display: none;
    position: fixed;
    z-index: 200;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(10, 25, 40, 0.95);
    backdrop-filter: blur(8px);
}

.modal-content {
    background-color: var(--bg-color);
    margin: 20vh auto;
    padding: 40px;
    border: 1px solid var(--arabic-color);
    width: 80%; max-width: 400px;
    text-align: center;
}

.modal-content a {
    color: var(--arabic-color); /* Uses your gold theme color */
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.3s ease;
}