body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    padding-bottom: 50px;
    direction: rtl;
}

header,
footer {
    direction: rtl;
}

header h1 {
    font-size: 2.5em;
}

nav ul li a {
    font-size: 1.2em;
}

footer p {
    font-size: 1em;
}

header {
    background-image: url('https://cdn.fararu.com/files/fa/news/1402/9/10/1824614_192.jpg');
    background-size: cover;
    background-position: center 30%;
    padding: 20px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    text-align: center;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 10px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.2em;
}

main {
    padding: 20px;
    margin-bottom: 50px;
}

.main-content {
    margin-bottom: 50px;
}

.container {
    margin-bottom: 50px;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
}

footer p {
    font-size: 1em;
}

form {
    display: flex;
    flex-direction: column;
}

form label {
    margin-top: 10px;
}

form input,
form textarea,
form button {
    margin-top: 5px;
    padding: 10px;
    font-size: 16px;
}

.achievement-container {
    margin: 50px;
    padding: 30px;
    background-color: #ffffd0;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(139, 69, 19, 0.5);
    transition: all 0.3s ease;
}

.achievement-container:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(139, 69, 19, 0.7);
}

.achievement-item {
    display: flex;
    margin-bottom: 20px;
    align-items: center;
}

.achievement-item img {
    width: 234px;
    height: 356px;
    margin-left: 15px;
}

.achievement-text {
    flex: 1;
}

.preview-box {
    width: 80%;
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-align: center;
}

@media screen and (max-width: 768px) {
    #image-container {
        width: 100%;
        max-width: none;
        float: none;
        margin-right: 0;
    }
}