body {
    font-family: 'Merriweather', serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background: #333;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
}

header p {
    margin: 0;
    font-size: 1.2rem;
}

nav {
    margin: 1rem 0;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
}

nav ul li a:hover {
    text-decoration: underline;
}

main {
    flex: 1;
    margin-top: 10px;
    margin-left: 50px;
    margin-right: 50px;
    margin-bottom: 10px;
}

#home {
    margin-bottom: 2rem;
}

.centered-image {
    width: 50%; /* Full width for the container */
    margin: 0 auto; /* Center the div */
    text-align: center;
}

.centered-image img {
    width: 50%; /* Adjust the width for the image */
    height: auto; /* Maintain the aspect ratio */
}

#products {
    margin-bottom: 2rem;
}

#products h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.product {
    background: #fff;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product img {
    width: 20%;
    margin-left: 1rem;
}

.product div {
    flex: 1;
}

.product h3 {
    margin-top: 0;
}

#contact {
    background: #fff;
    padding: 1rem;
    border: 1px solid #ddd;
}

#contact h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

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

form label {
    margin: 0.5rem 0 0.2rem;
}

form input, form textarea {
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

form button {
    padding: 0.7rem;
    border: none;
    background: #333;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
}

form button:hover {
    background: #555;
}

footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    margin-top: auto;
}

#not-found {
    text-align: center;
    padding: 50px;
    font-family: 'Merriweather', serif;
    color: #333;
}

#not-found h2 {
    font-size: 3em;
    margin-bottom: 20px;
    color: #e74c3c;
}

#not-found p {
    font-size: 1.5em;
    margin-bottom: 30px;
}

#not-found a {
    text-decoration: none;
    color: #3498db;
    font-weight: bold;
}

#not-found a:hover {
    text-decoration: underline;
}

#not-found .centered-image {
    margin-top: 30px;
}

#not-found .centered-image img {
    max-width: 100%;
    width: 300px;
    height: auto;
}

body {
    background-color: #f9f9f9;
    font-family: 'Merriweather', serif;
}

/* Responsive Styles */
@media (max-width: 768px) {
    main {
        margin-left: 20px;
        margin-right: 20px;
    }

    .centered-image img {
        width: 80%; /* Make the image larger on smaller screens */
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 2rem;
    }

    header p {
        font-size: 1rem;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: 0.5rem 0;
    }

    nav ul li a {
        font-size: 1rem;
    }

    main {
        margin-left: 10px;
        margin-right: 10px;
    }

    .centered-image img {
        width: 50%; /* Full width for very small screens */
    }

    .product img {
        width: 20%;
    }
}
