/****GLOBAL STYLES****/

/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    vertical-align: baseline;
}

body {
    margin: 0;
    padding: 0;
    background-color: black;
    color: white;
    font-family: 'Hind', arial, sans-serif;
    font-weight: 400;
}

/* mobile */
@media (min-width: 320px) {
    #wrapper {
        width: 280px;
    }

    #banner {
        width: 280px;
        height: 40px;
        font-size: 8pt;
    }

    #banner h1 {
        margin-top: 13px;
        font-size: 8pt;
        padding-bottom: 10px;
    }

    #menu ul {
        margin-top: 13px;
    }

    #menu li {
        padding-bottom: 10px;
        margin-left: 5px;
    }

    h2{
        padding-top: 80px;
        padding-bottom: 40px;
        font-size: 12pt;
    }

    #opening {
        padding-top: 40px;
        width: 300px;
    }

    #opening p:first-of-type {
        font-size: 25.4pt;
    }

    #opening p:last-of-type {
        font-size: 12pt;
    }

    #opening .green-line {
        width: 54px;
        line-height: 10px;
    }

    #about {
        padding-left: 0px;
        padding-right: 0px;
    }

    #about .green-line {
        width: 55px;
        line-height: 10px; 
    }

    #about img {
        height: 164px;
        width: 164px;
        margin-right: 60px;
        margin-left: 60px;
        margin-bottom: 40px;
    }

    #about p {
        font-size: 10pt;
        padding-bottom: 40px;
    }

    #projects {
        padding-left: 0px;
        padding-right: 0px;
    }

    #projects .green-line {
        width: 44px;
        line-height: 10px; 
    }

    .item {
      margin: 0px 0px 20px;
    }

    .block {
      width: 280px;
      line-height: 1.5;
      font-size: 10pt;
      padding: 30px 20px 20px;
    }

    .block a {
        color: #999;
    }

    .container>label:nth-child(3n+1)>.block{
      background-position: -320px 0px;
    }

    .container>label:nth-child(3n+2)>.block{
      left: -105px;
      background-position: -214px 0px;
    }

    .container>label:nth-child(3n+3)>.block{
      left: -210px;
      background-position: -108px 0px;
    }

    #contact {
        padding-left: 0px;
        padding-right: 0px; 
    }

    #contact .green-line {
        width: 45px; 
        line-height: 10px;
    }

    #contact p {
        margin-top: 40px;
        font-size: 12.5pt;
    }

    #contact ul {
        margin-top: 80px;
    }

    #contact li, #contact li a {
          width: 48px;
        height: 48px;
    }

    #twitter-contact a {
        background-size: 48px 48px;
    }

    #twitter-contact a:hover {
        background-size: 48px 48px;
    }

    #github-contact a {
        background-size: 48px 48px;
    }

    #github-contact a:hover {
        background-size: 48px 48px;
    }

    #linkedin-contact a {
        background-size: 48px 48px;
    }

    #linkedin-contact a:hover {
        background-size: 48px 48px;
    }

}

