/* Main RTL and Hebrew Language Support */
html {
    direction: rtl;
}

body {
    direction: rtl;
    text-align: right;
    font-family: 'Segoe UI', Tahoma, Arial, 'Noto Sans Hebrew', 'David', serif;
}

/* Override Bootstrap RTL issues */
.navbar-brand {
    margin-left: 0;
    margin-right: 1rem;
}

.navbar-nav .nav-link {
    padding-left: 0.5rem;
    padding-right: 1rem;
}

.ms-auto {
    margin-left: auto !important;
    margin-right: 0 !important;
}

.me-2 {
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
}

.me-3 {
    margin-left: 1rem !important;
    margin-right: 0 !important;
}

/* Auth form styling */
.auth-form {
    max-width: 400px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Typography for Hebrew */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Segoe UI', Tahoma, Arial, 'Noto Sans Hebrew', 'David', serif;
    line-height: 1.4;
}

p, span, div {
    line-height: 1.6;
}

/* Button improvements for Hebrew */
.btn {
    font-family: 'Segoe UI', Tahoma, Arial, 'Noto Sans Hebrew', 'David', serif;
}

/* Fix floating elements for RTL */
.floating-book:nth-child(odd) {
    right: auto;
    left: 10%;
}

.floating-book:nth-child(even) {
    left: auto;
    right: 15%;
}

/* Navigation improvements */
.navbar {
    direction: rtl;
}

.navbar-collapse {
    direction: rtl;
}

/* Footer improvements */
footer {
    direction: rtl;
    text-align: right;
}

.social-links a {
    margin-left: 1rem;
    margin-right: 0;
}

/* Responsive improvements for mobile */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
}

/* Book content specific styles */
.page-container {
    direction: ltr; /* Keep images in natural order */
}

.view-controls {
    direction: rtl;
}

.navigation {
    direction: rtl; /* Changed to RTL for proper button flow */
}

.navigation .btn-group {
    flex-direction: row; /* Ensure buttons flow right to left */
    direction: rtl;
}

/* Ensure proper button spacing in RTL */
.navigation .btn {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Hebrew number formatting */
.hebrew-number {
    font-family: 'David', serif;
}

/* Main Styles */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header Styles */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Main Content Styles */
main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

/* Footer Styles */
footer {
    background-color: #f8f9fa;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Book Content Styles */
.book-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    line-height: 1.8;
}

/* Google Sign-in Button */
.google-btn {
    background-color: #fff;
    color: #757575;
    border: 1px solid #ddd;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background-color 0.3s;
}

.google-btn:hover {
    background-color: #f8f9fa;
} 