* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: cursive;
    background-color: #f0f4f8;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 0 20px;
}

h1, h2 {
    color: #007BFF;
}

header {
    background-color: #007BFF;
    color: white;
    text-align: center;
    padding: 20px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
}

header h1 {
    font-size: 2rem;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 15px 0;
    flex-wrap: wrap;
    gap: 10px;
}

nav a {
    text-decoration: none;
    color: white;
    padding: 8px 20px;
    font-weight: bold;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

nav a:hover {
    background-color: #0056b3;
}

main {
    flex: 1;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

main h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    flex-basis: 100%;
}

main p, ul {
    font-size: 1rem;
    margin-bottom: 20px;
    flex-basis: 45%;
}

ul {
    list-style-type: square;
    margin-left: 20px;
}

ul li {
    margin-bottom: 10px;
}

footer {
    text-align: center;
    padding: 15px 0;
    background-color: #0056b3;
    color: white;
    margin-top: 20px;
    font-size: 1rem;
    flex-shrink: 0;
}

header, main, footer {
    display: flex;
    flex-direction: column;
    align-items: center;
}

main > * {
    flex-grow: 1;
    flex-basis: 45%;
    min-width: 250px;
}

main > h2 {
    flex-basis: 100%;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

main {
    flex-wrap: wrap;
}

main > * {
    flex: 1 1 45%;
    min-width: 250px;
}

main > h2 {
    flex-basis: 100%;
}

main > div:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

a {
    color: #007BFF;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}