/* desktop */
@media (min-width: 1024px) {
    #wrapper {
        width: 960px;
    }

    #banner {
        width: 960px;
        height: 65px;
        font-size: 12pt;
    }

    #banner h1 {
        margin-top: 26px; /* (banner(65px)-text-height(13px))/2=26px */
        font-size: 12pt;
        padding-bottom: 13px;
    }

    #menu ul {
        margin-top: 26px; /* (banner(65px)-text-height(13px))/2=26px */
    }

    #menu li {
        padding-bottom: 13px;
        margin-left: 25px; 
    }

    h2{
        padding-top: 135px;
        padding-bottom: 65px;
        font-size: 16pt;
    }

    #opening {
        padding-top: 65px;
        width:960px;
    }

    #opening p:first-of-type {
        font-size: 72pt;
    }

    #opening p:last-of-type {
        font-size: 24pt;
    }

    #opening .green-line {
        width: 223px;
        line-height: 50px;
    }

    #about {
        padding-left: 85px;
        padding-right: 85px;
    }

    #about .green-line {
        width: 117px;
        line-height: 33px;
    }

    #about img {
        height: 310px;
        width: 310px;
        margin-right: 50px;
        margin-left: 0px;
        margin-bottom: 0px;
    }

    #about p {
        font-size: 12pt;
    }

    #projects {
        padding-left: 85px;
        padding-right: 85px;
    }

    #projects .green-line {
        width: 104px;
        line-height: 33px;
    }

    .item {
      margin: 0 40px 40px;
    }

    .block {
      width: 710px;
      line-height: 1.5;
      padding:40px 30px 30px;
      font-size: 12pt;
    }

    /*  canceling out mobile styles */
    .container>label:nth-child(3n+1)>.block{
      background-position: 0;
    }

    .container>label:nth-child(3n+2)>.block{
      left: 0;
      background-position: 0;
    }

    .container>label:nth-child(3n+3)>.block{
      left: 0;
      background-position: 0;
    }
    /*  /canceling out */

    .container>label:nth-child(5n+1)>.block{
      background-position: -320px 0px;
    }

    .container>label:nth-child(5n+2)>.block{
      left: -160px;
      background-position: -160px 0px;
    }

    .container>label:nth-child(5n+3)>.block{
      left: -320px;
      background-position: 0px 0px;
    }

    .container>label:nth-child(5n+4)>.block{
      left: -480px;
      background-position: 160px 0px;
    }

    .container>label:nth-child(5n+5)>.block{
      left: -640px;
      background-position: 320px 0px;
    }

    #contact {
        padding-left: 125px;
        padding-right: 125px;
    }

    #contact .green-line {
        width: 105px;
        line-height: 33px;
    }

    #contact p {
        margin-top: 45px;
        font-size: 18pt;
    }

    #contact ul {
        margin-top: 135px;
    }

    #contact li, #contact li a {
          width: 70px;
        height: 70px;
    }

    #twitter-contact a {
        background-size: 70px 70px;
    }

    #twitter-contact a:hover {
        background-size: 70px 70px;
    }

    #github-contact a {
        background-size: 70px 70px;
    }

    #github-contact a:hover {
        background-size: 70px 70px;
    }

    #linkedin-contact a {
        background-size: 70px 70px;
    }

    #linkedin-contact a:hover {
        background-size: 70px 70px;
    }
}


/* general */
#wrapper {
        margin: 0 auto;
    }

#banner {
        display: block;
        margin: 0 auto;
        position: fixed;
        border-bottom: 2px solid #606060;
        background-color: #000;
        z-index: 1;
}

#banner h1 {
    float: left;
    font-weight: 400;
}

#menu ul {
    float: right;
    display: block;
    padding: 0;
    list-style-type: none;
}

#menu li {
    display: inline;
}

.page-marker {
    background-image: url('../images/gray-triangle.svg');
    background-position: center bottom;
    background-repeat: no-repeat;
}

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

a:hover {
    color: #606060;
}

h2{
    text-align:center;
    text-transform:uppercase;
    font-weight: 400;
}

.green-line {
    background-image: url('../images/green-line.svg');
    display: inline-block;
    background-position: center;
    background-repeat: repeat-x;
}

/****OPENING STYLES****/

#opening {
    background-color: black;
    text-transform:uppercase;
    position: fixed;
    top: 50%;
    left: 50%;
    /* bring your own prefixes */
    transform: translate(-50%, -50%);
}

#opening p {
    text-align:center;
}

#opening p:first-of-type {
    line-height: 1;
}

/****ABOUT STYLES****/

#about img {
    float:left;
}

#about p {
    line-height: 1.5;
}

/****PROJECT STYLES****/


* {
  box-sizing: border-box;
}
.container {
  position: relative;
  text-align: justify;
  margin:auto;
}

.item {
  position: static;
  display: inline-block;
  vertical-align: top;
  width: 70px;
  overflow: visible;
}

[name=rdo-visible] {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
}

