

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

/* General */

@font-face {
  font-family: 'fontello';
  src: url('../font/fontello.eot?91421983');
  src: url('../font/fontello.eot?91421983#iefix') format('embedded-opentype'),
  url('../font/fontello.woff?91421983') format('woff'),
  url('../font/fontello.ttf?91421983') format('truetype'),
  url('../font/fontello.svg?91421983#fontello') format('svg');
  font-weight: normal;
  font-style: normal;
}

[class^="icon-"]:before, [class*=" icon-"]:before {
  font-family: "fontello";
  font-style: normal;
  font-weight: normal;
  display: inline-block;
  text-decoration: inherit;
  width: 1em;
  margin-right: .2em;
  text-align: center;
  font-variant: normal;
  text-transform: none;
  line-height: 1em;
  font-size: 175%;
}
.icon-twitter:before { content: '\e800'; }
.icon-linkedin:before { content: '\e801'; }
.icon-mail-alt:before { content: '\e802'; }
.icon-github-circled:before { content: '\e803'; }

a {
  color: #90a4ae;
  -webkit-transition: color .3s;
  -moz-transition: color .3s;
  -o-transition: color .3s;
  -ms-transition: color .3s;
  transition: color .3s;
}
a:visited {color: #90a4ae;}

html {height: 100%;}

body {
  min-width: 320px;
  min-height: 500px;
  height: 100%;
  background: url(../img/cover-d.jpg) no-repeat center center fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
}

.wrap {
  height: 100%;
  text-align:center;
  overflow: hidden;
}

.wrap:before {
  content: '';
  display: inline-block;
  height: 100%;
  vertical-align: middle;
}

/* Card */

#card {
  width: 500px;
  max-width: 90%;
  position: relative;
  display: inline-block;
  vertical-align: middle;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 1px 2px #777;
  border-radius: 2px;
  text-align:left;
  -webkit-animation: enter .5s .5s ease both;
  -moz-animation: enter .5s .5s ease both;
  -o-animation: enter .5s .5s ease both;
  animation: enter .5s .5s ease both;
}

/* Profile picture */

#picture {
  width: 6em;
  height: 6em;
  position: absolute;
  top: 1.5em;
  left: 2em;
  overflow: hidden;
  background-color: #cacccd;
  border-radius: 50%;
  border: 2px solid #fff;
}

#picture img {
  height: 100%;
}

/* Header with name and title */

#header {
  padding: 1.5em 1.5em 1em 10em;
  color: #fff;
  background: rgba(96, 125, 139, 0.8);
  background: -webkit-gradient(linear, left top, right top, color-stop(0%, #607d8b), color-stop(100%, #b0bec5));
  background: -o-linear-gradient(left, #607d8b 0%, #b0bec5 100%);
  background: -ms-linear-gradient(left, #607d8b 0%, #b0bec5 100%);
  background: linear-gradient(to right, #607d8b 0%, #b0bec5 100%);
}

#name {
  font-size: 1.6em;
  margin-bottom: .3em;
}
#name b {font-weight: 400;}

#job {
  font-size: 1.2em;
  font-style: italic;
}

/* Body with bio */

#body {padding: 2em 1em 1em 2em;}

#body p {
  margin: 0.5em 0;
  color: #263238;
}

/* Footer with links */

#footer {
  width: 100%;
  display: table;
  position: relative;
  bottom: 0;
  border-top: 1px solid #cfd8dc;
}

#footer > a {
  display: table-cell;
  padding: 1em;
  text-align: center;
}

#footer > a span {display: none;}
#footer a:active {color: #fff}
a.twitter:hover {color: #00aced;}
a.twitter:active {background: #00aced;}
a.linkedin:hover {color: #007bb6;}
a.linkedin:active {background: #007bb6;}
a.github:hover {color: #444;}
a.github:active {background: #444;}
a.mail:hover {color: #dd2c00;}
a.mail:active {background: #dd2c00;}
a.mail i:before {font-size: 150%;}

/* Mobile CSS */

@media only screen and (max-width : 640px) {
  body {
    background: url(../img/cover-m.jpg) no-repeat center center fixed;
    background-size: cover;
  }

  .wrap {
    overflow-y: scroll;
  }

  #card {
    margin: 20px 0;
  }

  #header{
    padding: 1em 1em 2.5em;
    text-align: center;
    font-size: .9em;
  }

  #picture {
    position: relative;
    top: -25px;
    margin: 0px auto;
    left: initial;
  }

  #body {padding: 0em 1.5em .5em;margin-top:-1em}

  #footer {
    font-size: .8em;
    bottom: 0;
    border: 0;
  }

  #footer > a {
    border-top: 1px solid #cfd8dc;
    display: block;
    padding: 1em 1em 1em 2em;
    text-align: left;
  }

  #footer > a span {
    display: inline-block;
    padding-left: 1.5em;
    font-size: 1.1em;
  }
}

/*Keyframe Animation */

@-webkit-keyframes enter {
  from {
    transform:translateY(5rem);
    opacity:0;
  }
}
@-webkit-keyframes enter {
  from {
    transform:translateY(5rem) rotate(10deg);
    opacity:0;
  }
}
@-moz-keyframes enter {
  from {
    transform:translateY(5rem);
    opacity:0;
  }
}
@-moz-keyframes enter {
  from {
    transform:translateY(5rem) rotate(10deg);
    opacity:0;
  }
}
@-o-keyframes enter {
  from {
    transform:translateY(5rem);
    opacity:0;
  }
}
@-o-keyframes enter {
  from {
    transform:translateY(5rem) rotate(10deg);
    opacity:0;
  }
}
@keyframes enter {
  from {
    transform:translateY(5rem);
    opacity:0;
  }
}
@keyframes enter {
  from {
    transform:translateY(5rem) rotate(10deg);
    opacity:0;
  }
}


/* ==========================================================================
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;
    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) ")";
  }

  .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;
  }

  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;
  }
}
