html {
  background: url("bg.png") repeat;
}

body {
  font: 13px "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.4;
  color: #666;
  min-width: 960px;
}

h1 {
  font-weight: bold;
  font-size: 20px;
  color: #333;
}

h2 {
  font-weight: bold;
  font-size: 20px;
  color: #0084b4;
}

a:link, a:visited {
  color: #0084b4;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

#wrapper {
  position: relative;
  width: 960px;
  margin: 0 auto;
  padding: 20px 0;
}

#main {
  height: 400px;
  text-align: center;
}

#main, div.header, li.repo {
  background: white;
  background: rgba(255, 255, 255, 0.7);
  -moz-box-shadow:    0 0 5px 1px rgba(0, 0, 0, 0.1);
  -webkit-box-shadow: 0 0 5px 1px rgba(0, 0, 0, 0.1);
  box-shadow:         0 0 5px 1px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

#main h1 {
  margin: 30px 0;
}

#main h1, #main p {
  margin-left: 15px;
  margin-right: 15px;
}

#main p {
  font-size: 11px;
  line-height: 2;
}

#logo {
  width: 190px;
  height: 190px;
  margin: 15px 0 0 15px;
  background: url("https://media.licdn.com/mpr/mpr/shrinknp_400_400/p/6/000/1ab/3ba/0d325ea.jpg");
  text-indent: -99999px;
  background-size: cover;
}

#logo h1 {
  margin: 0;
}

div.header {
  height: 130px;
}

div.header h1, div.header p {
  margin: 10px 15px 0;
}

div.header h1 {
  margin-bottom: 10px;
}

#num-repos, #num-members {
  font-size: 14px;
  font-weight: bold;
  color: #0084b4;
  line-height: 15px;
}

#statistics a:link, #statistics a:visited {
  color: inherit;
}

#statistics p.email {
  margin-top: 6px;
  font-size: 11px;
}

#recently-updated h1 a {
  font-weight: normal;
  font-size: 11px;
}

#recently-updated-repos {
  margin-left: 15px;
}

#recently-updated-repos li {
  line-height: 1.5;
}

#recently-updated-repos li span {
  display: inline-block;
  padding: 0 1px;
}

#recently-updated-repos li span {
  font-size: 11px;
}

#recently-updated-repos li span.name {
  padding: 0 6px 0;
  font-size: 13px;
}

#recently-updated-repos li span.time a,
#recently-updated-repos li span.watchers a,
#recently-updated-repos li span.forks a {
  color: #999;
}

li.repo {
  height: 250px;
}

li.repo > a {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

li.repo a:hover {
  background: #efefef;
  background: rgba(0, 0, 0, 0.05);
}

li.repo h2, li.repo h3, li.repo p {
  margin: 10px 15px;
}

li.repo h2 {
  margin-bottom: 2px;
  max-width: 160px;
  overflow: hidden;
}

li.repo h3 {
  font-size: 11px;
  margin-top: 2px;
  margin-bottom: 15px;
  color: #999;
}

.repo:after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 0;
  height: 0;
  border-bottom: 50px solid transparent;
  border-left: 50px solid transparent;
  border-right: 50px solid #0080b0;
  pointer-events: none;
}

.repo.javascript:after {
  border-right-color: #333;
}

.repo.scala:after {
  border-right-color: #7ac9de;
}

.repo.ruby:after {
  border-right-color: #cc1100;
}

.repo.java:after {
  border-right-color: #cc8300;
}

.repo.python:after {
  border-right-color: #6aad2d;
}

@keyframes small-swing { 0% { margin-top: 0 } 50% { margin-top: -10px } 100% { margin-top: 0 } }
@-moz-keyframes small-swing { 0% { margin-top: 0 } 50% { margin-top: -10px } 100% { margin-top: 0 } }
@-webkit-keyframes small-swing { 0% { margin-top: 0 } 50% { margin-top: -10px } 100% { margin-top: 0 } }
@-ms-keyframes small-swing { 0% { margin-top: 0 } 50% { margin-top: -10px } 100% { margin-top: 0 } }

@keyframes medium-swing { 0% { margin-top: 0 } 50% { margin-top: -20px } 100% { margin-top: 0 } }
@-moz-keyframes medium-swing { 0% { margin-top: 0 } 50% { margin-top: -20px } 100% { margin-top: 0 } }
@-webkit-keyframes medium-swing { 0% { margin-top: 0 } 50% { margin-top: -20px } 100% { margin-top: 0 } }
@-ms-keyframes medium-swing { 0% { margin-top: 0 } 50% { margin-top: -20px } 100% { margin-top: 0 } }

@keyframes large-swing { 0% { margin-top: 0 } 50% { margin-top: -40px } 100% { margin-top: 0 } }
@-moz-keyframes large-swing { 0% { margin-top: 0 } 50% { margin-top: -40px } 100% { margin-top: 0 } }
@-webkit-keyframes large-swing { 0% { margin-top: 0 } 50% { margin-top: -40px } 100% { margin-top: 0 } }
@-ms-keyframes large-swing { 0% { margin-top: 0 } 50% { margin-top: -40px } 100% { margin-top: 0 } }

.larry.size-smaller, .larry.size-small {
  animation: small-swing 0.5s infinite ease-in-out;
  -moz-animation: small-swing 0.5s infinite ease-in-out;
  -webkit-animation: small-swing 0.5s infinite ease-in-out;
  -ms-animation: small-swing 0.5s infinite ease-in-out;
}

.larry.size-medium, .larry.size-large {
  animation: medium-swing 1.25s infinite ease-in-out;
  -moz-animation: medium-swing 1.25s infinite ease-in-out;
  -webkit-animation: medium-swing 1.25s infinite ease-in-out;
  -ms-animation: medium-swing 1.25s infinite ease-in-out;
}

.larry.size-medium, .larry.size-fat {
  animation: large-swing 1.5s infinite ease-in-out;
  -moz-animation: large-swing 1.5s infinite ease-in-out;
  -webkit-animation: large-swing 1.5s infinite ease-in-out;
  -ms-animation: large-swing 1.5s infinite ease-in-out;
}

#flyzone {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

@media screen and (max-width: 1000px) {
  body {
    min-width: inherit;  
  }
  
  #wrapper {
    width: 95%;
  }
  
  #main {
    width: 100%;
    display: inline-block;
    float: none;
    height: auto;
    padding-bottom: 20px;
    margin: 0 auto 20px;
  }
  
  #logo {
    margin: 15px auto;
  }
  
  .grid .grid-2 {
    width: 80%;
  }
  
  .grid .grid-3 {
    width: 100%;
    margin-left: 0;
    display: flex;
    justify-content: space-between;
  }
  
  #repos {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
  }
  
  li.repo {
    width: 30%;
    margin-right: 0;
    display: inline-block;
    margin-left: 0;
  }
}

@media screen and (max-width: 730px) {
  li.repo {
    min-width: 49%;
  }
}

@media screen and (max-width: 530px) {
  .grid .grid-3 {
    flex-direction: column;
  }
  
  .grid .grid-1,
  .grid .grid-2 {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
  }
}
