/* BASIC STYLES */

* {
    box-sizing: border-box;
}

html {
    background: url(../images/circles-light.png) no-repeat center center fixed;
    background-size: cover;
    max-height: 100%;
    max-width: 100%;
    height: 100%;
}

body {
    height: 100%;
    position: relative;
    font-family: 'Arial', 'Helvetica Neue', 'Helvetica', sans-serif;
    color: #777777;
}

h1,
h2,
h3,
h4 {
    font-family: 'Georgia', 'Times', 'Times New Roman', serif;
}

h1 {
    background-color: #4aaaa5;
    color: #ffffff;
    font-size: 1.6em;
    font-weight: bold;
    display: inline-block;
    height: 97px;
    padding: 25px;
    line-height: 48px;
}

h2,
h3 {
    color: #4aaaa5;
    font-weight: bold;
}

h2 {
    font-size: 1.5em;
    margin: 40px 30px 20px 30px;
}

h3 {
    text-align: center;
    font-size: 1.3em;
    margin: 20px 30px;
}

p {
    margin: 0 20px 10px 30px;
    font-size: 1.1em;
    line-height: 24pt;
}

hr {
    background-color: #dddddd;
    border: none;
    height: 3px;
    margin: 20px 30px;
}

a {
    text-decoration: none;
    color: #777777;
    font-weight: bold;
}

a:visited {
    color: #777777;
}

a:hover {
    color: #4aaaa5;
    transition: all ease-in-out .2s;
}

a:active {
    color: #4aaaa5;
}



/* WRAPPER */

.wrapper {
    box-sizing: border-box;
    min-height: 100%;
    padding: 0 0 60px;
    position: relative;
    animation: fadeIn 1.25s ease-in-out 0.25s;
    animation-fill-mode: backwards;
}




/* HEADER */

header {
    width: 100%;
    height: 100px;
    margin-top: 0px;
    margin-right: auto;
    margin-bottom: 0px;
    margin-left: auto;
    padding-bottom: 10px;
    background-color: #ffffff;
    border-bottom: #cccccc solid 3px;
}

.header-inner {
    width: 960px;
    max-width: 960px;
    margin: 0 auto 0 auto;
}




/* MAIN NAV */

.main-nav {
    float: right;
}

.main-nav ul {
    display: inline;
    text-align: center;
    list-style: none;
}

.main-nav li {
    display: inline;
}

.main-nav a {
    border: none;
    display: inline-block;
    margin: 25px 15px;
    text-decoration: none;
    height: auto;
    width: auto;
    line-height: 48px;
    font-weight: normal;
}

.main-nav a:hover {
    margin: 5px 15px;
    font-style: italic;
    border-top: #4aaaa5 solid 10px;
    border-bottom: #4aaaa5 solid 10px;
    transition: all ease-in-out .2s;
}




/* MIDDLE SECTION */

.middle {
    position: relative;
    width: 960px;
    margin: 0 auto 0 auto;
}

.middle:after {
    content: "";
    display: block;
    height: 30px;
}

main {
    width: 650px;
    background-color: #ffffff;
    margin: 30px 0 50px 0;
    overflow: hidden;
    border: #dddddd solid 1px;
}

img.left {
    float: left;
    margin: 10px 20px 10px 30px;
}

img.right {
    float: right;
    margin: 10px 30px 10px 20px;
}

img.landscape {
    max-width: 338px;
}

img.portrait {
    max-height: 338px;
}

aside {
    position: absolute;
    top: 0;
    right: 0;
    width: 270px;
    margin: 0 0 30px 0;
    padding-bottom: 30px;
    background-color: #ffffff;
    overflow: hidden;
    border: #dddddd solid 1px;
}




/* SOCIAL NAV */

.social-nav {
    text-align: center;
}

.social-nav ul {
    display: inline;
    text-align: center;
    list-style: none;
}

.social-nav li {
    display: inline;
}

.social-nav a {
    display: inline-block;
    margin: 5px;
    text-decoration: none;
}

.social-nav img {
    width: 60px;
    height: 60px;
}

.social-nav img:hover {
    border-radius: 15px;
    transition: all .2s;
    background-color: #4aaaa5;
    border: #4aaaa5 solid 2px;
    transition: all ease-in-out .2s;
}




/* PORTFOLIO MODULES */

