/* ==========================================================================
   HTML5 Boilerplate styles - h5bp.com (generated via initializr.com)
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

body {
    font-size: 1em;
    line-height: 1.4;
}

::-moz-selection {
    background: rgba(191, 96, 104, .99);
    color:      #120c0b;
    text-shadow: none;
}

::selection {
    background: rgba(191, 96, 104, .99);
    color:      #120c0b;
    text-shadow: none;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

img {
    vertical-align: middle;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

textarea {
    resize: vertical;
}

.chromeframe {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}


/* ==========================================================================
   Author's custom styles
   ========================================================================== */

body {
    background-color:   #120c0b;
    color:              #bfaaa3;
    font-family:        'Cousine', Menlo, Monaco, Consolas, 'Lucida Console', monospace;
    font-size:          87.5%;
    line-height:        1.5em;
    }

p {
    margin: 0;
}

p + p {
    margin: 1em 0;
}

#container {
    margin:     0 4%;
    position:   relative;
    width:      92%;
}

.row {
    overflow:       hidden;
    width:          100%;
    }

#about .row {
    padding-top:        5.882352941176471%;
}

.span3,
article {
    width: 100%;
    margin-bottom:  4.347826086956522%; /* 40 */
}


h1, h2, h3 {
    font-size:      1.25em;
    line-height:    1.2em;
    margin:         0.8em 0;
}

#container > header h1 {
    margin-top: 0;
}

#about h2 {
    font-size: 1em;
    font-weight: normal;
    margin: 0;
}

a {
    text-decoration:    none;
    }

li a,
p a {
    border-bottom:      1px solid;
    padding-bottom:     1px;
    }

li a,
li a:visited,
p a,
p a:visited,
nav a,
nav a:visited {
    color:  #bfaaa3;
}

li a:hover,
p a:hover,
nav a:hover {
    color:  #fff;
}

h1,
h2,
h3,
#container > header p,
#project .heading p,
li a:active,
p a:active,
nav .active a {
    color:  #bf6068;
}

nav a {
    border-width: 0;
}

nav .active a {
    border-width: 1px;
}

img {
    display: block;
    max-width: 100%;
}

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

li {
    margin: 1.5em 0;
}

.inline li {
    display:    inline;
    }

.inline li:after {
    color:  #665f5c;
    content: " / ";
    }

.inline li:last-child:after {
    content: "";
    }

.dashed {
    border-top:         1px dashed #4c413d;
    border-top:         10px solid #ffecb2;
    }

.logo {
    display: block;
}

#container > header div {
    padding: 4% 0;
}

h1,
#about h2,
#project h2 {
    color:          #ffecb2;
}

#container > header h1,
#about h2 {
    letter-spacing: 1px;
}

nav {
    padding:    4% 0;
}

nav a {
    text-transform: uppercase;
}

#about h2 {
    line-height:    0;
    margin:         14.70588235294118% 0;
}

#home {
    margin-top:     21.73913043478261%;
}

[data-columns]::before { 
    visibility: hidden;
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}


#home .row[data-columns]::before {
    content: "1 .span1";
}

#home [class*="span"]:first-child {
    margin-left: 0;
}

#project h2 {
    font-size:  2em;
}

#project .heading div {
    padding:    4.347826086956522% 0;
}

#project .heading p {
    margin-bottom: 0;
}

#project .description,
#project .extra {
    padding:    4.347826086956522% 0;
}

#project .content {
    padding-top:    5.882352941176471%;
}

#project .content img,
#project .content div {
    margin-bottom:  4.347826086956522%; /* 40 */
}

#project .content .grid {
    display: flex;
    margin-left: -15px;
    margin-right: -15px;
}

#project .content .col {
    flex-grow: 1;
    flex-basis: auto;
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

article {
    overflow: hidden;
}

article {
    margin-bottom:  5%;
}

article a {
    display:    block;
    position:   relative;
}

article header {
    background-color:   #ffecb2;
    width:              100%;
}

article header div {
    padding:    1em;
}

article h1 {
    color:          #120c0b;
    font-size:      1.25em;
    font-weight:    bold;
    margin:         0 0 0.8em;
}

article p {
    color:      #120c0b;
    margin:     0;
}

.button {
    background-color:   #ffecb2;
    display:            block;
    -webkit-transition: background-color 0.3s ease;
    -moz-transition: background-color 0.3s ease;
    transition: background-color 0.3s ease;
    overflow:           hidden;
    position:           relative;
    padding-bottom:     0;
    border-bottom:      0 none;
    text-align:         center;
}

.button,
.button:visited {
    color:              #120c0b;
}

.resume {
    width: 50%;
}

.pdf {
    -webkit-border-radius:  50%;
    -moz-border-radius:     50%;
    border-radius:          50%;
    float:                  left;
    padding-bottom:         46.42857142857143%;
    text-transform:         uppercase;
    width:                  46.42857142857143%; /* 130 */
}

.pdf .fa-arrow-circle-o-down,
.pdf .icon-download,
.pdf span {
    overflow:           hidden;
    -webkit-transition: top 0.2s ease;
    -moz-transition: top 0.2s ease;
    transition: top 0.2s ease;
}

.center {
    display: block!important;
    margin: auto;
    position: absolute;
    overflow: auto;
    top:    0;
    left:   0;
    bottom: 0;
    right:  0;
}

.pdf .fa-arrow-circle-o-down,
.pdf .icon-download {
    top: -100%;
}

