/* Ensure the header is at the very top of the page */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: calc(100% - 1em); /* Account for the side margins */
    background-color: lightgray; /* Add background color if needed */
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    z-index: 1000; /* Ensure it is on top of other elements */
    margin-left: 0.5em; /* Default margin for small screens */
    margin-right: 0.5em; /* Default margin for small screens */
    padding-top: 0.25em; /* Add padding to top and bottom */
    padding-bottom: 0.25em; /* Add padding to top and bottom */
}

.footer {
    bottom: 0;
    left: 0;
    bottom: 0;
	width: calc(100% - 1em); /* Account for the side margins */
    background-color: none; /* Add background color if needed */
    color: #000;
    z-index: 999; /* Ensure it is on top of other elements */
    margin-left: 0.5em; /* Default margin for small screens */
    margin-right: 0.5em; /* Default margin for small screens */
    padding-top: 0.25em; /* Add padding to top and bottom */
    padding-bottom: 0.25em; /* Add padding to top and bottom */
}

main {
    padding-top: 4em; /* Adjust based on the height of the header */
    margin: 0 0.5em; /* Default margin for small screens */
}

/* Base font size */
body {
    font-size: clamp(1rem, 1.5vw, 2rem);
    font-family: Arial, Helvetica, sans-serif;
    color: #000;
    background-color: lightgray;
    letter-spacing: 0rem;
    line-height: 1.15;
    font-feature-settings: "kern";
    -webkit-font-feature-settings: "kern";
}

section {
    padding-bottom: 3em;
}

/* Ensure other elements scale proportionally */
h1, h2, h3, h4, h5 {
    margin: 0;
    font-size: inherit;
    font-weight: normal;
}

a {
    color: black;
    text-decoration: underline;
}

a:hover {
    color: black;
    text-decoration: underline;
    font-style: italic;
}

img {
    max-width: 100%;
    height: auto;
}

markyellow {
    background-color: yellow;
    color: black;
}

markcyan {
    background-color: cyan;
    color: black;
}

markgreen {
    background-color: #00FF00;
    color: black;
}

markpink {
    background-color: magenta;
    color: black;
}

markorange {
    background-color: #FF8000;
    color: black;
}

.titles {
    text-transform: uppercase;
    letter-spacing: 0.05rem;
}

/* Responsive font size for larger screens */
@media only screen and (min-width: 600px) {
    .header, .footer, main {
        margin-left: 0.25em; /* Adjust margins for larger screens */
        margin-right: 0.25em; /* Adjust margins for larger screens */
    }

    .header, .footer {
        width: calc(100% - 0.5em); /* Adjust width to account for the margins */
    }
}

/* Show footer after scrolling */
@media only screen and (min-height: 1000px) { /* Change 1000px to the height of your content */
    .footer {
        display: block; /* Show the footer */
    }
}