.portfolio-module-holder {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    max-width: 650px;
    margin: 0 auto 15px auto;
    width: 90%;
}

.portfolio-module {
    position: relative;
    box-sizing: border-box;
    display: inline-block;
    width: 100%;
    max-width: 275px;
    max-height: 183px;
    min-height: auto;
    margin: 20px 0;
    overflow: hidden;
}

.portfolio-title {
    position: relative;
    text-align: center;
    line-height: 55px;
    width: 275px;
    height: 183px;
}

.portfolio-title a {
    display: inline-block;
    background-color: #4aaaa5;
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    height: 55px;
    width: 100%;
    color: #ffffff;
    font-size: 1.1em;
}

.portfolio-title a:hover {
    background: url(../images/circles-light.png) no-repeat center center fixed;
    background-size: cover;
    color: #4aaaa5;
    transition: all ease-in-out .3s;
}

.portfolio-title a:hover::before {
    content: "";
    height: 10px;
    width: 100%;
    background-color: #4aaaa5;
    position: absolute;
    top: -10px;
    right: 0;
    left: 0;
    transition: all ease-in-out .3s;
}

.portfolio-title a:hover::after {
    content: "";
    height: 10px;
    width: 100%;
    background-color: #4aaaa5;
    position: absolute;
    bottom: -10px;
    right: 0;
    left: 0;
    transition: all ease-in-out .3s;
}

.portfolio-module img {
    width: 275px;
    height: 183px;
}


/* FADE IN ANIMATION TIMING */

.one {
    animation: fadeIn 1.25s ease-in-out 0.5s;
    animation-fill-mode: backwards;
}

.two {
    animation: fadeIn 1.25s ease-in-out 0.75s;
    animation-fill-mode: backwards;
}

.three {
    animation: fadeIn 1.25s ease-in-out 1s;
    animation-fill-mode: backwards;
}

.four {
    animation: fadeIn 1.25s ease-in-out 1.25s;
    animation-fill-mode: backwards;
}

.five {
    animation: fadeIn 1.25s ease-in-out 1.5s;
    animation-fill-mode: backwards;
}

.six {
    animation: fadeIn 1.25s ease-in-out 1.75s;
    animation-fill-mode: backwards;
}

.seven {
    animation: fadeIn 1.25s ease-in-out 2s;
    animation-fill-mode: backwards;
}

.eight {
    animation: fadeIn 1.25s ease-in-out 2.25s;
    animation-fill-mode: backwards;
}



/* FORM */

form {
    margin: 10px 30px;
}

input,
textarea {
    display: block;
    margin: 8px 0 20px 0;
    font-family: 'Arial', 'Helvetica Neue', 'Helvetica', sans-serif;
    width: 100%;
    max-width: 100%;
    padding: 10px;
    color: #777777;
    border: #dddddd solid 1px;
}

input:focus,
textarea:focus {
    border: #4aaaa5 solid 1px;
}

textarea {
    min-width: 100%;
}

label {
    font-weight: normal;
}

::placeholder {
    color: #b7b7ba;
}

.submit {
    box-sizing: border-box;
    display: inline-block;
    width: 100px;
    height: 40px;
    padding: 10px 25px;
    font-size: 14px;
    background-color: #4aaaa5;
    color: #ffffff;
    border: none;
}

.submit:hover {
    background-color: #ffffff;
    color: #4aaaa5;
    box-shadow: 2px 2px #4aaaa5;
    padding: 8px 23px;
    border: #4aaaa5 solid 2px;
    cursor: pointer;
}

.submit:active {
    background-color: #4aaaa5;
    color: #ffffff;
    box-shadow: 2px 2px transparent;
    padding: 10px 25px;
    border: none;
}




/* FOOTER */

footer {
    position: absolute;
    background-color: #666666;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100px;
    margin: 0 auto 0 auto;
    padding-top: 10px;
    padding-bottom: 10px;
    clear: both;
    text-align: center;
    border-top: #4aaaa5 solid 10px;
}

footer p {
    text-align: center;
    font-size: 1.2em;
    line-height: 70px;
    color: #ffffff;
}




/* ANIMATIONS */

@keyframes fadeIn {

    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}




/* MEDIA QUERIES */

