@font-face {
    font-family: "Levenim";
    src: url("levenim.woff") format("woff"), url("levenim.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: Arial;
    display: flex;
    min-height: 100vh;
    height: 100%;
    flex-direction: column;
}

#hero {
    background-image: url("images/selfie.jpg");
    background-repeat: no-repeat;
    position: relative;
    display: block;
    background-size: 100%;
    height: 12em;
    width: 12em;
    justify-content: center;
    align-self: center;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
}

#app-icon {
    background-image: url("../images/app_icon.png");
    background-repeat: no-repeat;
    position: relative;
    display: block;
    background-size: 100%;
    height: 12em;
    width: 12em;
    justify-content: center;
    align-self: center;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
}

#header {
    width: 34em;
    margin-left: auto;
    margin-right: auto;
    border-bottom: 2px gray solid;
    padding-bottom: 0em;
    margin-bottom: 2em;
    height: auto;
}

h1 {
    text-align: center;
    height: 1.3em;
    width: 100%;
    font-family: "Levenim"
}

.intro-animation {
	-webkit-animation: tracking-in-expand-fwd 0.8s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
	-moz-animation: tracking-in-expand-fwd 0.8s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
	animation: tracking-in-expand-fwd 0.8s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
}

p {
    width: 100%;
    text-align: center;
}

p a {
    color: #326891;
}

p a:visited {
     color: #326891;
}

.button-row {
    margin-left: auto;
    margin-right: auto;
    width: 60%;
    max-width: 34em;
    display: flex;
    flex-wrap: wrap;
    align-content: space-around;
}

.button {
    font-family: sans-serif;
    display: inline-block;
    text-align: center;
    text-indent: none;
    padding: 18px 0;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    letter-spacing: 0.4px;
    line-height: 1;
    text-transform: uppercase;
    position: relative;
    width: 10.3em;
    margin: 0 auto 2em;
    background: none;
    border: 2px solid #111;
    -webkit-transition: all 300ms ease;
    -moz-transition: all 300ms ease;
    -ms-transition: all 300ms ease;
    transition: all 300ms ease;
    color: black;
    border: 2px solid #111;
}

#photography:hover {
    background-color: #111;
    color: #FFDC00;
}

#research:hover {
    color: #FF4136;
    background-color: #111;
}

#reading:hover {
    color: #0074D9;
    background-color: #111;
}

#blog:hover {
    color: #FF851B;
    background-color: #111;
}

#resume:hover {
    color: #2ECC40;
    background-color: #111;
}

#about:hover {
    color: #F012BE;
    background-color: #111;
}

.social-row {
    display: block;
    height: 64px;
    width: 34em;
    margin: 0 auto;
    padding-top: 1.1em;
    padding-bottom: 1em;
    border-top: 2px solid gray;
    text-align: center;
}

.social-list {
    list-style: none;
    margin: 0 auto;
    overflow: hidden;
    padding: 0;
    display: block;
    width: 376px;
}

.social-list a {
    height: 64px;
    width: 64px;
    background-size: 320px;
    background-image: url("images/sprites.png");
}

.social-list li {
    float: left;
    margin-right: 40px;
    display: list-item;
    text-align: -webkit-match-parent;
}

.social-item {
    background-color: transparent;
    border: 0;
    display: block;
    overflow: hidden;
}

.social-item:before {
    content: "";
    display: block;
    width: 0;
    height: 100%;
}

.fb a {
    background-position: left bottom;
}

.fb a:hover {
    background-position: left top;
}

.lin a {
    background-position: 25% bottom;
}

.lin a:hover {
    background-position: 25% top;
}

.insta a {
    background-position: 50% bottom;
}

.insta a:hover {
    background-position: 50% top;
}

.em {
    margin-right: 0px !important;
}

.em a {
    background-position: 75% bottom;
}

.em a:hover {
    background-position: 75% top;
}

#footer {
    font-family: "Rubik";
    text-align: center;
    width: 100%;
    font-size: 0.7em;
    line-height: 1.8em;
}

@-webkit-keyframes tracking-in-expand-fwd{0%{letter-spacing:-.5em;-webkit-transform:translateZ(-700px);transform:translateZ(-700px);opacity:0}40%{opacity:.6}100%{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}

@keyframes tracking-in-expand-fwd{0%{letter-spacing:-.5em;-webkit-transform:translateZ(-700px);transform:translateZ(-700px);opacity:0}40%{opacity:.6}100%{-webkit-transform:translateZ(0);transform:translateZ(0);opacity:1}}

@media only screen and (max-width: 871px) {
    #header {
        font-size: 1em;
        display: block;
        width: 90%;
        max-width: 28em;
        padding-bottom: 0.5em;
        height: inherit;
    } .button-row {
        display: flex;
    } .social-row {
        width: 90%;
        max-width: 28em;
        padding-top: 1em;
    } .social-list a {
        height: 44px;
        width: 44px;
        background-size: 220px;
    } .social-list {
        width: 296px;
    } .button {
        margin: 0 auto 2em;
        width: 30%;
        min-width: 9.5em;
    } .linkbar li {
        padding: 0;
        width: 100px;
        line-height: 2.5em;
        text-align: center;
    }
}

@media only screen and (min-device-width: 375px) and (max-device-width: 667px) {
    .button-row {
        display: block;
        text-align: center;
    } .button {
        margin: 0 4% 2em;
    }
}