/* Adam Beggy - External Stylesheet for CGS2820C Assignments */

/* Tags and HTML elements are defined below */

* {
    box-sizing: border-box;
}

body {
    width: 1000px;
    max-width: 100%;
    margin: auto;
    background-color: #eaf7ff;
    background-image: url('images/background-alaska.jpg');
    background-size: cover;
    background-attachment: fixed;
    color: #12345b;
    font-family: Arial, Helvetica, sans-serif;
}

header {
    width: 100%;
    background-image: url('images/banner-alaska.jpg');
    background-size: cover;
    background-position: center;
    padding: 45px 20px;
    border: 2px solid #1676c4;
    margin-bottom: 20px;
}

h1 {
    color: #073b66;
    text-shadow: 1px 1px 2px #ffffff;
}

h2 {
    color: #0b4f8a;
    border-bottom: 2px solid #f28c18;
    padding-bottom: 5px;
}

h3 {
    color: #073b66;
    margin-bottom: 5px;
}

header h1 {
    text-align: left;
}

header h2 {
    color: #073b66;
    text-align: center;
    text-shadow: 1px 1px 2px #ffffff;
    border-bottom: 0;
}

nav {
    background-color: #ffffff;
    padding: 10px;
    text-align: center;
    border-top: 3px solid #f28c18;
    border-bottom: 3px solid #f2c318;
}

nav ul {
    margin: 0;
    padding: 0;
}

nav li {
    display: inline;
    list-style: none;
}

nav a {
    color: #073b66;
    background-color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    padding: 8px 14px;
}

nav a:hover {
    color: #ffffff;
    background-color: #1676c4;
}

nav a.selected {
    color: #ffffff;
    background-color: #d96d00;
}

main {
    width: 100%;
    background-color: #ffffff;
    color: #173b61;
    padding: 20px;
    margin: 20px auto;
    border: 2px solid #1676c4;
    overflow: auto;
}

p {
    line-height: 1.5;
}

a {
    color: #0b4f8a;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
}

hr {
    width: 60%;
    height: 5px;
    background-color: #f28c18;
    border: 0;
}

svg {
    width: 100%;
    height: 160px;
    background-color: #eef8ff;
    border: 2px solid #1676c4;
}

footer {
    width: 100%;
    background-color: #ffffff;
    color: #173b61;
    padding: 15px;
    text-align: center;
    border: 2px solid #1676c4;
    margin-top: 20px;
}

footer a {
    color: #0b4f8a;
}

address {
    font-style: normal;
    line-height: 1.6;
    margin-bottom: 20px;
}

abbr {
    text-decoration: underline dotted;
    color: #d96d00;
    font-weight: bold;
    cursor: help;
}

/* ID selectors are defined below */

#wrapper {
    background-color: #eaf7ff;
}

#contact {
    background-color: #eef8ff;
    padding: 5px;
}

#resume-heading {
    text-align: center;
    margin-bottom: 5px;
}

#resume-contact {
    text-align: center;
    background-color: #eef8ff;
    border: 1px solid #1676c4;
    padding: 12px;
    margin-bottom: 20px;
}

/* Class selectors are defined below */

.site-name {
    color: #073b66;
    text-shadow: 1px 1px 2px #ffffff;
    text-align: left;
    font-size: 2em;
    font-weight: bold;
    margin: 0.67em 0;
}


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

.returntop {
    text-align: center;
}

.returntop img {
    width: 100px;
}