.pdf .icon-file-text-alt {
}

.button:active,
.button:hover {
    color: #fff;
    color: #120c0b;
    background-color: #bf6068;
    border-bottom: 0 none!important;    
}

.button:active {
    top: 1px;
}

.pdf:hover .fa,
.pdf:hover .icon-download {
    top:    35%;
}

.pdf:hover span {
    top:    100%;
}

.pdf + .pdf {
    margin-left: 7.142857142857143%; /* 20 */
}

.links .button {
    float: left;
}

.social {
    -webkit-border-radius:  50%;
    -moz-border-radius:  50%;
    border-radius:  50%;
    height: 40px;
    width:  40px;
}

.social i {
    line-height: 40px;
    /*padding-top: 10px;*/
}

.social + .social {
    margin-left: 20px;
}

.behance {
    background: transparent url('../img/behance.png') no-repeat 0 4px; 
    width: 24px;
    height: 24px;
}

small {
    padding:    4.347826086956522% 0;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */

@media only screen and (min-width: 480px) {

    #container > header {
        height:         100%;
        position:       fixed;
        width:          20%; /* 280 */
    }

    #container > header div {
        padding: 20% 0;
    }

    nav {
        padding:    20% 0;
    }

    #about,
    #project,
    .main {
        margin-left: 26.08695652173913%; /* 320 */
    }

    .row > [class*="span"] {
        display:        inline;
        float:          left;
    }

    .pdf span {
        top: 25%;
    }

    small {
        padding:    4.347826086956522% 0;
    }

    #project .heading {
        padding-bottom: 29.41176470588235%;
        height:         0;
        overflow:       hidden;
        position:       relative;
    }

    #project .heading div {
        position:       absolute;
        bottom:         20%;
    }

    #project .description,
    #project .extra {
        padding:    5.882352941176471% 0;
    }

    #project .extra p {
        margin-bottom: 1em;
    }

}

@media only screen and (max-width: 480px) {
    .pdf i {
        display: none!important;
    }
}

@media only screen and (min-width: 480px) and (max-width: 767px) {

    .pdf i {
        font-size: 2em;
    }

    article h1 {
        font-size: 1.25em;
    }
}

@media only screen and (min-width: 640px) {

}

@media only screen and (min-width: 640px) and (max-width: 959px) {

    .span3 {
        width:  47.82608695652174%; /* 440 */
        margin-left:    4.347826086956522%; /* 40 */
    }

    article {
        margin-bottom:  10%;
    }

    #about .row > .span3:nth-child(odd)  {
        margin-left: 0;
    }

    #home .row[data-columns]::before {
        content: "2 .span3";
    }

    small {
        padding:    4.347826086956522% 0;
    }
}

@media only screen and (min-width: 768px) {

    article header {
        margin:             0;
        height:             100%;
        bottom:             0;
        left:               0;
        right:              0;
        position:           absolute;
        top:                -100%;
        -webkit-transition: top 0.2s ease;
        -moz-transition: top 0.2s ease;
        transition: top 0.2s ease;
}

    article a:hover header {
        top:    0;
    }

    article header div {
        position:   absolute;
        bottom:     0;
    }

    #about .span3:first-child {
        margin-left: 0;
    }

    .pdf span {
        line-height: 2em;
    }

    .pdf i {
        font-size: 3em;
        margin-top: 1px;
    }

}

@media only screen and (min-width: 768px) and (max-width: 959px) {

    #about h2 {
        font-size: 1.5em;
    }
}

@media only screen and (max-width: 959px) {

}

@media only screen and (min-width: 960px) {
    #about h2 {
        font-size: 2em;
    }

    .span3 {
        width:          29.41176470588235%; /* 1/3 */
        margin-left:    5.882352941176471%; /* 4/68 */
    }

    #about .span3 {
        margin-bottom:  5.882352941176471%; /* 4/68 */
    }


    #home .row[data-columns]::before {
        content: "3 .span3";
    }

    article {
        margin-bottom:  20%;
    }

    #project > header {
        height:         100%;
        position:       fixed;
        width:          20%; /* 280 */
        margin-left:    48%;
    }

    #project {
        overflow:   hidden;
        margin-right: 26.08695652173913%; /* 320 */
    }

    #project .heading {
        padding-bottom: 100%;
    }

    #project .description,
    #project .extra {
        padding: 20% 0;
    }

    #project .content {
        margin-top:     45.45454545454545%;
        padding-top:    9.090909090909091%;
    }

    small {
        padding:    5.555555555555556% 0;
    }
}

@media only screen and (min-width: 960px) and (max-width: 1319px) {
    
    #about .row > .span3:nth-child(3n+1) {
        margin-left: 0;
    }

}

@media only screen and (min-width: 1320px) {


    #container {
        margin:     0 auto;
        width:  1240px;
    }

    #container > header,
    #project > header {
        width:      270px;
    }

    #project > header {
        margin-left: 647px;
    }

    #home {
        margin-top: 270px;
    }

    #about h2 {
        font-size:  2.5em;
        margin:     135px 0;
    }

}

@media print,
    (-o-min-device-pixel-ratio: 5/4),
    (-webkit-min-device-pixel-ratio: 1.25),
    (min-resolution: 120dpi) {

}

/* ==========================================================================
   Helper classes
   ========================================================================== */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

.hidden {
    display: none !important;
    visibility: hidden;
}

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

.invisible {
    visibility: hidden;
}

.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   Print styles
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}