/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4; /* Light background */
    color: #333; /* Darker text */
}

.container {
    display: flex; /* Enables side-by-side layout */
    flex-direction: row; /* Aligns nav and main horizontally */
    flex-wrap: nowrap; /* Prevent wrapping */
    width: 100%; /* Full width */
    min-height: 100vh; /* Full viewport height */
    background-color: #f4f4f4; /* Neutral background color */
}

/* Header Styles */
header {
    background-color: black;
    color: white;
    text-align: center;
    padding: 15px 0;
}

/* Navigation Styles */
nav {
    width: 200px; /* Fixed width for navigation menu */
    flex-shrink: 0; /* Prevent nav from shrinking */
    background-color: #eee; /* Light gray for nav */
    border-right: 1px solid #ccc; /* Optional: Border to separate nav and content */
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

nav li a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #ddd;
}

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

/* Main Section Styles */
main {
    flex-grow: 1; /* Allow main content to take up remaining space */
    padding: 20px; /* Add padding for better spacing */
    display: flex;
    flex-wrap: wrap; /* Enable responsive layout for sections */
    gap: 20px; /* Add spacing between sections */
}

main section {
    flex: 1 1 calc(50% - 20px); /* Responsive boxes */
    background-color: #fff;
    padding: 15px;
    border: 1px solid #ccc;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    font-size: 1.2rem; /* Increased font size for general text */
}

main section h1 {
    font-size: 1.5rem; /* Consistent font size for section titles */
    margin-bottom: 10px;
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 10px 0;
    background-color: #333;
    color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        width: 100%; /* Navigation takes full width on smaller screens */
        border-right: none;
        border-bottom: 1px solid #ccc;
    }

    main {
        flex-direction: column; /* Stack sections vertically */
    }

    main section {
        flex: 1 1 100%; /* Full width for sections */
    }
}