/* Global Styles - Applies to all elements */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Body Styling - Sets the overall background and typography */
body {
    font-family: Arial, sans-serif; /* Ensures readability */
    line-height: 1.6; /* Improves text spacing */
    background-color: mistyrose; /* Soft background for contrast */
    padding: 10px;
}

/* Header Section - Defines header background and text styling */
header {
    background-color: lightgoldenrodyellow;
    color: dimgray;
    text-align: center;
    padding: 20px;
}

/* Navigation Bar - Provides horizontal navigation styling */
nav {
    background-color: #444; /* Darker background for contrast */
    padding: 10px;
}

nav ul {
    list-style: none; /* Removes default bullet points */
    text-align: center;
}

nav ul li {
    display: inline; /* Keeps navigation links inline */
    margin: 0 15px;
}

nav ul li a {
    color: wheat; /* Matches the warm color theme */
    text-decoration: none;
    font-weight: bold;
}

nav ul li a:hover {
    text-decoration: underline; /* Provides hover effect for clarity */
}

/* Main Layout - Controls the structure of content and sidebar */
main {
    width: 100%;
    overflow: hidden; /* Ensures floated elements are contained */
    margin-top: 20px;
}

/* Two-Column Layout using Float - Ensures basic layout without Flexbox/Grid */
.content {
    width: 70%;
    float: left;
    padding: 20px;
    background-color: lightgoldenrodyellow;
    border-right: 1px solid #ddd; /* Creates separation from sidebar */
    border-radius: 10px 0 0 10px; /* Consistent rounded corners */
}

.sidebar {
    width: 30%;
    float: right;
    padding: 20px;
    background-color: wheat; /* Matches the color scheme */
    border-radius: 0 10px 10px 0; /* Ensures consistent corner rounding */
}

/* Footer Styling - Ensures visibility and consistency */
footer {
    clear: both; /* Clears floats to avoid layout issues */
    background-color: lemonchiffon;
    color: dimgray;
    text-align: center;
    padding: 10px;
    margin-top: 20px;
    border-radius: 5px;
}

/* Responsive Design - Adjusts layout for smaller screens */
@media screen and (max-width: 768px) {
    .content, .sidebar {
        width: 100%; /* Stacks columns for better mobile readability */
        float: none;
        border-radius: 10px; /* Applies rounded corners for a cohesive look */
    }

    nav ul {
        display: block;
    }

    nav ul li {
        display: block; /* Stacks navigation links vertically */
        margin: 5px 0;
    }
}