
html, body, #wrapper {
    width: 100%;
    height: auto;
}

body {
    margin: 0;
    padding: 0;
    background-color: #FFFFFF;
}

#wrapper {
    display: -webkit-flex;
    -webkit-flex-wrap: wrap;
    display: flex;
    flex-wrap: wrap;
    background-color: #FFFFFF;
    color: #333366;
    max-width: 1000px;
}

/* banner */
#banner {
    width: 100%;
    margin: 0% 2%;
    padding: 3%;
    border-bottom: 3px solid #333366;
}

#myName {
    display: block;
    width: 50%;
    font-family: "Lucida Grande", Arial, Helvetica, sans-serif;
    font-size: 2.2em;
    font-weight: normal;
    letter-spacing: 0.1em;
}

#media {
    display: block;
    width: 50%;
    font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
    font-size: 1.1em;
    font-style: italic;
    text-align: right;
    padding-top: 10px;
}


/* navigation bar and hamburger */
#navigation {
    width: 100%;
    margin-bottom: 30px;
    padding-left: 16px;
}

#navigation a {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 1.0em;
    color: #336699;
    text-decoration: none;
    line-height: 2.0em;
}

#navigation a:hover {
    color: #5588aa;
}

.navLabel {
    display: block;
    margin: 0px 12px;
}

/* hamburger */
#menu {
    display: block;
    width: 50px;
    margin: 15px;
}

.line {
    width: 36px;
    border-bottom: 3px solid #9999bb;
    margin-top: 6px;
}


/* footer */
#footer {
    clear: both;
    display: block;
    width: 100%;
    margin: 30px 5px 0px 5px;
    font-family: Arial, Helvetica, sans-serif;
    color: #333333;
    text-align: center;
    font-size: 0.8em;
    border-top: 1px solid #BBBBBB;
}


/* main content */
#pageContent {
    width: 100%;
    font-family: "Lucida Grande", Arial, Helvetica, sans-serif;
    color: #333366;
}

h1 {
    text-align: center;
    font-weight: normal;
    letter-spacing: 0.1em;
}

h2 {
    color: #333366;
    font-weight: normal;
    margin-left: 15px;
    text-align: left;
}

a {
    color: #337777;
    text-decoration: none;
}


/* index page */
#title {
    font-family: Verdana, Geneva, sans-serif;
    color: #333366;
    font-size: 0.8em;
    text-align: center;
}

#indexStatement {
    color: #333366;
    text-align: center;
    margin: 20px;
}

#imageBox {
    width: 95%;
    max-width: 100%;
    height: 350px;
    margin: 0px auto;
    background: url(../images/imageBox.jpg);
    -webkit-animation: backgroundScroll 30s linear infinite;
    animation: backgroundScroll 30s linear infinite;
    /* animation-name, -duration, -constant speed, -iteration */
}

#imageBox img {
    max-width: 850px;
}

@-webkit-keyframes backgroundScroll {
    from {background-position: 0% 0%;}
    to {background-position: 100% 0%;}
}

@keyframes backgroundScroll {
    from {background-position: 0% 0%;}
    to {background-position: 100% 0%;}
}

/* mainGallery */
.mainGallerySection {
    width: 100%;
    display: block;
    margin: 0px auto 20px auto;
    overflow: hidden;
}

a:hover h2 {
    color: #447799;
    text-decoration: none;
}

.galleryDescription {
    display: block;
    margin: 0px 36px;
    text-align: left;
}

.seriesThumbnail {
    display: block;
    text-align: center;
    margin: 10px auto 70px auto;
}


/* gallery pages */
.gallerySection {
    width: 100%;
    display: block;
}

.artworkThumbnail {
    text-align: center;
    margin: 0px auto 60px auto;
}

.img_tn {
    border: 2px solid #555555;
}

.img_tn:hover {
    border: 2px solid #447799;
}

.artworkTitle {
    font-family: "Lucida Grande", Arial, Helvetica, sans-serif;
    margin-top: 6px;
}


