/* Common styles */
body {
    direction: rtl;
    font-family: 'Cairo', sans-serif;
    background-color: #f7f8fc;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding-bottom: 100px; /* Make space for footer */
    position: relative;
    min-height: 100vh;
}
.container {
    width: 90%;
    margin: 50px auto;
    border: 2px solid #000;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    position: relative; /* Add relative positioning */
}
h2, h3 {
    color: #007bff;
    text-align: center;
}
.section {
    margin-bottom: 20px;
}

.design {
    text-align: center;
    color: gray;
    font-size: 0.9em;
    margin-bottom: 20px;
}

table {
    margin: 0 auto;
    border-collapse: collapse;
    width: 100%;
    max-width: 700px;
    font-size: 14px;
}
th, td {
    border: 1px solid #ccc;
    padding: 5px;
    text-align: center;
}
th {
    background-color: #f7f7f7;
}
footer {
    text-align: center;
    padding: 20px;
    background-color: #0056b3;
    color: white;
    font-size: 18px;
    width: 100%;
    border-top: 3px solid #3f51b5;
    box-shadow: 0 -3px 5px rgba(0, 0, 0, 0.5);
    position: fixed;
    bottom: 0;
    left: 0;
}
.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.footer-content p {
    margin: 0;
    font-family: 'Amiri', serif;
    font-size: 20px;
}
.footer-content a {
    color: #fff;
    text-decoration: none;
}
.footer-content a:hover {
    text-decoration: underline;
}

/* index.html specific styles */
h4.task-title {
    color: #28a745;
}
.section {
    margin-bottom: 30px;
}
.task-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.task {
    width: 30%;
    text-align: center;
    margin: 10px 0;
    position: relative;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.task img {
    max-width: 100%;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.options {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}
.options label {
    margin: 0 10px;
    display: flex;
    align-items: center;
    cursor: pointer;
}
.options input[type="checkbox"] {
    display: none;
}
.options label:before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border-radius: 50%;
    border: 2px solid #007bff;
    background-color: #fff;
    transition: background-color 0.3s, border-color 0.3s;
}
.options input[type="checkbox"]:checked + label:before {
    background-color: #007bff;
    border-color: #007bff;
}
.options input[type="checkbox"]:checked + label:after {
    content: '✔';
    display: block;
    text-align: center;
    color: #fff;
    font-size: 14px;
    position: absolute;
    left: 6px;
    top: -2px;
}
button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
    display: block;
    margin: 20px auto;
}
button:hover {
    background-color: #0056b3;
}
.animals-section {
    display: flex;
    justify-content: space-between;
    text-align: center;
    margin-bottom: 20px;
}
.animal {
    width: 30%;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}
.animal img {
    max-width: 100%;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.separator {
    border-top: 2px dashed #000;
    margin: 30px 0;
}
.input-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}
.input-group {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}
.input-group label {
    margin-left: 10px;
    font-weight: bold;
}
.input-group input,
.input-group select {
    padding: 5px;
    font-size: 16px;
}

/* results.html specific styles */
.interpretation {
    margin-top: 20px;
    padding: 20px;
    border: 2px solid #007bff;
    border-radius: 10px;
    text-align: left;
    font-size: 16px;
    direction: ltr; /* Ensure left-to-right direction for interpretation section */
}
.interpretation-title {
    color: #007bff;
    font-size: 20px;
    margin-bottom: 10px;
}
.interpretation p {
    margin: 10px 0;
}
.interpretation-table {
    margin: 10px 0 0 0;
    border-collapse: collapse;
    width: 100%;
    font-size: 14px;
    text-align: left;
    border: 1px solid #ccc;
    direction: ltr; /* Ensure left-to-right direction for interpretation table */
}
.interpretation-table th, .interpretation-table td {
    border: 1px solid #ccc;
    padding: 8px;
}
.interpretation-table th {
    background-color: #f7f7f7;
}
.interpretation-subtitle {
    font-size: 16px;
    font-weight: bold;
    margin: 10px 0 5px 0;
}
.notes {
    text-align: right;
    margin-top: 10px;
    direction: rtl; /* Ensure right-to-left direction for notes */
}
.notes-subtitle {
    text-align: right;
    font-size: 16px;
    font-weight: bold;
    margin: 10px 0 5px 0;
}
