body {
    margin: 0 auto;
    width: 90%;
    color: #334155;
    font-size: 1.1em;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #f8fafc;
}

header img {
    width: 100%;
    border: #00ffff 4px solid;
    /* Matches Gena Beatty Cyan text */
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 255, 255, 0.15);
    display: inline-block;
    animation: scroll-across 40s linear infinite;
}

#familypic {
    width: 50%;
    border: #ec4899 4px solid;
    /* Matches Magenta/Pink from header gradient */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.15);
    display: block;
    margin: 20px auto;
}

/* ====== 2. Headings & Typography ====== */
h1,
h2 {
    color: #008b8b;
    /* Darker Cyan for readability on light background */
    font-size: 2.2em;
    letter-spacing: -0.5px;
}

p {
    font-size: 18px;
    color: #475569;
    line-height: 1.6em;
}

figcaption {
    font-size: 16px;
    color: #64748b;
    text-align: center;
    margin-top: 5px;
}

main {
    padding: 20px;
    margin-top: 35px;
}

footer {
    clear: both;
    padding-top: 20px;
    color: #64748b;
    border-top: 1px solid #e2e8f0;
}

footer a {
    color: #008b8b;
    text-decoration: none;
}

/* ====== 3. Navigation ====== */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

nav li {
    display: block;
    width: 20%;
    float: left;
}

nav a {
    display: block;
    background-color: #f1f5f9;
    line-height: 2.8em;
    text-align: center;
    text-decoration: none;
    color: #008b8b;
    font-size: 1.1em;
    font-weight: bold;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

nav a:hover {
    background-color: #00ffff;
    color: #0f172a;
    border-color: #00ffff;
}

/* ====== 4. Specific Image Styles (Me & Education) ====== */
/* Personal Profile Image */
.me-photo,
img[src*="me.jpg"] {
    width: 250px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border: #ec4899 4px solid;
    border-radius: 50%;
    /* Modern circular look */
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.15);
}

/* Education Image */
.edu-photo,
img[src*="education"] {
    width: 400px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 25px auto;
    border: #008b8b 4px solid;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 139, 139, 0.15);
}

/* ====== 5. Animation ====== */
@keyframes scroll-across {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-15%);
    }
}

/* ====== 6. Vacation Grid ====== */
.vacation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.vacation-grid img {
    width: 100%;
    height: auto;
    border: #ec4899 2px solid;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.vacation-grid img:hover {
    transform: translateY(-5px);
}

/* ====== 7. Family Table & Responsive Logic ====== */
.family-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    margin: 25px 0;
}

.family-table caption {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #ec4899;
}

.family-table th,
.family-table td {
    border: 1px solid #e2e8f0;
    padding: 12px;
    text-align: left;
}

.family-table thead {
    background-color: #008b8b;
    color: white;
}

.family-table tfoot {
    background-color: #f8fafc;
    font-style: italic;
    text-align: center;
}

@media (max-width: 600px) {
    .family-table thead {
        display: none;
    }

    .family-table,
    .family-table tbody,
    .family-table tr,
    .family-table td {
        display: block;
        width: 100%;
    }

    .family-table tr {
        margin-bottom: 15px;
        border: 2px solid #ec4899;
        padding: 10px;
    }

    .family-table td {
        border: none;
        position: relative;
        padding-left: 50%;
    }

    .family-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        font-weight: bold;
        color: #008b8b;
    }
}

/* ====== 8. Form Styles ====== */
form {
    width: 90%;
    margin: 20px auto;
}

fieldset {
    padding: 20px;
    margin-bottom: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
}

label {
    display: block;
    position: absolute;
    width: 30%;
    padding: 5px;
    font-weight: bold;
    color: #475569;
}

label.radio {
    display: inline;
    position: inherit;
}

input,
select,
textarea {
    display: block;
    position: relative;
    left: 30%;
    padding: 8px;
    width: 60%;
    margin-bottom: 15px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
}

input[type=submit],
input[type=reset] {
    display: block;
    float: left;
    width: 40%;
    padding: 12px;
    margin: 0 5% 10px 5%;
    font-weight: bold;
    background-color: #008b8b;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

input[type=submit]:hover {
    background-color: #ec4899;
}

/* ====== 9. Media Queries ====== */
@media only screen and (max-width: 768px) {
    body {
        width: 100%;
    }

    nav li {
        float: none;
        width: 100%;
    }

    input,
    select,
    textarea,
    label {
        width: 95%;
        position: inherit;
        left: 0;
    }

    input[type=submit],
    input[type=reset] {
        width: 100%;
        margin: 10px 0;
    }
}

@media only screen and (min-width: 769px) {
    html {
        background-image: url('./images/background.jpg');
        background-size: cover;
        background-attachment: fixed;
    }

    main>img {
        width: 25%;
        float: right;
        border: #ec4899 4px solid;
        margin-left: 20px;
        border-radius: 8px;
    }
}

Use code with caution. 2. Separate Print Stylesheet (print.css) Save this as a separate file and link it in your HTML with media="print" . css
/* ====== print.css (Full logic) ====== */
@media print {
    body {
        background: none !important;
        color: #000;
        font-size: 12pt;
        font-family: serif;
        margin: 0;
        width: 100%;
    }

    nav,
    header,
    footer,
    input[type=submit],
    input[type=reset],
    .animation {
        display: none !important;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    a::after {
        content: " (" attr(href) ")";
        font-size: 90%;
        font-style: italic;
    }

    img {
        max-width: 100%;
        height: auto;
        border: 1px solid #000;
        page-break-inside: avoid;
    }

    table {
        border: 1px solid #000;
        width: 100%;
        border-collapse: collapse;
    }

    th,
    td {
        border: 1px solid #000;
        padding: 8px;
    }

    label {
        position: static !important;
        display: block;
        width: 100% !important;
        font-weight: bold;
        margin-top: 10px;
    }

    input,
    select,
    textarea {
        border: none;
        border-bottom: 1px solid #000;
        position: static !important;
        width: 100% !important;
        left: 0 !important;
    }
}