@font-face {
    font-family: 'Noto Sans Arabic';
    src: url('NotoSansArabic-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    background-image: url('library.jpg');
    background-size: cover; /* Ensures the image covers the entire background */
    background-position: left; /* Centers the image */
    background-repeat: no-repeat; /* Prevents the image from repeating */
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans Arabic', sans-serif;
    background-color: #001d2d;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative; /* Ensure body is positioned relative for footer positioning */  
}

.container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 60px; /* Add space for footer */
}

.logo {
    margin-bottom: 10px;
}

.logo img {
    width: 200px; /* Default logo size for larger screens */
    height: auto;
    object-fit: cover;
}

.title {
    font-size: 36px;
    margin-bottom: 0px;
}

.choices {
    display: flex;
    flex-direction: row; /* Horizontal layout by default */
    direction: rtl; /* Ensure RTL order */
    align-items: center;
    gap: 20px;
}

.choices a {
    padding: 12px 24px;
    font-size: 18px;
    text-decoration: none;
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 20px;
    transition: all 0.3s ease;
    background-color: #155983;
    white-space: nowrap;
}

/* Hover effect */
.choices a:hover {
    background-color: #4e7e96;
    color: #001d2d;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Footer styling */
.footer {
    /* background-color: #001d2d;  */
    color: #ffffff; 
    text-align: center;
    padding: 0px;
    position: absolute;
    bottom: 0;
    width: 100%;
    font-size: 14px; /* Adjust font size as needed */
}

.footer a {
    color: #91bdc8; /* Color for links */
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Media queries for responsiveness */

/* For tablets and small desktops */
@media (max-width: 768px) {
    .logo {
        margin-bottom: 5px;
    }
    .logo img {
        width: 150px;
    }
    .title {
        font-size: 28px;
        margin-bottom: 0px;
    }
    .choices {
        flex-direction: column; /* Switch to vertical layout */
        align-items: center;
    }
    .choices a {
        padding: 10px 20px;
        font-size: 16px;
    }
    body {
        background-size: cover; /* Maintain cover size for medium screens */
        background-position: center;
    }
}

/* For mobile devices */
@media (max-width: 480px) {
    .logo {
        margin-bottom: 5px;
    }
    .logo img {
        width: 120px;
    }
    .title {
        font-size: 24px;
        margin-bottom: 0px;
    }
    .choices a {
        padding: 8px 16px;
        font-size: 14px;
    }
   body {
        background-size: cover; /* Maintain cover size for small screens */
        background-attachment: fixed; /* Ensure the background is fixed on scroll for small screens */
        background-position: center;
    }
}
