@font-face {
    font-family: 'NewRudaw';
    src: url('fonts/NewRudaw-Bold.ttf') format('truetype');
    /* Add additional font variations if applicable */
}

body {
    margin: 0;
    font-family: 'NewRudaw';
    background-color: #070602ad; /* White background color */
    color: #000000; /* Black text color */
    direction: rtl; /* Right to left direction */
    text-align: right; /* Right align text */
}

header, footer {
    background-color: #002147; /* Dark blue background color */
    color: #ffffff; /* White text color */
}

.container {
    display: flex;
    justify-content: flex-end; /* Space elements to the end (right for RTL) */
    align-items: center;
    padding: 20px;
}

.language-icon {
    margin-left: 20px; /* Add some space to the left of the icon */
    cursor: pointer;
    font-size: 24px; /* Icon size */
    color: #ffffff; /* White color */
}

.content {
    padding: 20px;
    width: 80%;
    margin: auto; /* This will center the content horizontally */
    margin-top: 20px; /* Space between header and content */
    margin-bottom: 20px; /* Space between content and footer */
}

.filters {
    text-align: center;
    margin-bottom: 20px;
}

.filter-button {
    background-color: #004080; /* Dark blue button background color */
    color: #ffffff; /* White text color */
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    margin: 5px;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.filter-button:hover {
    background-color: #002147; /* Darker blue background color on hover */
}

.search-box {
    text-align: center;
    margin-bottom: 20px;
}

.search-box input[type="text"] {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    width: 50%;
}

.search-box input[type="submit"] {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #004080;
    color: #ffffff;
    cursor: pointer;
}

.search-box input[type="submit"]:hover {
    background-color: #002147;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* Responsive grid layout */
    gap: 20px;
}

.video {
    background-color: #f0f0f0; /* Light grey background for video container */
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s, background-color 0.3s;
}

.video:hover {
    transform: scale(1.02); /* Slightly enlarge video container on hover */
    background-color: #e0e0e0; /* Slightly darker background on hover */
}

.video iframe {
    width: 100%;
    height: 250px;
    border: none;
}

.video-title {
    color: #333333; /* Dark grey text color for video titles */
    font-size: 1.2em; /* Larger font size for video titles */
    margin-top: 10px;
    transition: color 0.3s;
}

.video:hover .video-title {
    color: #0073e6; /* Change text color on hover */
}

/* Modal for larger video display */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9); /* Black background with opacity */
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 0;
    width: 80%;
    max-width: 800px; /* Maximum width for larger video */
}

.modal-content iframe {
    width: 100%;
    height: 450px; /* Larger height for the video */
    border: none;
}

.close {
    position: absolute;
    right: 25px;
    top: 10px;
    color: #ffffff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #999;
    text-decoration: none;
    cursor: pointer;
}

/* Language Selection Popup */
.language-popup {
    display: none; /* Hidden by default */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent black background */
    padding: 20px;
    border-radius: 10px;
    z-index: 1000;
    text-align: center;
}

.language-popup h2 {
    color: #ffffff; /* White text color */
    margin-bottom: 20px;
}

.language-popup .flags {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.language-popup .flag {
    cursor: pointer;
    transition: transform 0.3s;
}

.language-popup .flag:hover {
    transform: scale(1.1);
}
