/*
    Author: Adam Sylvester
    File Name: styles.css
    Final Project
*/


/* CSS Reset */
body, header, nav, main, footer, h1, h2, h3,
ul, figure, figcaption, section, article {
    margin: 0;
    padding: 0;
    border: 0;
}


/* Style rules for body and images */

body {
    background-color: #f4f1e8;
    color: #202522;
}

img {
    max-width: 100%;
    display: block;
}


/* Style rules for home page header */

.home-header {
    background-image: url("../images/savannah_backdrop.jpg");
    background-size: cover;
    background-position: center;
    min-height: 350px;

    display: flex;
    justify-content: center;
    align-items: center;
}


/* Style rules for text over background image */

.hero-text {
    background-color: rgba(24, 51, 43, 0.8);
    color: #ffffff;
    text-align: center;
    padding: 5%;
    width: 80%;
}

.hero-text h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.5em;
}

.hero-text h3 {
    font-family: Arial, sans-serif;
    font-weight: normal;
    margin-top: 2%;
}


/* Style rules for navigation */

nav {
    background-color: #18332b;
}

nav ul {
    list-style-type: none;
    text-align: center;
}

nav li {
    display: block;
    border-top: 1px solid #9aaa91;
    font-family: Arial, sans-serif;
    font-weight: bold;
}

nav li a {
    display: block;
    color: #ffffff;
    padding: 0.75em;
    text-decoration: none;
}


/* Style rules for main content */

main {
    padding: 4%;
    font-family: Arial, sans-serif;
}

.page-title {
    text-align: center;
    color: #18332b;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2em;
    margin-bottom: 1%;
}

.page-intro {
    text-align: center;
    margin: 0 auto 4%;
    max-width: 700px;
    line-height: 1.5;
}


/* Home page introduction */

.intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5%;
}

.intro h2 {
    color: #18332b;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2em;
    margin-bottom: 2%;
}

.intro p {
    line-height: 1.5;
    margin-bottom: 2%;
}


/* Home page category sections */

.category {
    background-color: #ffffff;
    margin: 4% auto;
    padding-bottom: 4%;
    max-width: 450px;
    text-align: center;

    border-bottom: 5px solid #c5a46d;
    box-shadow: 4px 4px 10px #aaa;
}

.category h2 {
    margin-top: 3%;
}

.category h2 a {
    color: #18332b;
    text-decoration: none;
}

.category p {
    padding: 2% 5%;
}


/* Gallery */

figure {
    background-color: #ffffff;
    border: 1px solid #9aaa91;
    box-shadow: 4px 4px 10px #aaa;
    max-width: 450px;
    margin: 4% auto;
}

figure img {
    width: 100%;
}

figcaption {
    background-color: #ffffff;
    color: #18332b;
    text-align: center;
    padding: 4%;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.1em;
}


/* Footer */

footer {
    background-color: #202522;
    color: #ffffff;
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 0.85em;
    padding: 2%;
}

footer p {
    margin: 0.5%;
}


/* Media Query for Tablet Viewport */

@media screen and (min-width: 620px) {

    .home-header {
        min-height: 450px;
    }

    .hero-text {
        width: 55%;
        padding: 3%;
    }

    .hero-text h1 {
        font-size: 3em;
    }

    nav li {
        display: inline-block;
        border-top: none;
    }

    nav li a {
        padding: 0.75em 1em;
    }

    .gallery-grid {
        display: grid;
        grid-template-columns: auto auto;
        grid-gap: 20px;
    }

    .category-grid {
        display: grid;
        grid-template-columns: auto auto auto;
        grid-gap: 20px;
    }

}


/* Media Query for Desktop Viewport */

@media screen and (min-width: 1000px) {

    #wrapper {
        max-width: 1400px;
        margin: 0 auto;
        background-color: #f4f1e8;
    }

    .home-header {
        min-height: 550px;
    }

    .hero-text {
        width: 40%;
    }

    .hero-text h1 {
        font-size: 4em;
    }

    nav li a {
        padding: 0.75em 2em;
    }

    nav li a:hover {
        background-color: #9aaa91;
        color: #18332b;
    }

    main {
        padding: 3%;
    }

    .gallery-grid {
        grid-template-columns: auto auto auto;
        grid-gap: 30px;
    }

}


/* Media Query for Large Desktop Viewports */

@media screen and (min-width: 1921px) {

    body {
        background: linear-gradient(#f4f1e8, #9aaa91);
    }

}


/* Media Query for Print */

@media print {

    body {
        background-color: white;
        color: black;
    }

    nav {
        display: none;
    }

}

/* About page */

.about-page {
    background-color: #ffffff;
    max-width: 800px;
    margin: 3% auto;
    padding: 4%;
    text-align: center;
    border-left: 5px solid #c5a46d;
    box-shadow: 4px 4px 10px #aaa;
}

.about-page h2 {
    color: #18332b;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2em;
    margin-bottom: 3%;
}

.about-page p {
    line-height: 1.6;
    margin-bottom: 3%;
}

.about-page a {
    color: #18332b;
    font-weight: bold;
    text-decoration: none;
}

.about-page a:hover {
    text-decoration: underline;
}