/* Base styles for all devices */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    padding-bottom: 60px; /* Adjust this value to match the height of your footer */
    background-color: #f4f4f4;
    color: #333;
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 20px;
}

/* Responsive grid */
.row {
    display: flex;
    flex-wrap: wrap;
}

.column {
    flex: 1;
    padding: 10px;
}

/* Media queries for different screen sizes */
@media (max-width: 1200px) {
    .column {
        flex: 50%;
    }
}

@media (max-width: 768px) {
    .column {
        flex: 100%;
    }
}

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
    text-align: center;
}

/* Responsive text */
h1 {
    font-size: 2.5em;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5em;
    }
}

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

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

nav ul li {
    margin: 0 1em;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

/* Vertical navigation for mobile */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 0.5em 0;
    }
}

main {
    padding: 2em;
    max-width: 800px;
    margin: auto;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1em 0;
    position: fixed;
    width: 100%;
    bottom: 0;
}

h1, h2 {
    color: #333;
}

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

form label {
    margin-top: 1em;
}

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

form input[type="submit"] {
    background-color: #333;
    color: #fff;
    border: none;
    cursor: pointer;
    margin-top: 1em;
}

form input[type="submit"]:hover {
    background-color: #555;
}
