nav {
    text-align: left;
}

body {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
    background-color: #313131;
    color: #969696;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Makes sure body takes at least full viewport height */
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Ensures content starts from the top */
    padding-bottom: 4rem; /* Prevents footer overlap */
    overflow: auto;
}

h1, h2 {
    text-align: center;
    font-size: 3rem;
}

p {
    font-size: 1.25rem;
    text-align: left;
    margin: 2px;
    padding: 4px;
    overflow-wrap: break-word; /* Ensures long words or email addresses break properly */
}


footer {
    position: sticky;
    bottom: 5;
    left: 0;
    width: 100%;
    margin-top: auto;
    text-align: center;
    padding: 2rem;
    background-color: #313131;
    color: #969696;
    font-style: oblique;
    
}

a {
    color: beige;
    text-decoration: none;
}

a:hover {
    color: green;
    text-decoration: underline;
}

a:visited {
    color: lightgray;
}

a:active {
    color: red;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    h1, h2 {
        font-size: 2.5rem;
    }

    p {
        font-size: 1rem; /* Decrease font size for smaller screens */
    }
    }

@media (max-width: 480px) {
    h1, h2 {
        font-size: 2rem;
    }

    p {
        font-size: 0.9rem; /* Further reduce font size on very small screens */
    }

    nav {
        font-size: 0.9rem; /* Adjust font size in the nav bar */
    }

    footer {
        font-size: 0.9rem; /* Ensure footer text is legible */
    }
}
