/* GENERAL */

body {
    margin: 0;
    padding: 0;
    font-family: "Roboto", "Open-Sans", sans-serif;
    background: -webkit-linear-gradient(#7FC7B0, #FEEBBC);
    background: -moz-linear-gradient(#7FC7B0, #FEEBBC);
    background: -o-linear-gradient(#7FC7B0, #FEEBBC);
    background: linear-gradient(#7FC7B0, #FEEBBC);
    background-attachment: fixed;
    color: #204547;
    overflow-x: hidden;
}

.gradBackground {
    position: absolute;
    width: 100%;
    height: 100vh;
    background: linear-gradient(#7FC7B0, #FEEBBC);
    z-index: -1;
    -webkit-animation: filter-animation 8s infinite;
    animation: filter-animation 8s infinite;
}

p {
    color: #204547;
    font-size: 0.8em;
}

hr {
    border: 0;
    background: #777;
    height: 1px;
    margin: 2em auto;
}

section {
    color: #204547;
    max-width: 600px;
    margin: 2em auto 2em 0;
}

section ul {
    margin: 4em auto 5em;
    margin-left: 12em;
    padding: 0;
    position: relative;
    min-height: 40px;
}

section ul:last-child {
    margin-bottom: 0;
}

section ul:before {
    content: "";
    background: #204547;
    height: 125px;
    width: 125px;
    position: absolute;
    top: -2em;
    left: -10em;
    border-radius: 100%;
    color: #fff;
    padding: 50px 0.5em 0;
    box-sizing: border-box;
    text-align: center;
}

section ul h4 {
    font-weight: normal;
}

section ul li {
    margin-left: 2em;
    margin-bottom: 0.5em;
    font-size: 0.8em;
}

section ul p {
    font-size: 0.8em;
}

section ul li:last-child {
    margin-bottom: 0;
}

/* HEADER */

header {
    padding: 1em;
    box-sizing: border-box;
}

header .headerInner {
    max-width: 1024px;
    margin: auto;
    padding: 1em;
    box-sizing: border-box;
}

header h2 {
    margin: 0 auto;
}

header .left, header .right {
    display: table-cell;
    vertical-align: middle;
}

header .left {
    min-width: 250px;
}

header .right {
    width: 100%;
}

header a {
    text-decoration: none;
    color: #fff;
    -webkit-transition: color .5s ease-out;
    -moz-transition: color .5s ease-out;
    -o-transition: color .5s ease-out;
    transition: color .5s ease-out;
}

header a:hover {
    color: #9A2439;
}

header h2 {
    font-size: 2em;
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: right;
}

header nav ul li {
    display: inline-block;
    vertical-align: middle;
    margin-left: 1em;
}
/* FOOTER */

footer {
    background: #204547;
}

footer .footerInner {
    max-width: 1024px;
    margin: auto;
    padding: 3em 1em;
    box-sizing: border-box;
    display: table;
    width: 100%;
}

footer ul {
    margin: 0;
    padding: 0;
    display: table-cell;
    height: 100%;
    vertical-align: middle;
    padding-left: 4em;
    box-sizing: border-box;
}

footer ul li {
    display: inline-block;
    vertical-align: middle;
    margin-right: 6em;
    font-size: 0.8em;
    position: relative;
}

footer ul a {
    color: #fff;
    text-decoration: none;
}

footer ul a span {
    -webkit-transition: color .5s ease-out;
    -moz-transition: color .5s ease-out;
    -o-transition: color .5s ease-out;
    transition: color .5s ease-out;
}

footer ul a:hover span {
    color: #FEEBBC;
}

footer ul li:before {
    content: "";
    width: 4em;
    height: 4em;
    background-color: #fff;
    background-size: 60%;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 100%;
    position: absolute;
    top: 0;
    bottom: 0;
    left: -5em;
    margin: auto;
}

footer ul li#phone:before {
    background-image: url('images/phone.png');
}

footer ul li#email:before {
    background-image: url('images/email.png');
}

/* MAIN */

.main {
    max-width: 1024px;
    margin: 2em auto;
    padding: 0 1em;
    box-sizing: border-box;
    display: table;
    width: 100%;
}

.content {
    display: table-cell;
    vertical-align: top;
    width: 100%;
}

.content#home {
    vertical-align: middle;
}

.contentInner h1, .contentInner h2 {
    font-size: 4em;
    margin: 0 auto;
    color: #204547;
}

.contentInner h2 {
    font-size: 3em;
}

#welcome h1, #welcome h2 {
    color: #fff;
}

#welcome .imageWrap, #welcome .contentWrap {
    display: inline-block;
    vertical-align: top;
}

#welcome .imageWrap {
    overflow: hidden;
    margin-right: 2em;
    vertical-align: bottom;
}

#welcome .imageWrap img {
    max-width: 500px;
    width: 100%;
    border-radius: 100%;
}

#welcome .contentWrap {
    width: -webkit-calc(100% - 525px);
    width: -moz-calc(100% - 525px);
    width: -o-calc(100% - 525px);
    width: calc(100% - 525px);
}

.mainLinks {
    margin: 2em auto;
}

