/* Table of Contents
    S1. Header and Nav
        S1a. Navigation
    S2. General page text
    S3. About Me
    S4. My Work
    S5. Contact Me
    S6. Footer
    S7. Media queries
*/

:root {
    --cat-1: #f8a7ef;
    --cat-2: #fff7dc;
    --text-1: #117788;
    --background-1: #a7f7db;
    --background-2: #6d34ad;
}

/* S1. Header and Nav */
header {
    background-color: var(--background-1);
    margin: 0;
    padding-bottom: 5px;
}

header h1 {
    color: var(--background-2);
    text-align: center;
    padding-top: 10px;
    font-family: "Lucida Bright", Georgia, "Times New Roman", serif;
}

.portrait {
    width: 75%;
    margin: 0 auto;
}

.portrait img {
    max-width: 100%;
    border: 5px solid var(--background-2);
}

/* S1a. Navigation */
.nav-cats {
    display: flex;
}

.nav-cats ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0 auto;
}

.nav-cats li {
    width: 200px;
    height: 52px;
    background-image: url(./images/nav-kitty-1.png);
    margin-top: 5px;
    margin-bottom: 5px;
    text-align: center;
}

.nav-cats a {
    text-decoration: none;
    text-align: center;
    position: relative;
    right: -20px;
    font-size: 24px;
    bottom: -12px;
    color: var(--background-2);
    font-family: "Lucida Bright", Georgia, "Times New Roman", serif;
}

.nav-cats li:hover {
    background-image: url(./images/nav-kitty-2.png);
}

.nav-cats li:active {
    background-image: url(./images/nav-kitty-3.png);
}

/* S2. General Page Text */
article {
    margin: 0;
}

.article-header {
    background-color: var(--background-2);
    color: var(--background-1);
    padding: 7px;
    font-family: "Lucida Bright", Georgia, "Times New Roman", serif;
    font-style: italic;
    margin: 0 0 20px 0;
}

p {
    font-family: "Trebuchet MS", "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Tahoma, sans-serif;
    font-size: 18px;
    line-height: 1.5;
}

.sub-header {
    color: #000000;
    font-size: 20px;
    font-family: "Lucida Bright", Georgia, "Times New Roman", serif;
    font-style: italic;
    width: 90%;
    border-bottom: 3px solid #000000;
    margin-left: 5%;
    padding-bottom: 7px;
}

/* S3. About Me */
.about-me {
    background-color: var(--cat-2);
    padding-bottom: 7px;
    margin: 0;
}

.about-me p {
    padding: 0 15px;
    color: var(--text-1);
}

/* S4. My Work */
.my-work {
    background-color: var(--cat-1);
}

.link-box-1 {
    position: relative;
    width: 90%;
    margin: 0 auto;
    padding-bottom: 40px;
}

.link-box-2 {
    position: relative;
    width: 90%;
    margin: 0 auto;
    padding-bottom: 40px;
}

.my-work a {
    text-decoration: none;
}

.work-image-1 {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    padding: 0;
}

.work-image-2 {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 15px;
    padding: 0;
}

.program-header {
    padding: 10px;
    margin: 0;
    font-family: "Trebuchet MS", "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Tahoma, sans-serif;
    color: var(--background-2);
    background-color: var(--cat-2);
    position: absolute;
    bottom: 0;
    left: 0;
    border-radius: 0 15px;
    bottom: 44px;
    border-top: 5px solid var(--background-2);
    border-right: 5px solid var(--background-2);
}

/* S5. Contact Me */
.contact {
    background-color: var(--cat-2);
    padding-bottom: 20px;
}

address {
    font-family: "Trebuchet MS", "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Tahoma, sans-serif;
    color: var(--text-1);
    font-style: normal;
    font-size: 18px;
    line-height: 1.5;
    padding-left: 20px;
}

/* S6. Footer */
footer {
    background-color: var(--background-1);
    font-size: 16px;
    color: var(--background-2);
}

footer p {
    margin: 0;
    padding-top: 5px;
    padding-left: 5px;
}

/* S7. Media Queries */
@media screen and (min-width: 450px) {
    header {
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
        height: 300px;
        justify-content: center;
    }
    
    .portrait {
        width: 200px;
        order: 1;
    }

    h1 {
        order: 2;
    }

    nav {
        order: 3;
    }
}

@media screen and (min-width: 768px) {
    .article-header {
        padding: 10px;
    }

    .my-work {
        display: flex;
        flex-wrap: wrap;
    }

    .my-work h2 {
        width: 100%;
        margin-bottom: 20px;
    }

    .flex-link-1 {
        width: 100%;
        margin: 0;
    }

    .flex-link-2 {
        width: 50%;
        margin: 0;
    }

    .link-box-1 {
        width: 95%;
    }
}

@media screen and (min-width: 1024px) {
    header {
        height: auto;
        flex-direction: row;
        flex-wrap: nowrap;
        height: 280px;
        justify-content: space-between;
    }

    .nav-cats ul {
        display: flex;
        align-self: flex-end;
    }

    .nav-cats li {
        margin: 10px;
    }

    .portrait {
        justify-self: flex-start;
        align-self: center;
        margin: 10px;
    }

    header h1 {
        margin: 10px;
        align-self: flex-end;
        justify-self: flex-start;
    }
}