/* מאפס את הסגנונות הבסיסיים */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* הגדרות בסיסיות לגוף העמוד */
html, body {
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    font-family: Arial, sans-serif;
    direction: rtl;
    text-align: right;
}

header, footer {
    text-align: center;
    padding: 10px;
    background-color: #333;
    color: #fff;
}
footer {
direction: ltr;    
}

/* התאמת גובה הכותרת העליונה והתחתונה */
header {
    height: 10vh;
}

footer {
    height: 10vh;
}
/* רשת התוכן הראשית */
main {
    height: 75vh; /* גובה שממלא את רוב המסך */
    display: flex;
    justify-content: center;
    align-items: center;
    direction: rtl;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* מספר עמודות */
    grid-template-rows: repeat(2, 1fr); /* מספר שורות */
    gap: 10px; /* רווח בין האלמנטים */
    width: 100%;
    height: 75%;
}

/* התאמת הגודל של כל אלמנט בגריד */
.grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    background-color: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: #333;
    
}

.grid-item img {
    max-width: 100%;
    max-height: 60%;
    object-fit: cover;
    border-radius: 8px;
}

.grid-item h2 {
    margin-top: 10px;
    font-size: 1.1em;

}

/* עיצוב כללי לטבלה */
.table-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

table {
    width: 80%;
    border-collapse: separate;
    border-spacing: 15px;
    margin: 0 auto;
}

td {
    background-color: #f0f0f0;
    border-radius: 8px;
    padding: 15px;
    font-size: 1.1em;
    color: #333;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* עיצוב האייקונים */
.icon {
    text-decoration: none;
    font-size: 1.3em;
    color: #555;
    padding: 10px;
    border-radius: 50%;
    transition: background-color 0.3s;

}

.download-icon:hover {
    background-color: #4CAF50;
    color: #fff;

}

.share-icon:hover {
    background-color: #2196F3;
    color: #fff;

}

/* התאמת עיצוב השורות ברוחב אחיד */
tr td:first-child {
    font-weight: bold;
    color: #333;

}