body {
    margin: 0;
    padding: 0;
    background: url(img/bg/bg.png) no-repeat top left #352f2f;
    font-family: 'Lato', sans-serif;
}
div#body {
    padding: 120px 60px;
}
h1 {
    position: absolute;
    top: 10px;
    left: 20%;
    padding: 0;
    margin: 0;
    color: #fff;
}
h2 {
  margin:0;
  padding:10px 15px;
}
h2 span {
    font-weight: normal;
    font-size: 75%;
}
section{
    position: relative;
    height: 500px;
    float: left;
    width: 480px;
}
.card {
  position: absolute;
  z-index: 10;
  width: 400px;
  height: 230px;
  background: url(img/bg/bg-paper.png) #eee;
  border: 1px solid #ccc;
  border-radius: 2%;
  box-shadow: -2px -8px 14px rgba(0, 0, 0, 0.7);
  padding: 5px; 
  transition-property: transform, box-shadow, z-index, border;
  transition-duration: 2s;
  transition-timing-function: ease;
}
div#heathwallace-card {
  transform: rotate(1deg);
  z-index: 1;
}

div#hsbc-card {
  top: 85px;
  transform: rotate(-2deg);
  z-index: 2;
}
div#tealium-card {
  top: 165px;
  transform: rotate(2deg);
  z-index: 3;
}
div#scout-card {
  transform: rotate(-2deg);
  z-index: 4;
}

div#online-card {
  top:25px;
  transform: rotate(2deg);
  z-index: 4;
}
div#sports-card {
  top:110px;
  transform: rotate(4deg);
  z-index: 4;
}
div#family-card {
  top:205px;
  transform: rotate(-2deg);
  z-index: 4;
}
.card:hover {
  box-shadow: -8px -20px 40px rgba(0, 0, 0, 0.7);
  z-index: 50 !important;
  border: none;
}
div#heathwallace-card:hover {
  transform: scale(1.2) rotate(4deg) translate(80px);
}

div#hsbc-card:hover {
  transform: scale(1.2) rotate(1deg) translate(80px);
}

div#tealium-card:hover {
  transform: scale(1.2) rotate(-1deg) translate(80px);
}
div#scout-card:hover {
  transform: scale(1.2) rotate(1deg) translate(-80px);
}
div#online-card:hover {
  transform: scale(1.2) rotate(-1deg) translate(-80px);
}
div#sports-card:hover {
  transform: scale(1.3) rotate(1deg) translate(-80px);
}
div#family-card:hover {
  transform: scale(1.6) rotate(1deg) translate(-90px);
}

.duration {
    margin: 0;
    padding: 10px 15px;
}
.link{
    padding: 10px;
    margin: 0;
    position: absolute;
    right: 0;
    bottom: 0
}
.link a {
    color: #333;
    text-decoration: none;
}
.three-col {
    float: left;
    width: 110px;
    padding: 0 10px;
    display: inline;
    text-align: center;
}
.three-col img {
    width: 100px;
}

.two-col {
    float: left;
    position: relative;
    top: -10px;
    width: 175px;
    padding: 0 10px;
    display: inline;
    text-align: center;
}
.two-col img {
    width: 170px;
}
#linkedin{
    position: absolute;
    bottom: 10px;
    right: 100px;
}

@media only screen and (max-width: 1080px) {
    /* For mobile phones: */
    body{
        background-repeat: repeat-y
    }
    div#body {
        padding-right: 0px;
    }
    section{
    position: relative;
    height: auto;
        clear: left;
    width: auto;
}
    .card{
        position: relative;
        transition-property:none;
    }
    .card:hover{
        transform: none!important;
        border: 1px solid #ccc;
        box-shadow: -2px -8px 14px rgba(0, 0, 0, 0.7);
    }
    div#hsbc-card {
  top: 5px;
}
div#tealium-card {
  top: 10px;
  transform: rotate(2deg);
  z-index: 3;
}
#linkedin{
    position: relative;
    top: 20px;
    left: 180px;
}
div#scout-card {
  top: 110px;
  transform: rotate(-2deg);
  z-index: 4;
}
div#online-card {
  top:110px;
  transform: rotate(2deg);
  z-index: 4;
}
div#sports-card {
  top:110px;
  transform: rotate(4deg);
  z-index: 4;
}
div#family-card {
  top:90px;
  transform: rotate(-2deg);
  z-index: 4;
}
}