/* 1. Element selectors */

html {
    background-color: #252A34;
}

body {
    width: 1000px;
    max-width: 100%;
    margin: auto;
    background-color: #252A34;
    background-image: url("images/dark-gradient-background-abstract-soft.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    font-family: Arial, Helvetica, sans-serif;
}

header {
    padding: 5% 5% 12px;
    color: #DEDEDE;
    text-align: center;
    background-image: url("images/Banner-Icon.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

nav {
    width: 100%;
    margin: 0;
    padding: 8px 0 16px;
    text-align: center;
    color: #DEDEDE;
    background-color: transparent;
    background-image: url("images/Banner-Icon.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border-top: 1px solid #9A9DA3;
    border-bottom: 1px solid #9A9DA3;
    font-size: 1em;
}

nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

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

nav a {
    position: relative;
    display: block;
    width: 30%;
    margin: 0 auto 6px;
    color: #DEDEDE;
    text-decoration: none;
}

nav li a {
    border: 2px solid #AAA;
    padding: 6px;
}

a:link {
    color: #006;
}

a:visited {
    color: #369;
}

a:hover {
    color: #C9B9FF;
}

a:active {
    color: #C9B9FF;
}

nav a:link,
nav a:visited {
    color: #DEDEDE;
}

nav a:hover,
nav a:active {
    color: #C9B9FF;
    text-decoration: none;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #C9B9FF;
}

nav a:hover::after {
    width: 100%;
}

@media only screen and (min-width: 640px) {
    nav li {
        display: inline;
        padding: 0 18px;
    }

    nav a {
        display: inline-block;
        width: auto;
        margin: 0;
    }

    nav li a {
        border: 0;
        padding: 0 0 4px;
    }
}

main {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
    margin-top: 20px;
    color: #1F1F1F;
    background-color: #DEDEDE;
    border: 2px solid #54565A;
}

main > h1 {
    flex: 0 0 100%;
}

main address {
    flex: 0 0 100%;
    padding: 14px;
    box-sizing: border-box;
}

aside {
    flex: 0 0 100%;
    padding: 14px;
    box-sizing: border-box;
    color: #1F1F1F;
}

aside h2 {
    margin-top: 0;
}

section {
    flex: 0 0 100%;
    padding: 14px;
    box-sizing: border-box;
    color: #1F1F1F;
}

section > *:first-child {
    margin-top: 0;
}

section ul {
    margin: 0 0 16px;
    padding-left: 0;
    list-style-position: inside;
    font-size: 14px;
    line-height: 1.5;
}

section hr {
    width: 100%;
    margin: 16px 0 0;
}

/* Two columns on desktop, stacked on narrow screens */
@media (min-width: 800px) {
    main address {
        flex: 0 0 75%;
    }

    aside {
        flex: 0 0 25%;
        text-align: right;
    }

    aside h2 {
        text-align: right;
    }

    section {
        flex: 0 0 75%;
    }

    .headshot {
        margin-left: auto;
    }
}

footer {
    display: flex;
    justify-content: space-between;
    padding: 5%;
    margin-top: 20px;
    color: #DEDEDE;
    font-size: 14px;
    background-image: url("images/Banner-Icon.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

h1 {
    color: #252A34;
    text-align: center;
    font-family: "Trebuchet MS", Helvetica, sans-serif;
}

header h1 {
    color: #DEDEDE;
}

h2 {
    color: #54565A;
    text-align: left;
    font-size: 20px;
    font-family: "Trebuchet MS", Helvetica, sans-serif;
    font-weight: bold;
}

h3 {
    color: #54565A;
    text-align: left;
    font-size: 18px;
    font-family: "Trebuchet MS", Helvetica, sans-serif;
}

p {
    font-size: 14px;
    line-height: 1.5;
}

blockquote {
    text-align: justify;
}

address {
    font-style: normal;
    font-size: 14px;
    line-height: 1.8;
}

abbr {
    text-decoration: underline dotted;
    cursor: help;
}

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

figure {
    display: inline-block;
    width: 320px;
    max-width: 100%;
    margin: 5px;
    text-align: center;
}

hr {
    width: 90%;
    height: 2px;
    border: none;
    background-color: #54565A;
}

/* 2. ID selectors */

#wrapper {
    width: 100%;
    margin: auto;
}

#column1 {
    flex: 1 1 100%;
    color: #1F1F1F;
}

#column2 {
    color: #1F1F1F;
}

#figureContainer {
    flex: 1 1 100%;
    text-align: center;
}

/* Portfolio columns: stacked on narrow screens, side by side once two 320px figures fit */
@media (min-width: 720px) {
    #figureContainer #column1,
    #figureContainer #column2 {
        width: 50%;
    }

    #figureContainer #column1 {
        float: left;
    }

    #figureContainer #column2 {
        float: right;
    }
}

#contact {
    width: 45%;
    line-height: 1.8;
}

#social {
    width: 45%;
    line-height: 1.8;
    text-align: right;
}

#contact a,
#social a {
    color: #DEDEDE;
}

#obsidian-logo {
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    margin: 0 0 0 5px;
    vertical-align: middle;
}

/* 3. Class selectors */

/* Customized heading used for every category on every page */
.category {
    color: #54565A;
    font-family: "Trebuchet MS", Helvetica, sans-serif;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Bordered box around a block of text */
.box {
    padding: 0 15px;
    border: 2px solid #54565A;
}

/* Enlarged first letter of each blockquote (About Me page only) */
blockquote.drop-cap:first-letter {
    font-size: 1.8em;
    font-weight: bold;
}

/* Byline under a page heading */
.byline {
    margin-top: -10px;
    color: #54565A;
    font-style: italic;
    text-align: center;
}

/* Thick rounded bar under the byline */
.byline-rule {
    width: 40%;
    height: 5px;
    border-radius: 4px;
}

/* Dark banner link with light print */
.infobar {
    display: block;
    margin: 20px 0;
    padding: 12px;
    border-radius: 4px;
    background-color: #252A34;
    background-image: linear-gradient(to right, #252A34, #54565A);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.35);
    font-family: "Trebuchet MS", Helvetica, sans-serif;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 1px;
    text-align: center;
    text-transform: uppercase;
}

a.infobar:link,
a.infobar:visited {
    color: #DEDEDE;
    text-decoration: none;
}

a.infobar:hover,
a.infobar:active {
    color: #C9B9FF;
}

/* Centered category heading that links to another page */
.category-link {
    text-align: center;
}

.category-link a:link,
.category-link a:visited {
    color: #54565A;
    text-decoration: none;
}

.category-link a:hover,
.category-link a:active {
    color: #54565A;
    text-decoration: underline;
}

/* Scales with the layout instead of fixed img width/height attributes */
.headshot {
    width: 100%;
    max-width: 180px;
    height: auto;
    margin: 0;
    border: 2px solid #54565A;
}

.introduction {
    text-align: center;
}

.keyterm {
    color: purple;
    font-weight: bold;
}

.selected {
    color: #C0C0C0;
}

nav a.selected:link,
nav a.selected:visited {
    color: #C0C0C0;
}

nav a.selected:hover,
nav a.selected:active {
    color: #C0C0C0;
}

nav a.selected::after {
    width: 100%;
    background-color: #C0C0C0;
}
