/* הגדרות כלליות */
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; /* מונע גלילה אופקית */
	background-color: rgba(230, 196, 255, 0.2); /* צבע רקע עם שקיפות */
	
}

p {
	margin-top: 0;
    margin-bottom: 10px;
	font-size: 12px;
	width: 90%;
}

/* כותרת */
.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: 66px;
    right: 30px;
    width: 300px;
    box-sizing: border-box; /* כולל padding ו-border ברוחב הכללי */
	text-align: center;
	/* margin-right: 14%; */
}

.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: #e6c4ff;
    color: black;
    border: none;
    border-radius: 5px;
    font-size: 15px;
    cursor: pointer; /* שינוי הסמן בעת ריחוף מעל הכפתור */
}

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

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

.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%;
    height: 180px;
    width: 180px;
    object-fit: cover;
    object-position: center 20%; /* מזיז את התמונה למטה */
    padding: 10px;
}

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

/* התחלה - באנרים */

.banner-left, .banner-right {
	position: absolute;
	top: 80px;
	width: 15%; /* אחוז מרוחב המסך */
	height: 33%;
	background-color: #f2f2f2; /* רקע לדוגמה */
   
}
.banner-left {
	left: 10px;
}
.banner-right {
	right: 10px;
}

.content-wrapper h1 {
	text-align: center;
}

/* רספונסיביות לטלפונים */
@media (max-width: 768px) {
	.banner-left, .banner-right {
		display: none;
	}
	.content-wrapper {
		margin-left: 0;
		margin-right: 0;
	}
}

.opening-text {
	text-align: center;
	font-size: 14px;
	color: #333;
	margin-top: 15px;
	margin-bottom: -20px;
}


<!--  #################################################################################################### -->

.custom-button {
	display: flex; /* מאפשר לשים את התמונה והטקסט באותו קו */
	align-items: center; /* מרכז את התמונה והטקסט בצורה אנכית */
	padding: 10px 15px; /* מרווחים סביב הכפתור */
	background-color: #6dc7ff; /* צבע רקע */
	border: none; /* מסיר גבולות */
	border-radius: 5px; /* קצוות מעוגלים */
	color: white; /* צבע הטקסט */
	cursor: pointer; /* מצביע על כך שהכפתור לחיץ */
	transition: background-color 0.3s; /* אנימציה לצבע הרקע */
}

.custom-button:hover {
	background-color: #5aabde; /* צבע רקע בשעת ריחוף */
}

.custom-button img {
	vertical-align: middle; /* מיישר את התמונה */
	border-style: none; /* מסיר גבול מהתמונה */
	margin-left: 5px; /* מרווח בין התמונה לטקסט */
}

/* סוף - באנרים */

/* מודאל */
.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;
}

.button_group {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    width: 90%;
   /* max-width: 600px; */
   margin-top: 10px;
}

.button_group button {
	padding: 5px 5px;
    background-color: #e6c4ff;
    color: black;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
button {
    text-transform: none;
    background-color: #e6c4ff;
}

#Button_index_style {
    background-color: #e6c4ff;
    color: #000; /* Text color */
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
	height: 100%;
}

#Button_index_style:hover {
    background-color: #f0d8ff;
}

.rating_design {
	place-items: center;
}

