/* כללי */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    direction: rtl; /* כיוון עברי מימין לשמאל */
    height: 100%;
    overflow-x: hidden;
}

/* שלב עם אפקט פרלקס */
.stage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    transition: background-color 1s ease-in-out, opacity 1s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    z-index: -1;
    flex-direction: column; /* כל האלמנטים יהיו בעמודה */
    text-align: center; /* טקסט במרכז */
    padding: 20px;
}

/* שלב פעיל */
.stage.active {
    opacity: 1;
    z-index: 1;
}

/* צבעי רקע לכל שלב */
#stage-0 {
    background-color: #1b1a1a; /* צבע רקע שלב 0 */
}
#stage-1 {
    background-color: #ff7e5f; /* צבע רקע שלב 1 */
}
#stage-2 {
    background-color: #13a0aa; /* צבע רקע שלב 2 */
}
#stage-3 {
    background-color: #6a11cb; /* צבע רקע שלב 3 */
}
#stage-4 {
    background-color: #1a2a6c; /* צבע רקע שלב 4 */
}

/* כותרת */
h1 {
    color: #fff;
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    padding: 5px 0;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.6);
    animation: fadeIn 2s ease-in-out;
}

/* פסקאות */
p {
    color: #fff;
    font-size: 1.2rem;
    margin-top: 20px;
    animation: fadeIn 3s ease-in-out;
    
    direction: rtl;         /* כיוון הכתיבה מימין לשמאל */
    text-align: justify;      /* יישור הטקסט לימין */
    width: 50%;             /* אפשר לשנות בהתאם לרוחב הרצוי */
    margin: 30px;         /* מרכז את הפסקה בעמוד */
    line-height: 1.2;       /* ריווח שורות נוח יותר */

}

/* כפתור אנימציה */
button {
    background: linear-gradient(45deg, #ff7e5f, #feb47b);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 5px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    margin-top: 5px; /* רווח לפני הכפתור */
}

/* כפתור כשעובר עליו העכבר */
button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

button:focus {
    outline: none;
}

/* אנימציה להופעת טקסט */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* תמונה שניתן לשנות לה את הגודל */
.image-container {
    position: relative;
    width: 80%; /* אפשר לשנות את הרוחב של התמונה */
    max-width: 800px; /* תמונה לא תגדל מעבר לרוחב הזה */
    margin: 20px auto;
}

.resizeable {
    width: 35%;
    height: auto;
    border: 5px solid #fff;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer; /* יצירת סמן יד כשמעבירים מעל התמונה */
}

/* כפתור שינוי גודל (כדי שנוכל לשלוט על הגודל באופן ידני) */
.resize-button {
    background-color: #ff7e5f;
    border: none;
    color: white;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 50px;
    margin-top: 10px;
    display: inline-block;
}

.video-container {
    display: flex;
    justify-content: center;
    margin: 0px 0;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.whatsapp-button {
    background-color: #25D366; /* צבע ירוק של וואטסאפ */
    color: white;
    padding: 10px 20px;
    font-size: 1.2em;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.whatsapp-button:hover {
    background-color: #1EBE57; /* גוון כהה יותר */
}

.facebook-button {
    background-color: #4267B2; /* צבע כחול של פייסבוק */
    color: white;
    padding: 10px 20px;
    font-size: 1.2em;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.facebook-button:hover {
    background-color: #365899; /* גוון כהה יותר */
}

.buttons-container {
    display: flex;
    justify-content: center;
    gap: 10px; /* ריווח בין הכפתורים */
    margin-top: 20px;
}

button {
    padding: 15px 30px;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 5px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

/* התאמה כללית לכל המסכים */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    box-sizing: border-box;
}

/* פסקאות ומרכיבים טקסטואליים */
p {
    font-size: 1.2rem;
    margin: 0px;
    line-height: 1;
}

/* התאמה למסכים קטנים (פלאפונים) */
@media (max-width: 768px) {
    /* כל מה שקשור לתצוגה בטלפון ייכנס כאן */
    
    /* לדוגמה, נוודא שכל שלב יופיע במרכז */
    .stage {
        display: flex;
        justify-content: center; /* מרכז את התוכן אופקית */
        align-items: center; /* מרכז את התוכן אנכית */
        height: 100vh; /* גובה מלא למסך */
        padding: 0px;
    }

    /* כל עוד לא שינית את התוכן בגדול, זו הדרך להשאיר את העיצוב כמו שהוא */
    h1, p {
        font-size: 1rem; /* אפשר לשחק עם הגודל של הכותרות כדי שיתאימו לטלפון */
        text-align: center; /* אם רוצים למרכז את הכותרת */
    }

    .resizeable {
        width: 100%; /* וודא שהתמונות יתפשטו על כל רוחב המסך */
    }

    /* אם יש אלמנטים חתוכים, ודא שאין אלמנטים עם height קשיח */
    .content {
        padding: 10px;
        box-sizing: border-box; /* חשוב כדי שהתוכן לא יחרוג מהמסך */
    }
}


/* התאמה למסכים גדולים (מחשבים שולחניים) */
@media (min-width: 1024px) {
    p {
        font-size: 1rem;
        margin: 30px;
    }
    
    .resizeable {
        width: 35%; /* תמונה קטנה יותר יחסית למסך גדול */
    }
}

/* סגנון לכל הסטייג'ים */
.stage-container {
    display: flex;
    justify-content: center; /* ממרכז את התוכן לאורך הציר האופקי */
    align-items: center; /* ממרכז את התוכן לאורך הציר האנכי */
    min-height: 100vh; /* מוודא שהסטייג' יתפוס את כל גובה המסך */
    background-color: #000000; /* צבע רקע לבן (למקרה שתצטרך לשנות את הרקע) */
    box-sizing: border-box;
    width: 100%; /* וודא שהאלמנט תופס את כל הרוחב */
    padding: 0; /* אם יש padding מיותר, נוודא שלא יהיה */
    margin: 0; /* וודא שאין מרווחים מיותרים */
}

.stage {
    width: 100%; /* וודא שהסטייג' תופס את כל הרוחב */
    max-width: 1200px; /* או כל גודל מקסימלי שתרצה */
    padding: 20px; /* אפשר להוסיף padding בהתאם לצורך */
    box-sizing: border-box; /* מבטיח שהpadding לא יוסיף לרוחב הכללי */
}

.stage {
    width: 100%;
    height: 100%;
    max-width: 100%;
    margin: 0 auto; /* מרכז את האלמנט */
}