.mainLinks ul {
    list-style: none;
    margin: 1em auto;
    padding: 0;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
}

.mainLinks ul a { 
    text-decoration: none;
    color: #fff;
}
    
.mainLinks ul li {
    margin: 1em;
    border-radius: 100%;
    background: #2C4246;
    height: 125px;
    width: 125px;
    font-size: 0.8em;
    position: relative;
    text-align: center;
    display: table;
    padding: 0.5em;
    box-sizing: border-box;
}

.mainLinks ul li span {
    display: table-cell;
    vertical-align: middle;
    height: 100%;
    width: 100%;
    position: relative;
    z-index: 999;
}

.mainLinks ul a li:after {
    content: "";
    background: #9A2439;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    opacity: 0;
    border-radius: 100%;
    -webkit-transition: opacity .5s ease-out;
    -moz-transition: opacity .5s ease-out;
    -o-transition: opacity .5s ease-out;
    transition: opacity .5s ease-out;
}

.mainLinks ul a li:hover:after {
    opacity: 1;
}

#personalInfo {
    list-style: none;
}

#personalInfo li {
    margin-left: 0;
}

#personalInfo:before {
    content: "Personal Info";
}

#workExperience:before {
    content: "Work Experience";
    padding-top: 40px;
}

#education:before {
    content: "Education";
}

#jobs:before {
    content: "Jobs";
}

#skills:before {
    content: "Skills";
}

#achievements:before {
    content: "Achievements";
}

#qualifications table tr td:last-child {
    font-weight: bold;
    text-align: right;
    width: 50px;
}

#qualifications {
    max-width: 600px;
}

.workItem {
    background: rgba(255, 255, 255, 0.5);
    min-height: 200px;
    width: 100%;
    max-width: 100%;
    margin-bottom: 4em;
}

.workItem:last-child {
    margin-bottom: 0;
}

.workItem .left, .workItem .right {
    display: inline-block;
    vertical-align: middle;
}

.workItem .left {
    max-width: 560px;
    width: 100%;
    height: 315px;
    background: #204547;
}

.workItem .right {
    width: -webkit-calc(100% - 564px);
    width: -moz-calc(100% - 564px);
    width: -o-calc(100% - 564px);
    width: calc(100% - 564px);
    padding: 2em 4em;
    box-sizing: border-box;
}

.workItem .left h2 {
    padding: 2em 1em;
    color: #fff;
}

.workItem video, .workItem audio {
    max-width: 100%;
}

.workItem audio {
    margin-top: 2em;
}

.contactLinks {
    margin: 0;
    padding: 0;
    display: table-cell;
    height: 100%;
    vertical-align: middle;
    padding-left: 10em;
    box-sizing: border-box;
    list-style: none;
}

.contactLinks li {
    font-size: 1.5em;
    position: relative;
    margin: 4.5em auto;
}

.contactLinks a {
    color: #204547;
    text-decoration: none;
}

.contactLinks a span {
    -webkit-transition: color .5s ease-out;
    -moz-transition: color .5s ease-out;
    -o-transition: color .5s ease-out;
    transition: color .5s ease-out;
}

.contactLinks a:hover span {
    color: #fff;
}

.contactLinks li:before {
    content: "";
    width: 125px;
    height: 125px;
    background-color: #fff;
    background-size: 60%;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 100%;
    position: absolute;
    top: 0;
    bottom: 0;
    left: -6em;
    margin: auto;
}

.contactLinks li#phone:before {
    background-image: url('images/phone.png');
}

.contactLinks li#email:before {
    background-image: url('images/email.png');
}

.contactLinks li span {
    word-break: break-all;
}

.showReel {
    border-radius: 0.5em;
    overflow: hidden;
    width: 460px;
    height: 260px;
}

@media only screen and (max-width: 1024px) {
    .contentInner {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .workItem {
        max-width: 560px;
        margin: auto;
        margin-bottom: 2em;
    }
    
    .workItem iframe {
        width: 100%;
    }
    
    .workItem .left {
        width: 100%;
    }
    
    .workItem .left, .workItem .right {
        display: block;
    }
    
    .workItem .right {
        width: 100%;
    }
    
    #welcome .imageWrap, #welcome .contentWrap {
        display: block;
        max-width: 100%;
        width: 100%;
    }
    
    #welcome .imageWrap {
        text-align: center;
    }
}

@media only screen and (max-width: 768px) {
    header .left, header .right {
        display: block;
        text-align: center;
    }
    
    header .right ul {
        text-align: center;
        margin: 1em auto;
    }
}

@media only screen and (max-width: 555px) {
    header .right  ul li {
        display: block;
        margin-top: 1em;
        font-size: 1.2em;
    }
    
    footer ul li {
        margin: 2em 6em 2em 0;
    }
    
    footer ul a:first-child li {
        margin-top: 0;
    }
    
    footer ul a:last-child li {
        margin-bottom: 0;
    }
    
    section ul {
        margin: 12em auto 0;
    }
    
    section ul:before {
        top: -10em;
        left: 0;
        right: 0;
        margin: auto;
    }
}