/**
 * Romain Huet
 * http://romainhuet.com/
 */

/* General */
body {
  margin: 0;
  border-top: 4px solid #4a8ac2;
  font-family: Avenir, Lato, "Helvetica Neue", Helvetica, sans-serif;
}
a {
  text-decoration: none;
  color: #4a8ac2;
  -webkit-transition: color 0.3s;
  -moz-transition: color 0.3s;
  -o-transition: color 0.3s;
  transition: color 0.3s;
}
a:hover {
  color: #333;
}
a:active {
  position: relative;
  top: 1px;
}

/* Header */
header {
  text-align: center;
}
h1 {
  margin: 30px 0 0;
  letter-spacing: -1px;
}
h1 a {
  font-size: 50px;
  font-weight: 500;
}
h2 {
  margin: 0;
  font-size: 14px;
  font-weight: normal;
  font-variant: small-caps;
  letter-spacing: 1px;
  color: #aaa;
}

/* Picture */
.picture {
  display: inline-block;
  margin: 25px auto;
  -webkit-animation: bounce 1s;
  -moz-animation: bounce 1s;
  -o-animation: bounce 1s;
  animation: bounce 1s;
  -webkit-perspective: 1000;
}
.picture .card,
.picture .front,
.picture .back,
.picture .romain,
.picture .twitter {
  display: block;
  width: 180px;
  height: 180px;
  border-radius: 50%;
}
.picture .card {
  position: relative;
  padding: 4px;
  border: 1px solid #4a8ac2;
  -webkit-transition: -webkit-transform 0.6s ease-in-out;
  -moz-transition: -moz-transform 0.6s ease-in-out;
  -o-transition: -o-transform 0.6s ease-in-out;
  transition: transform 0.6s ease-in-out;
  -webkit-transform-style: preserve-3d;
  -moz-transform-style: preserve-3d;
  -o-transform-style: preserve-3d;
  transform-style: preserve-3d;
}
.picture:hover .card {
  -webkit-transform: rotateY(180deg);
  -moz-transform: rotateY(180deg);
  -o-transform: rotateY(180deg);
  transform: rotateY(180deg);
}
.picture .front,
.picture .back {
  position: absolute;
  top: 4px;
  left: 4px;
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  -o-backface-visibility: hidden;
  backface-visibility: hidden;
}
.picture .front {
  z-index: 2;
}
.picture .back {
  z-index: 1;
  -webkit-transform: rotateY(180deg);
  -moz-transform: rotateY(180deg);
  -o-transform: rotateY(180deg);
  transform: rotateY(180deg);
  color: #fff;
  background: #4a8ac2 url(/images/twitter.png) center 30px no-repeat;
  background-size: 80px 80px;
}
.picture .back .twitter {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  -o-box-sizing: border-box;
  box-sizing: border-box;
  padding-top: 110px;
  color: #fff;
}

/* Content */
section {
  width: 680px;
  margin: 0 auto;
}
section p {
  margin: 0 0 1em;
  color: #777;
  font-size: 16px;
  line-height: 28px;
  text-align: justify;
}

/* Media Queries */
@media (max-width: 700px) {
  section,
  h1,
  h2 {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Footer */
footer {
  position: relative;
  margin: 30px 0;
  text-align: center;
}
footer .twitter-follow-button {
  line-height: 20px;
  font-size: 0;
}
footer p {
  margin: 20px 0 0;
  color: #e2e2e2;
  font-size: 12px;
}
footer iframe {
  -webkit-animation: fade 1s;
  -moz-animation: fade 1s;
  -o-animation: fade 1s;
  animation: fade 1s;
}

/* Selection */
::selection {
  background: #4a8ac2;
  color: #fff;
  text-shadow: none;
}

/* Animations */
@-webkit-keyframes bounce {
  0% {
    opacity: 0;
    -webkit-transform: translateY(-30px);
  }
  60% {
    -webkit-transform: translateY(15px);
  }
  80% {
    -webkit-transform: translateY(-5px);
  }
  100% {
    opacity: 1;
    -webkit-transform: translateY(0);
  }
}
@-moz-keyframes bounce {
  0% {
    opacity: 0;
    -moz-transform: translateY(-30px);
  }
  60% {
    -moz-transform: translateY(15px);
  }
  80% {
    -moz-transform: translateY(-5px);
  }
  100% {
    opacity: 1;
    -moz-transform: translateY(0);
  }
}
@-o-keyframes bounce {
  0% {
    opacity: 0;
    -o-transform: translateY(-30px);
  }
  60% {
    -o-transform: translateY(15px);
  }
  80% {
    -o-transform: translateY(-5px);
  }
  100% {
    opacity: 1;
    -o-transform: translateY(0);
  }
}
@keyframes bounce {
  0% {
    opacity: 0;
    transform: translateY(-30px);
  }
  60% {
    transform: translateY(15px);
  }
  80% {
    transform: translateY(-5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@-webkit-keyframes fade {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@-moz-keyframes fade {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@-o-keyframes fade {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes fade {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
