body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    text-align: center;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #007bff;
}

.logo {
    width: 50px;
    margin-left: 20px;
}

#category-menu {
    display: flex;
    gap: 15px;
}

#category-menu a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

#links-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 20px;
}

/* עיצוב הכרטיסים */
.link-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 200px; /* רוחב ברירת מחדל */
    text-align: center;
    transition: transform 0.3s ease; /* אפקט מעבר על ריחוף */
}

.link-card h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.link-card button {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px;
    cursor: pointer;
}

/* אפקט ריחוף */
.link-card:hover {
    transform: scale(1.05);
}

/* התאמות למסכים קטנים יותר (רספונסיבי) */
@media (max-width: 768px) {
    .link-card {
        width: 100%; /* הכרטיס יתפוס 100% מרוחב המסך */
        margin: 0 10px; /* ריווח בצדדים */
    }
}

@media (max-width: 480px) {
    #category-menu {
        flex-direction: column; /* התפריט יהיה בעמודה במקום שורה */
        gap: 10px;
    }

    .link-card {
        width: 100%; /* כל כרטיס יתפוס 100% מרוחב המסך */
    }
}
/* תפריט נפתח במובייל */
@media (max-width: 768px) {
   

    /* עיצוב לתפריט מרחף מותאם לתוכן */
    #category-menu {
        display: flex;
        flex-direction: column;
        position: fixed; /* תפריט ממוקם כמרחף */
        top: 50px; /* מעט מתחת לכפתור הניווט */
        left: 0;
        right: 0;
        max-width: 90%; /* הגבלת רוחב התפריט */
        margin: 0 auto; /* מיקום התפריט במרכז */
        background-color: rgba(0, 123, 255, 0.95); /* צבע רקע שקוף קלות */
        border-radius: 8px;
        padding: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* הצללה */
        transform: scaleY(0); /* התפריט מוסתר בתחילה */
        transform-origin: top; /* התפריט נפתח מלמעלה למטה */
        transition: transform 0.3s ease; /* מעבר חלק */
        z-index: 1000;
    }

    /* הצגת התפריט כשהמחלקה 'show' מופעלת */
    #category-menu.show {
        transform: scaleY(1); /* הצגת התפריט */
    }
}
/* כפתור תפריט המבורגר במובייל */
#menu-toggle {
    display: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    height: 30px;
    width: 40px;
}

/* עיצוב הפסים של כפתור ההמבורגר */
#menu-toggle .bar {
    display: block;
    width: 100%; /* רוחב מלא של הכפתור */
    height: 4px; /* עובי הפס */
    background-color: black; /* צבע הפס */
    margin: 3px 0; /* ריווח בין הפסים */
    transition: 0.3s ease; /* מעבר חלק */
}

/* הצגת כפתור המבורגר רק במסכים קטנים */
@media (max-width: 768px) {
    #menu-toggle {
        display: flex; /* מוצג רק במסכים קטנים */
    }
}