/* gallery page and artworkDisplay*/
#return, #simpleReturn {
    margin: 0px 20px 20px auto;
    text-align: right;
}

#return a {
    color: #336699;
    text-decoration: none;
    font-size: 0.9em;
    padding: 10px;
}

#return a:hover {
    color: #5588aa;
}

/* artworkDisplay*/
#imgDisplay_full, #imgDisplay_detail {
    margin: 0px 10px;
}

#imgDisplay_detail {
    padding-top: 40px;
}

#imgDisplay_full img, #imgDisplay_detail img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

#imgInfo {
    padding: 0px 40px;
}

#imgInfo, #imgDisplay_detail p {
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    color: #888888;
}

/* process page, about page, contact page */
#text_process, #text_statement, #biography, #contact {
    width: 100%;
    display: block;
    text-align: justify;
    margin-bottom: 80px;
}

#text_process p,#text_statement p, #text_biography p, #text_contact p {
    padding: 5px 10px;
}

#statement_img, #biography_img, #contact_img {
    font-family: Arial, Helvetica, sans-serif;
    color: #339999;
    text-align: center;
    line-height: 4px;
    font-size: 0.9em;
    padding: 10px;
}

#statement_img img {
    width: 100%;
    max-width: 400px;
    height: auto;
}

#biography_img img {
    max-width: 250px;
}

#contact_img img {
    width: 100%;
    max-width: 450px;
    height: auto;
}

#contact {
    text-align: left;
}

#c1 {
    padding-left: 40px;
}

/*  Table for resume information */
#divTable {
    clear: both;
    margin: 30px auto 0px auto;
    width: 90%;
    height: auto;
    position: static;
}

td {
    padding: 3px 10px 3px 0px;
}
td.year {
    width: 70px;
    vertical-align:top;
    text-align: right;
}

td.location {
    text-align: left;
}

td span {
    font-style: italic;
}

#divTable h2 {
    margin-left: 12px;
}

p span {
    font-style: italic;
}

.info {
    margin-left: 20px;
}

@media screen and (min-width: 365px) {
    #media {
        float: right;
        margin-top: -35px;
    }
}

/* Don't forget to change javascript function makeHamburger() */
@media screen and (min-width: 550px) {
    #banner {
        margin-top: 20px;
    }

    #navigation {
        text-align: center;
        padding-left: 0px;
    }

    .navLabel {
        display: inline-block;
    }

    .seriesThumbnail {
        margin-bottom: 10px;
    }

    #simpleReturn {
        display: none;
    }

    #text_process p,#text_statement p, #text_biography p {
        padding: 5px 50px;
    }

    #contact {
        width: 95%;
        margin: 0 auto;
    }

    #text_contact {
        width: 47%;
        display: inline-block;
        margin-left: 20px;
        margin-top: 30px;
    }

    #contact_img {
        display: inline-block;
        float: left;
        width: 47%;
    }
}

@media screen and (min-width: 670px) {
    #indexStatement {
        padding: 10px 80px;
    }

    #imageBox {
        max-width: 700px;
    }

    .mainGallerySection {
        clear: both;
        width: 100%;
        margin: 0px auto 20px auto;
    }

    .mainGallerySection h3 {
        margin-left: 0px;
    }

    .seriesThumbnail {
        display: inline-block;
        width: 50%;
        float: left;
    }

    .galleryDescription {
        width: 40%;
        display: inline-block;
        margin-top: 30px;
        margin-left: 0px;
    }

    h2 {
        margin-left: 50px;
    }

    .gallerySection {
        width:  90%;
        margin: auto;
    }

    .artworkThumbnail {
        display: inline-block;
        width: 340px;
    }

    #biography_img {
        float: left;
        padding: 0px 40px 60px 50px;
    }
}

@media screen and (min-width: 900px) {
    #wrapper {
        max-width: 900px;
        margin: 0px auto;
    }

    .artworkThumbnail {
        margin-left: 20px;
    }
}
