/* ====================================================================
   aaronhaze.css
   One external stylesheet shared by every page of my portfolio site.
   Author: Aaron M. Haze | CGS 2820C Web Page Development
   Order: 1) tag selectors, body first, then in the order they appear on the page
          2) ID selectors  3) class selectors
          4) media queries (mobile first: phone styles are the default)
   Updated October 12, 2026: table styles for the contact page
   (Assignment 10, Tables and Forms Part 1).
   Updated October 15, 2026: selected nav rule moved to the class section.
   Updated November 2, 2026: form control styles for the working contact form
   (Assignment 11, Tables and Forms Part 2).
   Updated November 2, 2026: code style for commands on the lab report page.
   ==================================================================== */


/* ---------- 1. TAG SELECTORS ---------- */

body {
    max-width: 1000px;                  /* page never grows past 1000px */
    margin: 0 auto;                     /* centers the page, not the text */
    padding: 0;
    background-color: #0a3d62;          /* shows while bg.jpg loads */
    background-image: url('images/bg.jpg');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    color: #1f2933;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 100%;
    line-height: 1.6;
}

* {
    box-sizing: border-box;             /* every element: padding and borders stay inside its width */
}

header {
    min-height: 180px;
    padding: 35px 25px;
    background-color: #082b45;
    background-image: url('images/masthead.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    color: #ffffff;
}

nav {
    background-color: #0a3d62;
    border-top: 4px solid #f1c40f;
}

nav ul {
    margin: 0;
    padding: 0;
    text-align: center;
}

nav li {
    display: block;                     /* phones: links stack vertically */
    padding: 0;
    list-style: none;
    border-bottom: 1px solid #1d5a87;
}

nav a {
    display: block;
    padding: 8px 14px;
    font-size: 1.25em;
    text-decoration: none;              /* no underlined nav links */
    transition: background-color 0.3s ease, color 0.3s ease;   /* CSS3 */
}

/* Nav state 1 of 3: normal */
nav a:link,
nav a:visited {
    color: #ffffff;
}

/* Nav state 2 of 3: hover (rollover). Size and weight stay the same. */
nav a:hover,
nav a:focus {
    color: #0a3d62;
    background-color: #f1c40f;
}

main {
    display: block;
    padding: 20px;
    background-color: #ffffff;
}

h1 {
    margin: 0 0 15px;
    color: #0a3d62;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2em;
    line-height: 1.2;
}

h2 {
    margin: 25px 0 10px;
    padding-bottom: 4px;
    border-bottom: 2px solid #f1c40f;
    color: #1f6fa8;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.5em;
    line-height: 1.3;
}

h3 {
    margin: 15px 0 2px;
    color: #0a3d62;
    font-size: 1.15em;
}

p {
    margin: 0 0 1em;
}

main p {
    text-align: justify;                /* full-justified paragraphs on every screen size */
}

a:link {
    color: #1f6fa8;
}

a:visited {
    color: #5b3a8c;
}

a:hover {
    color: #b03a2e;
}

a:active {
    color: #0a3d62;
}

img {
    display: block;
    max-width: 100%;                    /* responsive images */
    height: auto;
    border: 0;
}

hr {
    width: 60%;
    height: 5px;
    margin: 25px auto;
    border: 0;
    border-radius: 6px;
    background-color: #1f6fa8;
}

ul,
ol {
    margin: 0 0 1em;
    padding-left: 1.6em;
}

li {
    margin-bottom: 5px;
}

dl {
    margin: 0 0 1em;
}

dt {
    margin-top: 10px;
    color: #0a3d62;
    font-weight: bold;
}

dd {
    margin: 0 0 5px 25px;
}

blockquote {
    margin: 20px 0;
    padding: 15px 20px;
    border-left: 6px solid #f1c40f;
    background-color: #eef4f9;
    color: #243b53;
    font-style: italic;
    text-align: justify;
}

blockquote:first-letter {
    color: #0a3d62;
    font-size: 2.4em;
    font-weight: bold;
    line-height: 1;
}

abbr {
    color: #0a3d62;
    font-weight: bold;
    text-decoration: none;
    border-bottom: 2px dotted #1f6fa8;
    cursor: help;
}

address {
    margin-bottom: 10px;
    font-style: normal;
}

aside {
    display: block;
    margin-bottom: 20px;
    padding: 0 15px 10px;
    border: 2px solid #1f6fa8;
    border-radius: 8px;
    background-color: #eef4f9;
}

section {
    display: block;
}

figure {
    margin: 0;
}

figcaption {
    padding: 8px 4px 2px;
    color: #0a3d62;
    font-weight: bold;
    text-align: center;
}

small {
    color: #52606d;
}

code {
    padding: 1px 4px;
    border-radius: 3px;
    background-color: #eef4f9;          /* light panel color used across the site */
    color: #0a3d62;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.9em;
    overflow-wrap: break-word;          /* long commands and paths wrap on phones */
}

/* Contact page table (Assignment 10): one table, 2 columns x 11 rows */
table {
    width: 100%;
    max-width: 640px;
    margin: 0 auto 25px;                /* centers the table on the page */
    border: 4px solid #0a3d62;          /* navy border, same color as the nav bar */
    border-collapse: collapse;          /* single lines between cells */
    background-color: #eef4f9;          /* light panel color used across the site */
}

th {
    padding: 12px 15px;                 /* cell padding replaces the old cellpadding attribute */
    border-bottom: 4px solid #f1c40f;   /* gold rule, like the nav bar and footer */
    background-color: #0a3d62;
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.4em;
    letter-spacing: 1px;
    text-align: center;
}

td {
    padding: 6px 8px;                   /* phones: slim padding so the table fits a 320px screen */
    border-top: 1px solid #d9e2ec;
    vertical-align: middle;
}

td:first-child {                        /* column one: the field labels */
    width: 35%;
    color: #0a3d62;
    font-weight: bold;
    text-align: right;                  /* right-justified labels */
    white-space: nowrap;                /* keeps "* First Name" on one line on phones */
}

/* Contact form controls (Assignment 11) */
label {
    cursor: pointer;                    /* clicking a label selects its control */
}

input,
select,
textarea {
    font-family: inherit;
    font-size: 1em;
}

input[type="text"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #9fb3c8;
    border-radius: 4px;
    background-color: #ffffff;
    color: #1f2933;
}

input[type="radio"],
input[type="checkbox"] {
    margin: 4px 6px 4px 0;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #1f6fa8;
    outline: 2px solid #f1c40f;         /* gold focus ring for keyboard users */
}

textarea {
    resize: vertical;
}

footer {
    padding: 15px 20px;
    border-top: 4px solid #f1c40f;
    background-color: #082b45;
    color: #e8f1f8;
    font-size: 0.9em;
    text-align: center;
}

footer p {
    margin: 0 0 5px;
}

footer a:link,
footer a:visited {
    color: #f1c40f;
}

footer a:hover {
    color: #ffffff;
}


/* ---------- 2. ID SELECTORS (each used once per page) ---------- */

#wrapper {
    background-color: #ffffff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.45);   /* CSS3 */
}

