/* 1. Page Frame */
html {
    height: 100%;
}

body {
    background-color: #dcdcdc;
    color: #222222;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0 auto;
    
    width: 90%; 
    max-width: 720px; 
    padding: 20px 20px 10px 20px;
    box-sizing: border-box;

    /* Keeps footer pinned to viewport on short pages without pushing elements apart */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 2. Headings */
h1 {
    text-align: center;
    color: blue;
    margin: 0 auto 20px auto;
}

h2 {
    text-align: center;
    color: blue;
    margin: 15px auto 15px auto; /* Standardized top & bottom spacing */
}

/* 3. Navigation Bar (Identical on all pages) */
ul {
    list-style-type: none;
    margin: 0 auto 15px auto;
    padding: 4px 0;
    display: flex;
    justify-content: space-evenly; 
    flex-wrap: wrap;
    border: 1px solid black;
    background-color: darkgrey;
    font-size: 16px;
    width: 100%;
    max-width: 650px;
    box-sizing: border-box;
}

ul li a {
    display: block;
    color: white;
    padding: 8px 12px;
    text-decoration: none;
    font-weight: bold;
}

ul li a:hover {
    background-color: teal;
    text-decoration: none;
}

/* 4. Main Content Container */
main {
    width: 100%;
    flex: 1; /* Automatically takes remaining height cleanly without pulling things apart */
}

/* 5. Centered Paragraphs */
p {
    text-align: center;
    margin: 0 auto 15px auto;
    max-width: 650px;
    line-height: 1.5;
    font-size: 17px;
}

/* 6. Video Element */
video {
    display: block;
    margin: 20px auto 30px auto;
    max-width: 100%;
    height: auto;
}

/* 7. Footer */
footer {
    text-align: center;
    padding-top: 25px;
    padding-bottom: 10px;
    font-size: 14px;
}