body {
    font-family: 'Amiri', serif;
    margin: 0;
    padding: 0;
    background-color: #f0f8f7; /* لون خلفية فاتح وناعم */
    color: #333; /* لون نص داكن للقراءة المريحة */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 100vh;
    background-image: url('https://images.unsplash.com/photo-1503256856107-e59615053121?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHwwfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1920&q=80'); /* صورة خلفية طبيعية هادئة (يمكنك تغييرها) */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.toggle-mode {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #6c757d; /* لون رمادي لطيف للزر */
    color: #fff;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    z-index: 1000;
    font-size: 18px;
    opacity: 0.8; /* جعله أقل بروزًا قليلاً */
    transition: background-color 0.3s ease, opacity 0.3s ease;
}

.toggle-mode:hover {
    background-color: #545b62;
    opacity: 1;
}

.container {
    background: rgba(255, 255, 255, 0.8); /* خلفية بيضاء شبه شفافة وناعمة */
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    max-width: 750px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    width: 68%;
    margin: 30px;
}

.main-title {
    font-size: 42px;
    color: #2a2a2a; /* لون عنوان أغمق قليلاً */
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
}

.video-section {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

video {
    display: block;
    width: 100%;
    max-width: 750px;
    border-radius: inherit;
}

.fallback-text {
    font-size: 18px;
    color: #777;
    margin-top: 10px;
    font-style: italic;
}

.quote-section {
    margin-bottom: 30px;
}

.quote-text {
    font-size: 24px;
    line-height: 1.8; /* زيادة تباعد الأسطر لتحسين القراءة */
    color: #495057; /* لون نص أغمق قليلاً */
    text-align: right;
    border-bottom: 1px solid #e0e0e0; /* خط فاصل أنعم وأخف */
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.section-divider {
    width: 70%; /* جعله أقصر قليلاً */
    height: 1px;
    background-color: #d3d3d3; /* لون فاصل أفتح */
    margin: 30px auto;
    opacity: 0.7; /* جعله أقل بروزًا */
}

/* الوضع الليلي */
body.night {
    background-color: #212529; /* خلفية ليلية داكنة ولكن ليست سوداء فاحمة */
    color: #f8f9fa; /* لون نص فاتح للقراءة على خلفية داكنة */
    background-image: url('https://images.unsplash.com/photo-1494721983704-4627559c30c5?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHwwfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1920&q=80'); /* صورة خلفية ليلية هادئة */
}

body.night .toggle-mode {
    background-color: #343a40;
    color: #fff;
    opacity: 0.9;
}

body.night .toggle-mode:hover {
    background-color: #495057;
    opacity: 1;
}

body.night .container {
    background: rgba(33, 37, 41, 0.85); /* خلفية حاوية ليلية أغمق */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

body.night .main-title {
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

body.night .quote-text {
    color: #e9ecef;
    border-bottom-color: #495057;
}

body.night .section-divider {
    background-color: #495057;
    opacity: 0.8;
}
