body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    text-align: center; /* Center all text in the body */
}

header {
    background-color: #333;
    color: white;
    padding: 10px 0;
    text-align: center;
}

header img {
    max-width: 200px; /* Set a max-width for the logo */
    height: auto; /* Maintain aspect ratio */
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0; /* Remove default margin */
    display: flex;
    justify-content: center; /* Center the menu items */
    flex-wrap: wrap; /* Allow items to wrap to the next line */
}

nav ul li {
    display: inline;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 0.5em 1em;
    display: block;
}

main {
    padding: 1em;
    text-align: left; /* Align text inside the main element to the left */
    max-width: 800px; /* Set a max-width for the main content */
    margin: 0 auto; /* Center the main content */
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1em 0;
    margin-top: 1em;
}

footer h3 {
    margin-top: 0;
}

footer p {
    margin: 5px 0;
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

footer img {
    width: 20px;
    vertical-align: middle;
    margin-right: 5px; /* Add some space between the logo and text */
}

/* Media query for smaller screens */
@media (max-width: 768px) {
    nav ul {
        display: flex;
        flex-direction: column;
    }
    main, footer {
        padding: 10px;
    }
}
