/* 1. Global Reset and Layout */
body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f2f5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 2. Flexbox Navigation Bar */
nav ul {
    background-color: #333;
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex; /* Flexbox magic */
    justify-content: center;
}

nav li a {
    display: block;
    color: white;
    text-align: center;
    padding: 14px 20px;
    text-decoration: none;
    transition: 0.3s;
}

nav li a:hover {
    background-color: #555;
    color: #ffcc00;
}

/* 3. Main Content Area */
main {
    flex: 1; /* Makes the main area fill the screen */
    max-width: 800px;
    margin: 20px auto;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* 4. Semantic Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
    margin-top: auto;
}

/* 5. Responsive Images */
img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    display: block;
    margin: 20px auto;
}