/* main.css - Shared styles for basic page structure */

/* Basic page styles */
html {
    font-size: 16px; /* Base font size */
    scroll-behavior: smooth; /* Enable smooth scrolling */
}

body {
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-left: 1rem; /* Use rem for padding */
	padding-right: 1rem; /* Use rem for padding */
    min-height: 100vh;
    background-color: #f4f4f4;
    color: #333;
    position: relative;
	margin-top: 3px;
}

/* Main content container */
main {
	width: 100%;
    max-width: 750px;
    background-color: #fff;
    padding: 1.25rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
    /* text-align: center; */ /* Removed default text-align */
    /* Note: margin-top removed, needs to be handled by body padding or element spacing */
}

main h1 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
    color: #333;
    font-weight: 600;
}
main h2 {
    font-size: 1.2em;
    margin-top: 1.5em;
    margin-bottom: 0.75em;
    text-align: left;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.25em;
}

main h3 {
	font-size: 1.2em;
	margin-top: 1.25em;
	margin-bottom: 0.5em;
	text-align: left;
	font-weight: bold;
}
main ul {
	margin-left: 2em;
	margin-bottom: 1em;
}
main li {
	margin-bottom: 0.5em;
}

/* Default paragraph styling within main, can be overridden */
main p {
    line-height: 1.6;
    color: #555;
    margin-bottom: 1rem; /* Add default bottom margin */
}
/* Remove bottom margin from last paragraph inside main to avoid double spacing */
main p:last-child {
    margin-bottom: 0;
}
