/* IMPORTS */
@import url(https://fonts.googleapis.com/css?family=Roboto+Slab:400,300);


/* COMMON ELEMENTS */

body {
    margin: 0;
    padding: 0;

    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 18px;

    background-color: #74aad0;
    background-image: url(../images/natural_paper_blue.jpg);
    /* This background is an adaption from http://subtlepatterns.com/natural-paper/
     * Feel free to use it as long as you refer to the original source.
     */
    background-repeat: repeat;
}

div {
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: blue;
    box-sizing: border-box;
    color: #547994;
}

h1, h2, h3 {
    font-family: 'Roboto Slab', serif;
    font-weight: 300;
    text-align: left;
    color: #547994
;}

h1 {
    margin: 0;
    font-size: 40px;
}

h2 {
    margin: 30px 0 0 0;
    font-size: 27px;
}

h3 {
    margin: 20px 0 0 0;
    font-size: 20px;
}

p {
    margin: 8px 0 14px 0;
    line-height: 1.4em;
}

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

img {
    border: none;
}


/* PAGE SETUP */

#wrapper {
    max-width: 1000px;
    min-width: 300px;
    margin: 1em auto;
    padding: 0;
}


/* HEADER */

header {
    width: 828px;
    min-height: 200px;
    margin: 0 auto;
}

#avatar {
    float:left;
    width: 200px;
    height: 200px;
    border: 3px solid #fff;
    border-radius: 50%;
    background-color: black;
    background-image: url(../images/avatar_400x400.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    box-shadow: 1px 1px 5px grey;
}

#title {
    float: left;
    width: 588px;
    height: 200px;
    margin-left: 40px;
    background-image: url(../images/title.svg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    text-indent: -99999px;
    white-space: nowrap;
}


/* NAV */

nav {
    margin-top: 1em;
}

nav, nav > ul {
    clear: both;
    overflow: hidden;
    text-align: center;
}

nav ul li {
    display: inline;
}

nav ul li a {
    display: inline-block;
    height: 55px;
    margin: 0;
    padding: 11px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;

    background: #e7ecef;
    background-repeat: no-repeat;

    font-family: 'Roboto Slab', serif;
    font-weight: 300;
    font-size: 24px; 
    color: #808080;
    vertical-align: bottom;
}

nav ul li a:hover {
    background-color: #f7fcff;
    color: #909090;
}

#navProjects{}

#navAbout{}

.navOffsite {
    width: 48px;
}

nav a#navLinkedIn {
    background: #4875b4 url(../images/social/linkedin.svg) center no-repeat;
}

nav a#navLinkedIn:hover {
    background-color: #5885c4;
}

nav a#navFacebook {
    background: #3b5998 url(../images/social/facebook.svg) center no-repeat;
}

nav a#navFacebook:hover {
    background-color: #4b69a8;
}

nav a#navTwitter {
    background: #33ccff url(../images/social/twitter.svg) center no-repeat;
}

nav a#navTwitter:hover {
    background-color: #43dcff;
}

nav a#navMail {
    background: #ffa64d url(../images/social/mail.svg) center no-repeat;
}

nav a#navMail:hover {
    background-color: #ffb65d;
}

nav a#navGooglePlus {
    background: #dd4b39 url(../images/social/google_plus.svg) center no-repeat;
}

nav a#navGooglePlus:hover {
    background-color: #ed5b49;
}


/* NAV SELECTED */

#projects a#navProjects {
    background: #fff;
    color: black;
}

#projects a#navProjects:hover {
    background: #fff;
    color: grey;
}

#about a#navAbout {
    background: #fff;
    color: black;
}

#about a#navAbout:hover {
    background: #fff;
    color: grey;
}


/* CAROUSEL */

.carousel {
    clear: both;
    margin-bottom: 20px;
    display: none;
}

.slides img {
    width: 100%;
}


/* CONTENT */

#content {
    padding: 5px 0;
    border-radius: 5px;
    background-color: #fff;
    text-align: justify;
}

.post {
    margin: 60px 75px;
}

.post p a:hover {
    text-decoration: underline;
}

.postlinks {
    clear: both;
    margin: 19px 0 20px 0;
    padding: 15px;

    background-color: #eee; /* For browsers that do not support gradients */

    border-bottom: 1px solid #547994;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;

    font-family: 'Roboto Slab', serif;
    font-size: 18px;
    text-align: right;
}

.postlinks span {
    display: inline-block;
}

.thumb {
    float: left;
    position: relative;
    /*margin-right: 32px;*/
    margin: 0 20px 5px 0;
    width: 100%;
    max-width: 320px;
    border: 0 solid #547994;
    border-radius: 5px;
}

.fullwidth {
    width: 100%;
}


/* FOOTER */

footer {
    font-size: 17px;
    color: #999;
    padding: 0 0 .5em 0;
    text-align: center;
}


/* RESPONSIVE */

@media screen and (max-width: 320px) {
    .post {
        margin: 20px;
    }
}

@media screen and (min-width: 321px) and (max-width: 599px) {
}

@media screen and (max-width: 599px) {
    body {
        font-size: 16px;
    }

    header {
        width:100%;
        min-height: 0;
        height:0;
        padding-top: 30%;
        margin:0;
        background: url(../images/title.svg) no-repeat;
        background-size: contain;
        background-position: center;
    }

    #avatar, #title {
        height:0;
        display:none;
    }

    nav ul li {
        display: block;
        margin: 0 auto 10px auto;
        max-width: 95%;
    }

    nav ul li a {
        border-bottom-left-radius: 5px;
        border-bottom-right-radius: 5px;
    }

    nav ul li a.navInsite {
        display: block;
    }

    .post {
        margin: 45px 25px;
    }

    .post > .thumb {
        display: block;
        margin: 0 auto;
        float: none;
    }

    .post h1 {
        text-align: center;
        font-size: 35px;
    }

    .post h2 {
        font-size: 24px;
    }

    .post h3 {
        font-size: 18px;
    }

    .postlinks {
        text-align: center;
        font-size: 16px;
    }
}

@media screen and (min-width: 600px) and (max-width: 666px) {
}

@media screen and (min-width: 600px) and (max-width: 712px) {
    body{
        font-size: 18px;
    }

    header {
        width:414px;
        min-height: 100px;
    }

    #avatar {
        width: 100px;
        height: 100px;
    }

    #title {
        width: 294px;
        height: 100px;
        margin-left:20px;
    }

    .post {
        margin: 60px 50px;
    }
}

/* Smaller desktop version */

@media screen and (min-width: 713px) and (max-width: 950px) {
    nav ul li a {
        display: inline-block;
        margin: 0;
    }

    header {
        width: 621px;
        min-height: 150px;
    }

    #avatar {
        width: 150px;
        height: 150px;
    }

    #title {
        width: 441px;
        height: 150px;
        margin-left:30px;
    }
}