@media screen and (max-width: 980px) {
    .middle,
    .header-inner {
        width: 100%;
    }
    img.left,
    img.right {
        float: none;
        margin: 30px auto;
        display: block;
    }
    img.portrait {
        max-height: none;
        max-width: 338px;
    }
    h1 {
        margin-left: 10%;
    }
    p {
        margin: 0 30px 0 30px;
    }
    main p:last-child {
        margin-bottom: 30px;
    }
    main {
        max-width: 400px;
        margin-left: 10%;
    }
    main br {
        content: ' ';
    }
    aside {
        right: 13%;
    }
    .main-nav {
        margin-right: 13%;
    }
    .portfolio-module-holder {
        justify-content: space-around;
    }
    .portfolio-module {
        display: block;
        max-width: 338px;
        max-height: none;
        margin: 20px auto;
    }
    .portfolio-module img {
        width: 338px;
        height: auto;
    }
    .portfolio-title {
        width: 338px;
        height: auto;
    }
    .portfolio-title a {
        bottom: 32px;
    }
}

@media screen and (max-width: 950px) {
    aside {
        right: 1%;
    }
    .main-nav {
        margin-right: 1%;
    }
}

@media screen and (max-width: 768px) {
    body,
    main,
    aside {
        width: 100%;
    }
    .wrapper {
        max-width: 768px;
    }
    img.left {
        float: left;
        margin: 10px 20px 10px 30px;
    }
    img.right {
        float: right;
        margin: 10px 30px 10px 30px;
    }
    img.portrait {
        max-height: 338px;
        max-width: none;
    }
    h1 {
        margin-left: 3%;
    }
    h3 {
        text-align: left;
        margin-left: 30px;
    }
    p {
        margin: 0 20px 10px 30px;
    }
    .header-inner {
        max-width: none;
    }
    .middle {
        max-width: none;
        padding-left: 3%;
        padding-right: 3%;
    }
    main {
        max-width: none;
        margin: 30px auto 50px auto;
    }
    main br {
        content: ' ';
    }
    aside {
        position: relative;
        margin: 0 auto 60px auto;
        right: 0;
    }
    .social-nav {
        text-align: left;
        margin-left: 30px;
    }
    .main-nav {
        margin-right: 1%;
    }
    .portfolio-module-holder {
        justify-content: space-between;
    }
    .portfolio-module {
        margin: 5px 0;
        max-width: 47%;
        max-height: none;
    }
    .portfolio-module img {
        width: 100%;
    }
    .portfolio-title {
        width: 100%;
    }
    .portfolio-title a {
        width: 100%;
        bottom: 32px;
    }
}

@media screen and (max-width: 640px) {
    img.left,
    img.right {
        float: none;
        padding-right: 30px;
        padding-left: 30px;
        margin: 30px auto;
        display: block;
    }
    img.landscape {
        width: auto;
        max-width: 100%;
    }
    img.portrait {
        max-height: 338px;
        width: auto;
        max-width: 100%;
    }
    header {
        height: 160px;
        position: static;
    }
    h1 {
        font-size: 7vw;
        width: 100%;
        text-align: center;
        margin-left: 0;
    }
    p {
        margin: 0 30px 0 30px;
    }
    .main-nav {
        float: none;
        height: 60px;
        margin: 0 auto;
        text-align: center;
    }
    .main-nav ul {
        width: 100%;
    }
    .main-nav a {
        margin: 10px 4%;
        padding-top: 10px;
        padding-bottom: 13px;
        line-height: normal;
        height: auto;
        max-height: 60px;
    }
    .main-nav a:hover {
        margin: 0px 4%;
        transition: all ease-in-out .2s;
    }
    .portfolio-module-holder {
        width: 100%;
        max-width: 100%;
    }
    .portfolio-module {
        max-width: 100%;
        width: 100%;
        margin: 5px 30px;
    }
    footer p {
        font-size: 1em;
    }
}

@media screen and (max-width: 350px) {
    .social-nav {
        margin: 0 auto;
        text-align: center;
    }
    h3 {
        font-size: 1.2em;
    }
    .portfolio-title {
        line-height: 27px;
    }
    .portfolio-title a {
        height: 25px;
        bottom: 13px;
        font-size: .9em;
    }
    .portfolio-title a:hover::before {
        height: 5px;
        top: -5px;
    }
    .portfolio-title a:hover::after {
        height: 5px;
        bottom: -5px;
    }
}