/* הגדרות כלליות */
body {
    font-family: Arial, sans-serif;
    direction: rtl; /* יישור לימין */
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    box-sizing: border-box; /* כולל padding ו-border ברוחב הכללי */
    overflow-x: hidden; /* מונע גלילה אופקית */
}

/* כותרת */
.header {
    background-color: #343a40; /* צבע רקע כהה */
    color: white;
    padding: 15px 20px; /* מרווחים */
    text-align: center;
    position: relative;
    z-index: 1000;
    box-sizing: border-box; /* כולל padding ו-border ברוחב הכללי */
}

/* תפריט */
.menu {
    margin: 0;
    padding: 0;
    max-width: 100%; /* מונע חריגה של התפריט מרוחב הדף */
    overflow-x: hidden;
}

.menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-block;
}

.menu ul li {
    display: inline;
 //   margin-right: 15px;
}

.menu ul li a, .menu a {
    color: white;
    text-decoration: none;
    font-size: 16px;
}

/* טופס התחברות */
.login-form {
    max-width: 400px;
    margin: 40px auto;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 45px;
    right: 30px;
    width: 200px;
    box-sizing: border-box; /* כולל padding ו-border ברוחב הכללי */
	text-align: center;
}

.login-form h2 {
    margin-top: 0;
    font-size: 14px;
    text-align: center;
}

.login-form form {
    display: block;
}

.login-form label {
    display: block;
    margin-bottom: 2px;
    font-size: 12px;
}

.login-form input {
    width: calc(100% - 20px); /* התייחסות לפדינג ולמרווח */
    padding: 8px;
    margin-bottom: 10px; /* מרווח אחיד בין השדות */
    font-size: 12px;
    box-sizing: border-box; /* כולל padding ו-border ברוחב הכללי */
}

.login-form button {
    width: calc(100% - 20px); /* התייחסות לפדינג ולמרווח */
    padding: 8px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer; /* שינוי הסמן בעת ריחוף מעל הכפתור */
}

.login-form button:hover {
    background-color: #555; /* צבע רקע בעת ריחוף */
}

.login-form p {
    margin-top: 5px;
    font-size: 12px;
    text-align: center;
}

.login-form a {
    color: #333;
    text-decoration: none;
}

/* רשימת משתמשים */
.user-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    margin-top: 10px; /* גובה מספק לרווח מעל הרשימה */
    flex: 1;
    width: 100%; /* רוחב מלא */
    max-width: 100%; /* הגבלת רוחב */
    box-sizing: border-box; /* כולל padding ו-border ברוחב הכללי */
    overflow-x: hidden; /* מונע גלילה אופקית */
}

.user-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 15px;
    background-color: #ffffff; /* צבע רקע לבן */
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 100%;
    max-width: 600px; /* הגבלה על רוחב הכרטיסים */
    box-sizing: border-box; /* כולל padding ו-border ברוחב הכללי */
}

.user-item img {
    border-radius: 50%;
	margin-right: -20px; /* תמונת פרופיל בצד שמאל של הטקסט */
    width: 100px; /* גודל התמונה */
    height: 100px; /* גובה התמונה */
    object-fit: cover; /* חיתוך התמונה כדי להתאים לגובה ורוחב */
	padding: 10px;
}

.user-details {
    flex: 1;
    text-align: right; /* יישור לימין של הטקסט */
}

/* מודאל */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 100%;    /* מאפשר לרוחב התמונה להיות עד 100% מרוחב המסך */
    max-height: 100vh;  /* מאפשר לגובה התמונה להיות עד 100% מגובה המסך */
    width: auto;        /* מבטל את רוחב ה-35% שהגדרת */
    height: auto;       /* נותן לגובה להיות מוגדר אוטומטית */
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

/* התאמות למסכים קטנים */
@media (max-width: 768px) {
    .user-list {
        margin-top: 0px; /* רווח מעל הרשימה במצב פלאפון */
    }

    .user-item {
        flex-direction: column;
    }

    .login-form {
        position: relative;
        width: 90%; /* רוחב משתנה על פי רוחב המסך */
        max-width: 300px; /* גובה מקסימלי לרוחב הטופס */
        margin: 10px auto; /* ממורכז עם רווח אוטומטי בצדדים */
		top: 10px;
		right: 0;
    }
    
    .modal-content {
    width: 80%;
    margin-top: 50px;
    }
}

/* התאמות למסכים קטנים */
@media (max-width: 368px) {

    .user-item img {
	margin-right: -30%;
    }

    .rating_design {
	margin-left: 20px;
    }
}
