body {
    font-family: 'Cairo', serif;
    font-size: 14px;
    background-color: #f0f0f0;
    direction: rtl; /* This will align text to the right */
    text-align: right; /* This will align text to the right */
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* Add this if it's not already in your CSS */
#page-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Push footer to the bottom */
}

.content {
    flex: 1; /* This will allow the content to expand and push the footer down */
}

h1 {
    text-align: center;
    margin-top: 10px;
    color: black;
    border-top: 2px solid black;
    border-bottom: 2px solid black;
    padding: 2.0px;
}

.instructions {
    border: 1px solid #4CAF50;
    background-color: #f2f2f2;
    border-radius: 10px;
    padding: 2px;
    margin: 0px 0;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    /* text-align: center; Remove this to align instructions text to the right */
}

/* If you want to style the paragraph within the instructions separately */
.instructions p {
    margin: 0; /* Reset margin for the paragraph */
    color: #333; /* A darker color for the text */
    font-size: 1.4em; /* Slightly larger font size */
}

table {
    width: 90%;
    margin-right: 30; /* Align the table to the right */
    margin-left: auto; /* This will push the table to the right */
    border-collapse: collapse;
}

table tr td:first-child {
    font-weight: bold; /* Makes the text in the first cell of each row bold */
}

.submit-container {
    text-align: center;
}

th, td {
    padding: 6px; /* Reduced from 15px to 8px */
    text-align: right;
    border-bottom: 2px solid #ddd;
}


th {
    background-color: #f2f2f2;
}

.additional-question {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
}


input[type=submit] {
    padding: 10px 15px;
    font-size: 12px;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    margin-top: 20px;
    text-align: center;
}

input[type=submit]:hover {
    background-color: #45a049;

}
.results {
    border: 2px solid #4CAF50;
    background-color: #f2f2f2;
    border-radius: 10px;
    padding: 20px;
    margin: 15px 0;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.results p {
    margin: 0;
    color: #00008B; /* Dark blue color */
    font-size: 1.3em;
}

#refreshButton {
    position: fixed;
    left: 10px;
    top: 10px;
    padding: 8px 15px;
    font-size: 14px;
    cursor: pointer;
    background-color: #4CAF50; /* A more vibrant green */
    color: white; /* White text for better contrast */
    border: none; /* Remove border for a cleaner look */
    border-radius: 50px; /* Rounded pill shape */
    text-align: center;
    text-decoration: none; /* Remove underline from link */
    display: inline-block;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
    transition: background-color 0.3s, box-shadow 0.3s; /* Smooth transition for hover effects */
}

#refreshButton:hover, #refreshButton:focus {
    background-color: #333;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Larger shadow on hover/focus for a 'lifting' effect */
    outline: none; /* Remove outline on focus for a clean look */
}

.footer-content {
    text-align: center; /* Center align text in the footer */
    padding: 9.5px;
    background-color: #333;
    color: white;
    font-size: 1.2em;
    margin: auto; /* Centers the footer content */
}

.footer-arabic {
    /* Arabic specific styles if any */
}

.footer-english {
    /* English specific styles if any */
}

.footer-english a {
    color: #ffd700;
    text-decoration: none;
}

.footer-english a:hover {
    text-decoration: underline;
}

.footer-english a:hover {
    text-decoration: underline;
}