/* התאמות למסכים קטנים */
@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;
    }
}


 /* עיצוב ה-tooltip */
        [data-tooltip] {
            position: relative;
            display: inline-block; /* מאפשר להציג את ה-tooltip על הכפתור */
        }

        .tooltip-content {
            position: relative; /* הכנה לצף מעל הכפתור */
         /*   bottom: 100%;  מיקום מעל הכפתור */
         /*   left: 50%;  מרכז את ה-tooltip */
            transform: translateX(-5%); /* התאמת המיקום */
            background-color: #333; 
            color: white; 
            padding: 10px; /* מרווח פנימי */
            border-radius: 5px; 
            z-index: 100; 
            opacity: 0; 
            transition: opacity 0.3s; 
        /*    max-width: 280px;  רוחב מקסימלי */
       /*     width: 280px;  רוחב קבוע */
            text-align: center; 
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); 
            font-size: 14px;
            white-space: nowrap; /* מונע הפסקות שורה */
            margin-bottom: 5px; /* מרווח בין ה-tooltip לכפתור */
            pointer-events: none; /* מונע אינטראקציה עם ה-tooltip עד שהוא פעיל */
            opacity: 0; /* מתחילים עם opacity 0 */
			margin-top: -167px;
			margin-right: -40px;
			width: 170%;
        }

        /* כאשר ה-tooltip מוצג */
        .tooltip-content.active {
            opacity: 1; /* כאשר הוא פעיל, שים את ה-opacity ל-1 */
            pointer-events: auto; /* מאפשר אינטראקציה עם ה-tooltip */
			white-space: normal;
			
        }

        /* עיצוב הכפתור ב-tooltip */
        .tooltip-button {
            background-color: #4CAF50; /* צבע הרקע */
            color: white; /* צבע הטקסט */
            border: none; /* ללא גבול */
            padding: 5px 10px; /* מרווח פנימי */
            border-radius: 5px; /* פינות מעוגלות */
            cursor: pointer; /* יד שמצביעה */
            margin-top: 5px; /* מרווח מהטקסט */
        }

        .tooltip-button:hover {
            background-color: #45a049; /* צבע רקע ב-hover */
        }
		
		.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    max-width: 80%;
    max-height: 80%;
}

.modal-content img {
    max-width: 100%;
    max-height: 80vh; /* הגבלת גובה התמונה ל-80% מגובה חלון הדפדפן */
    height: auto;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 24px;
    cursor: pointer;
    user-select: none;
    background: rgba(0, 0, 0, 0.5); /* רקע שקוף לחצים */
    padding: 10px;
    border-radius: 5px;
    display: block; /* Make sure the buttons are block to be visible */
    visibility: visible; /* Always show buttons, will hide if not needed */
}

.nav-btn.left {
    left: 10px; /* מרחק מהקצה השמאלי */
}

.nav-btn.right {
    right: 10px; /* מרחק מהקצה הימני */
}

.close_img {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
	font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    color: red;
    text-shadow: 0 1px 0 #fff;
    opacity: .5;
}



/* עיצוב לטלפונים חכמים */
@media (max-width: 351px) {
  .user-item img {
    margin-left: -20%;
    height: 150px;
    width: 150px;
    object-fit: cover;
    object-position: center 20%; /* תיקון המיקום של התמונה */
  }

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

/* עיצוב לטלפונים */
@media (min-width: 352px) and (max-width: 391px) {
  .user-item img {
    margin-left: -20%;
    height: 150px;
    width: 150px;
    object-fit: cover;
    object-position: center 30%; /* שינוי מיקום המוקד */
  }

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

/* עיצוב לטלפונים */
@media (min-width: 392px) and (max-width: 576px) {
  .user-item img {
    margin-left: -20%;
    height: 190px;
    width: 190px;
    object-fit: cover;
    object-position: center 30%; /* שינוי מיקום המוקד */
  }

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

/* עיצוב לטאבלטים */
@media (min-width: 577px) and (max-width: 768px) {
  .user-item img {
    margin-left: -20%;
    height: 200px;
    width: 200px;
    object-fit: cover;
    object-position: center 25%; /* שינוי קל במיקום */
  }

  .rating_design {
    margin-left: -30%;
  }
}

/* עיצוב למסכים בינוניים */
@media (min-width: 769px) and (max-width: 992px) {
  .user-item img {
    margin-left: -20%;
    height: 210px;
    width: 210px;
    object-fit: cover;
    object-position: center 25%; /* התאמה למרכז */
  }

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

/* עיצוב למסכים גדולים */
@media (min-width: 993px) and (max-width: 1200px) {
  .user-item img {
    margin-left: -20%;
    height: 220px;
    width: 220px;
    object-fit: cover;
    object-position: center 20%; /* התאמה לפי הצורך */
  }

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

/* עיצוב למסכים רחבים מאוד */
@media (min-width: 1201px) {
  .user-item img {
    margin-left: -20%;
    height: 230px;
    width: 230px;
    object-fit: cover;
    object-position: center 20%; /* שומר על מיקום עקבי */
  }

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

