body {
    margin-top: 1em;
    margin-bottom: auto;
    font-family: Arial, sans-serif;
    background-color: lavender;
}

/* Headers */
h1, h2, h3 {
    text-align: center;
    font-size: 2.5em;
    color: darkgreen;
}

/* Navigation */
nav {
    text-align: center;
    background-color: lavender;
    padding: 10px;
}

nav a {
    color: darkgreen;
    font-weight: bold;
    text-decoration: none;
    margin: 0 10px;
}

nav a:hover {
    text-decoration: underline;
}

/* Paragraphs & Divs */
p, div {
    margin: 10px;
    padding: 20px;
    line-height: 1.5em;
}

/* table formatting */
table {
    margin: auto;
    border: 3px solid darkgreen; /* thinner border */
    width: 100%;
    border-spacing: 0;
}

td, th {
    padding: 0.3em; /* reduced padding */
    width: auto;
}

tr:nth-of-type(even) {
    background-color: #e6e6fa; /* light lavender */
}

thead:first-of-type {
    background-color: darkgreen;
    color: white;
}

caption {
    font-family: Impact, "Franklin Gothic Bold", "Arial Black", sans-serif;
    font-weight: bold;
    font-size: 1.5em; /* slightly smaller */
    padding-bottom: 0.3em; /* tighter spacing */
}

tfoot td {
    font-size: 9px;
    font-style: italic;
    text-align: center;
    padding: 0.2em; /* compact footer */
}

img[src$=".jpg"], 
img[src$=".jpeg"] {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.responsive {
    max-width: 100%;
    height: auto;
    border: 1px solid darkgreen;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}

/* Validation section */
#validation {
    text-align: center;
}

/* Hide images on small screens */
@media only all and (max-width: 550px) {
    img {
        display: none;
    }
}