.resume-columns {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.resume-left {
    width: 32%;
    padding: 15px;
    background-color: #eef8ff;
    border: 2px solid #1676c4;
}

.resume-right {
    width: 68%;
    padding: 15px;
    background-color: #ffffff;
    border: 2px solid #1676c4;
}

.resume-left ul,
.resume-right ul {
    line-height: 1.5;
    padding-left: 22px;
}

.resume-left li,
.resume-right li {
    margin-bottom: 6px;
}

.job {
    margin-bottom: 22px;
}

.job-date {
    color: #d96d00;
    font-weight: bold;
}

.resume-logo {
    width: 220px;
    margin: 10px auto 20px auto;
}

.project {
    margin-bottom: 16px;
}

.small-note {
    font-size: 0.9em;
}



/* Assignment 7 - Lists and Special Characters */

.course-list {
    list-style-type: square;
    line-height: 1.6;
    padding-left: 2em;
}

.course-list li {
    margin-bottom: 6px;
}

.recommendation-list {
    list-style-image: url('images/list-bullet.png');
    line-height: 1.6;
    padding-left: 2em;
}

.recommendation-list li {
    margin-bottom: 6px;
}

.reference-list {
    list-style-type: upper-roman;
    line-height: 1.15;
    padding-left: 2.5em;
}

.reference-list li {
    margin-bottom: 8px;
}

.skills-list {
    width: 95%;
    margin: 0 auto 20px auto;
}

.skills-list dt {
    color: #0b4f8a;
    font-weight: bold;
    margin-top: 12px;
}

.skills-list dd {
    margin-left: 2em;
    line-height: 1.5;
}

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

.character-demo {
    padding: 10px;
}

.measurement-example {
    width: 90%;
    font-size: 1em;
    padding: 12px;
    margin: 10px auto;
    border: 2px solid #1676c4;
    background-color: #eef8ff;
}

@media screen and (max-width: 700px) {
    body {
        width: 100%;
        padding: 8px;
    }

    .resume-columns {
        display: block;
    }

    .resume-left,
    .resume-right {
        width: 100%;
        margin-bottom: 15px;
    }

    nav li {
        display: block;
        margin: 4px 0;
    }

    nav a {
        display: block;
    }
}

/* Assignment 8 - Responsive Portfolio */

#figureContainer {
    width: 100%;
    text-align: center;
    margin: 20px auto;
}

.portfolio-figure {
    width: 45%;
    max-width: 430px;
    display: inline-block;
    vertical-align: top;
    margin: 10px;
    background-color: #eef8ff;
    border: 2px solid #1676c4;
    padding: 10px;
}

.portfolio-figure img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 10px auto;
    border: 1px solid #1676c4;
}

.portfolio-figure figcaption {
    line-height: 1.5;
    text-align: left;
}

.portfolio-figure figcaption strong {
    color: #073b66;
}

@media screen and (max-width: 700px) {

    .portfolio-figure {
        width: 100%;
        max-width: 100%;
        margin: 10px 0;
    }

}

/* Assignment 9 - Newsletter */

.newsletter-date,
.newsletter-byline {
    text-align: center;
    font-weight: bold;
}

.newsletter-date {
    color: #d96d00;
    margin-bottom: 4px;
}

.newsletter-byline {
    color: #073b66;
    margin-top: 0;
}

.newsletter-text {
    text-align: justify;
}

.infobar {
    color: #ffffff;
    background-color: #073b66;
    padding: 14px 18px;
    margin: 20px 0;
    font-weight: bold;
    text-align: center;
    border-radius: 12px;
}

.box {
    background-color: #eef8ff;
    border: 2px solid #1676c4;
    padding: 18px;
    margin: 24px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.20);

    /* CSS3 feature 1 not covered in class: transition */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* CSS3 feature 2 not covered in class: transform */
.box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
}

.box h2 {
    margin-top: 0;
}

blockquote {
    margin: 10px 20px;
    line-height: 1.6;
    text-align: justify;
}

blockquote:first-letter {
    color: #d96d00;
    font-size: 3em;
    font-weight: bold;
    line-height: 0.8;
}

.newsletter-list {
    list-style-image: url('images/list-bullet.png');
    line-height: 1.7;
    padding-left: 2.5em;
}

.newsletter-list li {
    margin-bottom: 8px;
}