#intro {
    overflow: auto;                     /* contains the floated headshot */
}

#goals {
    margin: 20px 0;
    padding: 5px 20px 10px;
    border-radius: 8px;
    background-color: #eef4f9;
}

#explore {
    overflow: auto;
}

#resumeHead {
    overflow: auto;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #d9e2ec;
}

#resumeColumns {
    margin-bottom: 20px;
}

#resumeColumns section {
    padding: 0 15px 10px;
    border: 2px solid #1f6fa8;
    border-radius: 8px;
}

#figureContainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;            /* keeps the gallery centered */
    max-width: 960px;
    margin: 0 auto;
}

#figureContainer figure {
    width: 100%;                        /* phones: one full column */
    max-width: 320px;
    margin: 0 0 20px;
    padding: 10px;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

#figureContainer img {
    width: 100%;
    aspect-ratio: 4 / 3;                /* every photo displays the same size */
    object-fit: cover;
    border-radius: 4px;
}

#contactForm {
    margin-bottom: 20px;
}


/* ---------- 3. CLASS SELECTORS (reusable) ---------- */

.siteName {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.4em;
    font-weight: bold;
    line-height: 1.1;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);   /* CSS3 */
}

.tagline {
    margin: 8px 0 0;
    color: #f1c40f;
    font-size: 1.1em;
    letter-spacing: 1px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.headshot {
    float: right;
    width: 35%;
    max-width: 220px;
    margin: 0 0 10px 15px;
    border: 4px solid #1f6fa8;
    border-radius: 8px;
}

.highlight {
    color: #1f6fa8;
    font-weight: bold;
}

.important {
    padding: 10px 15px;
    border-left: 5px solid #f1c40f;
    background-color: #fff8db;
}

.jumpLinks,
.byline,
.jobMeta,
.subtitle {
    text-align: left;
}

.jumpLinks {
    font-weight: bold;
}

.teaser {
    float: left;
    width: 45%;
    max-width: 300px;
    margin: 5px 20px 10px 0;
}

.teaser img {
    border: 4px solid #1f6fa8;
    border-radius: 8px;
}

.badge {
    display: block;
    margin: 10px auto;
}

.toTop {
    clear: both;
    text-align: right;
}

.toTop img {
    display: inline-block;
    width: 48px;
}

.jobMeta {
    margin-bottom: 5px;
    color: #52606d;
    font-style: italic;
}

.subtitle {
    margin: -10px 0 8px;
    color: #1f6fa8;
    font-size: 1.2em;
    font-weight: bold;
    text-align: left;
}

.courses {
    list-style-type: square;
}

.courses ul {
    margin-top: 5px;
    list-style-type: circle;
}

.recommenders {
    list-style-image: url('images/check.png');
}

.references {
    list-style-type: upper-roman;
}

.special {
    color: purple;
    font-size: 1.3em;
    font-weight: bold;
}

.byline {
    margin-bottom: 5px;
    color: #52606d;
    font-style: italic;
}

.newsRule {
    width: 100%;
    height: 4px;
    margin: 10px 0 15px;
    background-image: linear-gradient(to right, #f1c40f, #1f6fa8);   /* CSS3 */
}

.infobar {
    margin: 0 0 20px;
    padding: 8px 12px;
    color: #ffffff;
    background-color: #0a3d62;
    background-image: linear-gradient(to right, #082b45, #1f6fa8);   /* CSS3 */
    font-weight: bold;
    letter-spacing: 1px;
    text-align: center;
}

.newsPhoto {
    float: right;
    width: 30%;
    max-width: 180px;
    margin: 0 0 10px 15px;
    border: 4px solid #1f6fa8;
    border-radius: 8px;
}

.box {
    margin: 20px 0;
    padding: 5px 20px 10px;
    border: 2px solid blue;
    border-radius: 8px;
    background-color: #f5f9ff;
}

.milestones {
    list-style-image: url('images/shield.png');
}

.required {
    color: #c0392b;                     /* red asterisk marks a required field */
    font-weight: bold;
}

.button {
    margin: 6px 8px 6px 0;
    padding: 10px 14px;                 /* phones; wider at 640px */
    border: 0;
    border-radius: 4px;
    background-color: #0a3d62;
    color: #ffffff;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;   /* CSS3 */
}

.button:hover,
.button:focus {
    background-color: #1f6fa8;
}


/* Nav state 3 of 3: selected (the page you are on); set with class="selected" on the nav li */
nav li.selected a {
    color: #f1c40f;
    background-color: #082b45;
}


/* ---------- 4. MEDIA QUERIES ---------- */

/* 640px and wider: navigation turns horizontal, roomier contact table */
/* (paragraphs are justified at every width; see main p above) */
@media (min-width: 640px) {
    nav li {
        display: inline;
        border-bottom: 0;
    }

    nav a {
        display: inline-block;
    }

    td {
        padding: 8px 12px;
    }

    .button {
        padding: 10px 22px;
    }

    .siteName {
        font-size: 3em;
    }
}

/* 720px and wider: two-column gallery and two-column resume */
@media (min-width: 720px) {
    #figureContainer figure {
        width: 45%;
        max-width: none;
        margin: 0 2% 20px;
    }

    #resumeColumns {
        display: flex;
        align-items: flex-start;
        gap: 20px;
    }

    #resumeColumns aside {
        flex-shrink: 0;
        width: 30%;
        margin-bottom: 0;
    }

    #resumeColumns section {
        width: 70%;
    }
}

/* 1000px and wider: fixed 1000px page and three-column gallery */
@media (min-width: 1000px) {
    body {
        width: 1000px;
        max-width: 100%;
        margin: 20px auto;
    }

    nav a {
        font-size: 1.5em;
    }

    #figureContainer figure {
        width: 29%;
        margin: 0 2% 20px;
    }
}