[name=rdo-visible]:checked ~ .box {
  margin-bottom: 60px;
}
[name=rdo-visible]:checked ~ .block {
  display: block;
  margin-top: -30px;
}

.box {
  border-radius: 8px;
  display: block;
  width: 70px;
  height: 70px;
  color: transparent;
  line-height: 70px;
}

.container>label:nth-child(1)>.box {
    background-size: contain;
    background-image: url(//s3.mzstatic.com/us/r30/Purple69/v4/4f/85/4e/4f854e53-f0f1-88fb-391f-1a8b68c460f6/icon175x175.png);
}

.container>label:nth-child(2)>.box {
    background-size: contain;
    background-image: url(../images/project-icons/nightstir.png);
}

.container>label:nth-child(3)>.box {
    background-size: contain;
    background-image: url(//s4.mzstatic.com/us/r30/Purple18/v4/f5/8d/1d/f58d1d19-0aab-b2b9-26f3-da4361eb7657/icon175x175.png);
}

.container>label:nth-child(4)>.box {
    background-size: contain;
    background-image: url(//s5.mzstatic.com/us/r30/Purple3/v4/f0/a4/4a/f0a44a90-9428-58e4-7d73-5a9108055a77/icon175x175.png);
}

.container>label:nth-child(5)>.box {
    background-size: contain;
    background-image: url(//s5.mzstatic.com/us/r30/Purple4/v4/c0/01/ff/c001ff2b-8b17-fe04-c351-6308f20c767a/icon175x175.jpeg);
}

.container>label:nth-child(6)>.box {
    background-size: contain;
    background-image: url(../images/project-icons/supply-chain-executive.png);
}

.container>label:nth-child(7)>.box {
    background-size: contain;
    background-image: url(../images/project-icons/posttag.jpg);
}

.container>label:nth-child(8)>.box {
    background-size: contain;
    background-image: url(../images/project-icons/cooking-revival.png);
}

.container>label:nth-child(9)>.box {
    background-size: contain;
    background-image: url(../images/project-icons/branch.png);
}

.container>label:nth-child(10)>.box {
    background-size: contain;
    background-image: url(../images/project-icons/ul-validator.png);
}

.container>label:nth-child(11)>.box {
    background-size: contain;
    background-image: url(../images/project-icons/proship.png);
}

.container>label:nth-child(12)>.box {
    background-size: contain;
    background-image: url(//s4.mzstatic.com/us/r30/Purple69/v4/39/bd/fc/39bdfced-b879-aa49-caec-3ddb90f98afe/icon175x175.jpeg);
}

.block {
  display: none;
  position: relative;
  background-color: white;
  color: black;
  background-image: url(../images/white-triangle-marker.svg);
  background-repeat: repeat-x;
}

.container:after {
  content: '';
  width: 100%;
  display: inline-block;
}

.project-name {
    display: block;
    text-transform: uppercase;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
}
/****CONTACT STYLES****/

#contact p {
    text-align: center;
}

#contact ul {
    list-style-type:none;
    text-align: justify;
    background-color: black;
}

#contact li, #contact li a {
      display: inline-block;
}

#contact  ul span {
    visibility: hidden;
}

#contact ul:after {
  content: '';
  width: 100%; /* Ensures there are at least 2 lines of text, so justification works */
  display: inline-block;
}

#twitter-contact a {
    background-image: url(../images/contact-icons/twitter-white.svg);
    background-repeat: no-repeat;
}

#twitter-contact a:hover {
    background-image: url(../images/contact-icons/twitter-gray.svg);
    background-repeat: no-repeat;
}

#github-contact a {
    background-image: url(../images/contact-icons/github-white.svg);
    background-repeat: no-repeat;
}

#github-contact a:hover {
    background-image: url(../images/contact-icons/github-gray.svg);
    background-repeat: no-repeat;
}

#linkedin-contact a {
    background-image: url(../images/contact-icons/linkedin-white.svg);
    background-repeat: no-repeat;
}

#linkedin-contact a:hover {
    background-image: url(../images/contact-icons/linkedin-gray.svg);
    background-repeat: no-repeat;
}
