section {
    /* padding: 25px 50px; */
    display: flex;
    margin: auto;
    /* border: 10px solid black; */
    align-content: end;
    align-items: start;
    background: #fff;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1024px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    color: #000;
    width: 1200px;
}

html,body{
    height:100%;
    background: #f1f3f4;
}

body {
    margin: 0;
    font-family: PT Mono,monospace,monospace;
    font: 20px/1.8 PT Sans,sans-serif;
}

.wrap {
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    min-height: 100%;
}

pre {
    display: flex;
    line-height: 1.3;
    flex-direction: column;
    flex-wrap: wrap;
    margin: 0;
    counter-reset: code;
    justify-content: end;
    margin-right: 0;
    margin-left: auto;
    /* margin-top: 8px; */
    white-space: normal;
    border-left: 1px solid #f1f3f4;
    padding: 25px 50px 0 50px;
    /* padding-left: 0; */
}

.wrap pre code:not(:only-child):before {
    position: absolute;
    margin-left: -2em;
    color: #979a9e;
    counter-increment: code;
    /* content: counter(code,decimal-leading-zero) "."; */
}

code {
    display: block;
    /* padding: 0 0 0 60px; */
    border-radius: 0;
    background: 0 0;
    line-height: 1.8;
    white-space: pre;
    -moz-tab-size: 4;
    -o-tab-size: 4;
    tab-size: 4;
}

pre code:not(:only-child).mark {
    background: #d7f3e2;
    margin-left: 2px;
    }

img {
    max-width: 100%;
    height: 80px;
    background: #eee;
    padding: 10px;
}

ul {
    list-style: square;
    list-style-position: outside;
}

h1 {
    width: 100%;
    margin: 0;
}

hr {
    width: 100%;
    border: 0;
    border-bottom: 1px solid rgba(88,90,94,.1);
    margin: 20px 0 0;
}

.portfolio,.socials {
    display: flex;
    flex-wrap: wrap;
    flex: 1 1 auto;
    padding: 0;
    max-width: 370px;
    justify-content: left;
    justify-items: left;
    margin: 0;
}

.portfolio li,.socials li {
    margin: 0 0 0 5px;
    list-style: none;
}

.wrap div:nth-child(2) {
    width:50%;
}

.wrap div:first-child {
    padding: 0 40px 0 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    flex-direction: column;
    padding: 25px 50px;
}

.copy {
    text-align: right;
    padding-right: 25px;
    font-size: 13px;
    display: block;
    margin: 0;
    padding: 10px 25px 10px 0;
    position: relative;
    z-index: 2;
}

mark {
    background: #cfe8fc;
    padding: 2px 4px;
}

span {
    color: #c80100;
}

@media (max-width:960px){
    section{
        max-width:100%;
        display: block;
    }
}

@media (max-width: 760px){
    section{
        padding: 10px 20px;
        border-width: 5px;
    }
    body {
        margin: 0;
        font-family: PT Mono,monospace,monospace;
        font: 14px/1.8 PT Sans,sans-serif;
    }
    code {
        padding: 0 0 0 35px;
    }
    ul {
        padding-left: 20px;
    }
    .wrap div:first-child {
        padding: 0;
        width: 100%;
        height: 30%;
        border-bottom: 2px solid rgba(88,90,94,.1);
        margin-bottom: 20px;
    }

    .wrap div:last-child {
        width: 100%;
    }

    .copy{
        /* margin-top: -40px; */
    }
    .portfolio,.socials{
        max-width:100%;
    }
    section{
        display:block;
    }
    .wrap div {
        flex: 0 0 100%;
    }
}