/* style.css */
body {
    background-color: #000;
    color: #fff;
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    direction: rtl;
    overflow: hidden;
    height: 100vh;
}

.story-container {
    position: relative;
    width: 100vw;
    height: 100vh;
}

.scene {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    flex-direction: column;
}

.scene.active {
    display: flex;
    animation: fadeScene 1.5s ease-in-out forwards;
}

.photo-area {
    flex: 7;
    width: 100%;
    overflow: hidden;
    position: relative;
    background-color: #000;
}

.photo-bg {
    width: 100%;
    height: 100%;
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* الحركات */
.pan-down { animation: panDownEffect 12s linear forwards; }
.zoom-in { animation: zoomInEffect 12s ease-out forwards; }

@keyframes panDownEffect {
    from { background-position: top center; }
    to { background-position: bottom center; }
}

@keyframes zoomInEffect {
    from { transform: scale(1); }
    to { transform: scale(1.15); }
}

@keyframes fadeScene {
    from { opacity: 0; }
    to { opacity: 1; }
}

.content-overlay {
    flex: 3;
    background: #000;
    border-top: 1px solid #222;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.story-text {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #ccc;
    text-align: center;
}

button {
    background: #8b0000;
    color: white;
    border: none;
    padding: 12px 50px;
    font-size: 1rem;
    cursor: pointer;
}

/* ربط الصور بالأسماء في Neocities */
#scene-1 .photo-bg { background-image: url('village_1.png'); }
#scene-2 .photo-bg { background-image: url('village_2.png'); }
#scene-3 .photo-bg { background-image: url('village_3.png'); }
