* {
    direction: rtl;
    font-size: large;
}

body {
    background-color: #f5f5f5;
    color: #333;
    text-align: right;
    font-family: 'Amiri', serif !important;
}




#USearch {
    background-color: #e0f7fa;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-size: 18px;
    margin: 2px;
}

h3 {
    color: #8b4513;
}

.choix {
    margin-bottom: 15px;
}

input[type="number"],
input[name="search_bar"],
select,
#date_text {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: large;
    text-align: right;
}

input[type="submit"] {
    background-color: #4682b4;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    width: 100%;
}

input[type="submit"]:hover {
    background-color: #4169e1;
}

input[type="reset"] {
    background-color: #4682b4;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    width: 100%;
}

input[type="reset"]:hover {
    background-color: #4169e1;
}

#display {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    display: none;
}
#backButton {
    display: block;
    margin: 20px auto;
    width: 200px;
}



/* Media queries for responsiveness */
@media (max-width: 768px) {
    * {
        direction: rtl;
    }    
    #USearch, #display {
        flex: 1 1 100%; /* Take up full width on small screens */
    }

    #display {
        margin-top: 20px; /* Add some space above the display section */
    }
}

@media (max-width: 480px) {
    * {
        direction: rtl;
    }
    
    #USearch, #display {
        flex: 1 1 100%; /* Full width on small mobile screens */
    }
}



.form-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px;
}

.half-width {
    flex: 1 1 48%;
    min-width: 200px;
}

.full-width {
    flex: 1 1 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
}

/* Ensure proper stacking on small screens */
@media (max-width: 600px) {
    .form-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px; /* tighter spacing */
}

.half-width {
    flex: 1 1 48%;
    min-width: 140px; /* still readable on phone */
}
}
