html {
  font-size: 12px;
  min-width: 390px;
}
body {
  background-image: url("pattern.png");
}

#top, #bottom {
  max-width: 1200px;
}
#top {
  font-size: 18px;
}
#bottom {
  font-size: 12px;
}


nav a {
  text-decoration: none !important;
}

nav a:hover,
nav a:focus {
  border-bottom: 3px solid #ccc;
}
nav a.active,
nav a.active:hover,
nav a.active:focus {
  border-bottom: 3px solid #008fd9;
}

.logo {
  height: 80px;
  margin-right: 7px;
}

#main.canvas {
  max-width: none;
  background-image: linear-gradient(#777, #000);
  height: 400px;
  min-height: 400px;
  max-height: 400px;
}

#overlay {
  width: 100%;
  pointer-events: none;
  position: absolute;
  z-index: 99;
}
#overlay span,
#overlay a {
  pointer-events: all;
}
#overlay a.xclose {
  position: relative;
  top: -9px;
  right: 0;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  float:right;
}
#overlay-box {
  background-color: rgba(240, 240, 240, 0.85);
  width: 500px;
  box-shadow: 12px 12px 2px 1px rgba(30, 30, 30, .2);
}
.popup {
  background-color: #ddd;
  padding: 5px;
  border-radius: 5px;
  border: 2px solid #222;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  box-shadow: 7px 7px 2px 1px rgba(30, 30, 30, .2);
  pointer-events: none;
}
.popup p {
  margin: 3px;
}

.popup .arrow {
    border-style: solid;
    position: absolute;
}

.popup .arrow.bottom {
    border-color: #000 transparent transparent transparent;
    border-width: 8px 8px 0px 8px;
    bottom: -8px;
}

.popup .bottom:after {
    border-color: #fff transparent transparent transparent;
    border-style: solid;
    border-width: 6px 6px 0px 6px;
    bottom: 2px;
    content: "";
    position: absolute;
    left: -6px;
}

@media (min-width: 768px) {
  html {
    font-size: 14px;
  }
  #main {
    max-width: 1200px;
    min-height: 500px;
  }
  #main.canvas {
    max-width: none;
    height: 700px;
    min-height: 700px;
    max-height: 700px;
  }
}

footer {
  background-color: #fff;
  box-shadow: 0 50vh 0 50vh #fff, 0 -.125rem .25rem rgba(0,0,0,.075);
}

.e-mail:before {
    content: attr(data-website) "\0040" attr(data-user);
    unicode-bidi: bidi-override;
    direction: rtl;
}

@-ms-viewport{
  width: device-width;
}

img {
  max-width: 100%;
  max-height: 100%;
}

.tile {
  border-radius: 10px;
  background-color: #fff;
  border: 1px solid #ccc;
  margin-right: 12px;
  margin-bottom: 12px;
  padding: 0 !important;
  overflow: hidden;
  min-width: 472px;
}
.tile p {
  margin-bottom: 0;
}

.portrait {
  width: 160px;
  height: 203.65px;
  margin-right: 10px;
  float: left;
  font-size: 0;
  border-right: 1px solid #ccc;
}
.portrait#team_rc {
  background-image: url(img/bg_handshake.png);
  background-size: 300px;
  animation: slide-team_rc 4s infinite;
  animation-timing-function: linear;
}
@keyframes slide-team_rc {
  0% {
    background-position: -79px 0px;
  }
  100% {
    background-position: -18px 0px;
  }
}
.portrait#team_hg {
  background-image: url(img/bg_flasks.png);
  background-size: 250px;
  animation: slide-team_hg 3s infinite;
  animation-timing-function: linear;
}
@keyframes slide-team_hg {
  0% {
    background-position: -40px -40px;
  }
  100% {
    background-position: -55.5px -12.5px;
  }
}
.portrait#team_ca {
  background-image: url(img/bg_binary.png);
  background-size: 198px;
  animation: slide-team_ca 15s infinite;
  animation-timing-function: linear;
}
@keyframes slide-team_ca {
  0% {
    background-position: -6px -218px;
  }
  100% {
    background-position: -6px 0px;
  }
}
.portrait img {
  display: block;
  line-height: 0;
}
.bio {
  float: left;
  width: 300px;
  padding: 5px 5px 0px 2px;
}
.bio .position {
  margin-bottom:6px;
}

#mc_embed_signup {
  max-width: 500px;
  margin: auto;
}

@media screen and (min-width: 768px) {
  .bio {
    width: 400px;
  }
}
