* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: linear-gradient(to bottom, #b7efe2 30%, #ffffff 30%);
    background-repeat: no-repeat;
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    overflow-x: hidden;

}

.container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    overflow-x: hidden;
}

header h1 {
    font-size: 2em;
    margin-bottom: 10px;

}

header h2 {
    font-size: 1em;
    font-weight: 200;
    margin: 0px 0px 4px;
}

.job-cards {
    display: flex;
    flex-flow: row nowrap;
    gap: 8px;
    overflow-x: scroll;
    justify-content: center;
    align-items: center;
    scrollbar-width: none; /* إخفاء شريط التمرير */
}

.job-cards::-webkit-scrollbar {
    display: none; /* إخفاء شريط التمرير في المتصفحات التي تدعم WebKit */
}

.card {
    min-width: 150px; /* تم تصغير عرض البطاقة */
    flex: 0 0 auto;
    position: relative;
    scroll-snap-align: start;
}

.card-img img {
    width: 100%;
    height: auto;
    border-radius: 15px;
}

.card-text {
    position: absolute;
    bottom: 10px;
    left: 10px;
    color: #fff;
}

.card-text p {
    font-size: 1em; /* تقليص حجم النص داخل البطاقة */
	text-align: left;
}

.card-text button {
    background: linear-gradient(45deg, #2ECC71, #27AE60);
    border: none;
    padding: 6px 10px; /* تقليل حجم الزر */
    color: white;
    border-radius: 15px;
    font-size: 0.9em; /* تقليل حجم النص في الزر */
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
}


.card-img {
    position: relative;
    width: 100%;
}

.card-img img {
    width: 100%;
    height: auto;
    border-radius: 15px;
}

.card-text p {
    font-size: 1.2em;
    margin-bottom: 5px;
}

.card-text button {
    background: linear-gradient(45deg, #b7efe2, #b7efe2);
    border: none;
    padding: 8px 12px;
	margin-top: 4px;
    color: black;
    border-radius: 20px;
    font-size: 1em;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
}

.questions {
    margin-top: 20px;
}

#question {
    text-align: center;
	font-size: 2rem;
	font-weight: 700;
    line-height: 35px;
	margin-top: 16px;
    margin-bottom: 10px;
    margin-left: 0px;
    margin-right: 0px;
}

.answer {
    background-color: #fff;
    padding: 10px 20px;
    margin: 10px;
    cursor: pointer;
    font-size: 15px;
	font-weight: 600;
	height: 40px;
    width: 100%;
    max-width: 300px;
    border-radius: 36px;
    border: 1px solid rgb(102, 102, 102);
    transition: background-color 0.3s, transform 0.3s;
}

.answer:hover {
    background-color: #b7efe2;
    transform: scale(1.05);
}

.progress-bar {
    display: flex;
    justify-content: space-between;
    width: 200px; /* يمكن ضبطه ليناسب حجم الشريط */
    height: 2px; /* سمك الشريط أصبح أنحف */
    margin: 0 auto;
	padding: 50;
	margin-top: 15px;
}

.progress-segment {
    width: 50px; /* عرض كل جزء */
    height: 100%;
    background-color: lightgray;
    margin: 0 2px; /* المسافة بين الأجزاء */
}

.progress-segment.active {
    background-color: black;
}

@media (max-width: 600px) {
    header h1 {
        font-size: 2em;
    }
    header h2 {
        font-size: 1em;
    }
    .job-cards {
        flex-direction: row;
        padding: 0 10px;
		justify-content: flex-start;
        align-items: flex-start;

    }
    .card {
        min-width: 120px; /* تقليل حجم البطاقات على الهواتف */
    }
    .card-text p {
        font-size: 0.9em; /* تقليل حجم النص على الهواتف */
    }
    .card-text button {
        font-size: 0.8em; /* تقليل حجم النص في الأزرار على الهواتف */
        padding: 5px 8px; /* تقليل حجم الأزرار على الهواتف */
	    margin-top: 4px;

		
    }
}

/* إعدادات عامة */
#result-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 9999;
    text-align: center;
}

