body {
    font-family: 'Amiri', serif;
    background-color: #f0f0f0;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    text-align: center;
    min-height: 100vh;
}

.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.top-frame {
    border-top: 3px solid black;
    border-bottom: 3px solid black;
    padding: 0em 0; /* Reduced vertical padding */
    margin: 0px auto; /* Keep it centered horizontally */
    width: fit-content; /* Adjust width to fit the content */
    box-sizing: border-box;
}


.top-frame, .main-frame, form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.title {
    font-size: 3.0em;
    margin-bottom: 0em;
}

.names {
    font-size: 1.1em;
    margin-top: 0;
    margin-bottom: 0em;
    color: #505050; /* This is a dark gray color */
}

.main-frame {
    border: 11px solid #ccc;
    padding: 50px;
    margin: 20px 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    max-width: 2000px; /* Adjust max-width as necessary */
    width: calc(80% - 30px);
    box-sizing: border-box;
}

.instructions {
    color: #000080;
    margin: 0;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.6em;
}

input[type=submit] {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
}

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

.footer-content {
    padding: 10px 0;
    background-color: #333;
    color: white;
    font-size: 1.2em;
    text-align: center;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    transform: translateX(-50%);
    box-sizing: border-box;
}

/* Ensuring both Arabic and English content in the footer are flexible */
.footer-arabic, .footer-english {
    flex: 1;
    text-align: center;
}

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

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