/* خلفية للكمبيوتر */
@media screen and (min-width: 768px) {
    #result-screen {
        background-image: url('https://raw.githubusercontent.com/dealdz/jobsi/main/uploads/pc.webp');
    }
}

/* خلفية للهاتف */
@media screen and (max-width: 767px) {
    #result-screen {
        background-image: url('https://raw.githubusercontent.com/dealdz/jobsi/main/uploads/mobile.webp');
    }
}

/* تنسيق النصوص */
#search-title {
    color: white;
    font-size: 24px;
    margin-bottom: 20px;
	margin-top: 20px;

}

#search-subtitle {
    color: white;
    font-size: 16px;
    margin-top: 150px;
}

/* تنسيق العداد */
#percentage {
    font-size: 48px;
    font-weight: bold;
    color: white;
    margin-top: 30px;
}

#final-message {
    font-size: 32px;
    font-weight: bold;
    color: black;
    text-align: center;
}

/* توافق الشاشات مع مقاسات مختلفة */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

body {
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
}

.comment-section {
    width: 100%;
    max-width: 600px;
    margin: 50px auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.comments-header h2 {
    margin: 0;
    font-size: 18px;
}

.sort-by {
    font-size: 14px;
    color: #555;
}

.comment {
    display: flex;
    margin-bottom: 20px;
    align-items: flex-start;
}

.profile-pic {
    width: 50px;
    height: 50px;
    background-color: #ccc;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    margin-right: 10px;
}

.comment-content {
    flex: 1;
}

.comment-content p {
    margin: 5px 0;
}

.comment-content p strong {
    font-size: 16px;
}

.comment-content p .time {
    font-size: 12px;
    color: #777;
    float: right;
}

.like-reply {
    font-size: 12px;
    color: #555;
}

.like-reply span {
    margin-right: 10px;
    cursor: pointer;
}

.like-reply span:hover {
    text-decoration: underline;
}

.comment-input {
    display: flex;
    flex-direction: column;
}

.comment-input input, 
.comment-input textarea {
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.comment-input textarea {
    resize: none;
}

.comment-input button {
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.comment-input button:hover {
    background-color: #0056b3;
}

.moderation-message {
    background-color: #f8f9fa;
    color: #333;
    padding: 15px;
    margin-top: 15px;
    border-radius: 5px;
    text-align: center;
    font-size: 14px;
    border: 1px solid #ccc;
}

/* استعلامات الوسائط للشاشات الصغيرة */
@media (max-width: 768px) {
    .comment-section {
        width: 90%;
        margin: 30px auto;
        padding: 15px;
    }

    .comments-header h2 {
        font-size: 16px;
    }

    .sort-by {
        font-size: 12px;
    }

    .profile-pic {
        width: 40px;
        height: 40px;
        margin-right: 8px;
    }

    .comment-content p strong {
        font-size: 14px;
    }

    .comment-content p .time {
        font-size: 10px;
    }

    .like-reply {
        font-size: 10px;
    }

    .comment-input input, 
    .comment-input textarea {
        padding: 8px;
    }

    .comment-input button {
        padding: 8px;
        font-size: 14px;
    }

    .moderation-message {
        font-size: 12px;
    }
}

/* استعلامات الوسائط للشاشات الأصغر من 480px */
@media (max-width: 480px) {
    .comment-section {
        width: 100%;
        margin: 20px auto;
        padding: 10px;
    }

    .profile-pic {
        width: 35px;
        height: 35px;
        margin-right: 6px;
    }

    .comment-content p strong {
        font-size: 12px;
    }

    .comment-content p .time {
        font-size: 8px;
    }

    .like-reply {
        font-size: 8px;
    }

    .comment-input input, 
    .comment-input textarea {
        padding: 6px;
    }

    .comment-input button {
        padding: 6px;
        font-size: 12px;
    }

    .moderation-message {
        font-size: 10px;
    }
}
h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

h2 {
	font-size: 1.4em;
	font-weight: bold;
}

.subtitle {
    font-size: 1em;
    margin-bottom: 30px;
    color: #fff;
}

.offers {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.offer-card {
    width: 350px;
    display: flex;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid #b7efe2;
    min-height: 150px; /* تعيين ارتفاع ثابت للبطاقة */
    /* height: 250px; إذا كنت تريد ارتفاع ثابت */
}

.offer-label {
    width: 100px; /* التأكد من أن العرض متساوٍ */
    padding: 30px 10px;
    text-align: center;
    border-radius: 15px 0 0 15px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #b7efe2; /* اللون الافتراضي للبطاقة الأولى */
}

.offer-content {
    flex-grow: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* إزالة الخط الفاصل */
    border-left: none;
}

.offer-content p {
    color: #000;
    font-size: 1em;
    margin-bottom: 20px;
}

.offer-action {
    display: flex;
    justify-content: flex-end; /* لجعل الزر في أقصى اليمين */
    align-items: center; /* محاذاة العناصر عموديًا */
}

.gender-button {
    padding: 5px 15px;
    background-color: transparent;
    border: 2px solid #333;
    border-radius: 25px;
    cursor: pointer;
    color: #333;
    font-size: 0.9em;
    text-transform: uppercase;
    min-width: 50px; /* تأكد من أن الزر لديه عرض كافٍ */
}

.gender-button:hover {
    background-color: #333;
    color: #fff;
}

.arrow-button {
    background-color: #28a745; /* لون خلفية الزر */
    color: white; /* لون النص */
    border: none; /* بدون حدود */
    padding: 10px 15px; /* حشوة داخلية */
    font-size: 16px; /* حجم الخط */
    cursor: pointer; /* تغيير شكل المؤشر عند المرور */
    border-radius: 20px; /* زوايا دائرية */
    transition: background-color 0.3s; /* تأثير الانتقال عند التمرير */
    min-width: 70px; /* عرض ثابت للزر */
}

.arrow-button:hover {
    background-color: #218838; /* تغيير لون الزر عند التمرير */
}

.arrow {
    font-size: 1.5em;
    color: #333;
}

/* تخصيص البطاقات */
.perfect-match .offer-label {
    background-color: #b7efe2; /* اللون الأخضر الفاتح */
}

.top-rated .offer-label {
    background-color: #e5e5e5; /* لون رمادي فاتح */
}

.highest-rate .offer-label {
    background-color: #e5e5e5; /* لون رمادي فاتح */
}

/* استجابة للشاشات الصغيرة */
@media (max-width: 600px) {
    .offer-card {
        width: 100%;
    }
}

@keyframes shake {
    0% { transform: translate(-50%, -50%) translate(1px, 0); }
    25% { transform: translate(-50%, -50%) translate(-1px, 0); }
    50% { transform: translate(-50%, -50%) translate(1px, 0); }
    75% { transform: translate(-50%, -50%) translate(-1px, 0); }
    100% { transform: translate(-50%, -50%); }
}

#email-popup {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    min-width: 300px; /* Minimum size for responsiveness */
    max-width: 90%; /* Maximum size */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3); /* Permanent shadow */
    transition: box-shadow 0.3s; /* Smooth transition for shadow */
}

.popup-content {
    text-align: center;
    padding: 20px; /* Padding around content */
}

.popup-content h2 {
    margin: 0;
    padding: 10px 0; /* Adjusted padding for spacing */
    font-size: 26px; /* Increased font size */
    font-weight: bold; /* Make the heading bold */
    color: #28a745; /* Change the color to match the button */
    line-height: 1.4; /* Improve line spacing */
}

.popup-content p {
    margin: 15px 0; /* Increased margin for better spacing */
    font-size: 18px; /* Increased font size for readability */
    line-height: 1.5; /* Improve line spacing */
    color: #555; /* Text color */
}

.popup-content button {
    padding: 12px 20px; /* Adjust padding for a larger button */
    border: none;
    background-color: #28a745; /* Green background */
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px; /* Increased font size for button */
    transition: background-color 0.3s; /* Smooth transition on hover */
}

.popup-content button:hover {
    background-color: #218838; /* Darker green on hover */
}
