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

@font-face {
    font-family: neosans;
    src: url('../fonts/NeoSansStd-Light.eot');
    src: url('../fonts/NeoSansStd-Light.eot?#iefix') format('embedded-opentype'),
         url('../fonts/NeoSansStd-Light.woff') format('woff'),
         url('../fonts/NeoSansStd-Light.ttf') format('truetype'),
         url('../fonts/NeoSansStd-Light.svg#NeoSansStdMedium') format('svg');
    font-weight: 300;
    font-style: normal;
}

html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}

html, body {
  min-width: 100%;
  min-height: 100%;
}

body {
  margin: 0;
  font-family: neosans;
  font-weight: 200;
}

#main {
  position: relative;
  padding: 5vw;
  z-index: 1;
}

#background {
  position: fixed;
  top: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  background: #333;
  mam: url('../images/background.jpg') no-repeat center center;
  background-size: cover;
  opacity: 1;
}

.things {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  min-width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  margin-bottom: 15vw;
}

.things a {
  display: block;
  flex-shrink: 0;
  position: relative;
  width: 30vw;
  height: 30vw;
  border-radius: 15vw;
  list-style: none;
  transition: background 0.2s, border-radius 0.2s, opacity 0.2s, transform 0.2s;
  -webkit-transition: background 0.2s, border-radius 0.2s, opacity 0.2s, transform 0.2s;
  -moz-transition: background 0.2s, border-radius 0.2s, opacity 0.2s, transform 0.2s;
  background-size: cover;
  background-repeat: none;
  background-position: center center;
  transform: scale(0.6);
  opacity: 1;
  box-shadow: 0 0 100px rgba(0,0,0,.5);
}

@keyframes rotate {
  0% {
    transform: rotate(-30deg);
  }
  96% {
    transform: rotate(30deg);
  }
  98% {
    transform: rotate(210deg);
  }
  100% {
    transform: rotate(330deg);
  }
}

.things a:before {
  content: "";
  position: absolute;
  width: 130%;
  height: 130%;
  left: -15%;
  top: -15%;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  transform: rotate(-35deg);
  animation: rotate 10s linear infinite;
  transition: all 0.5s;
  animation-fill-mode: forwards;
  opacity: 0.35;
}

.things a:hover:before {
  opacity: 1;
}

.things a:hover {
  z-index: 1;
  opacity: 1;
  transform: scale(0.8);
}

.things a span {
  display: none;
  position: absolute;
  padding: 25px;
  text-align: center;
  text-transform: uppercase;
  bottom: 0;
  color: rgba(255,255,255,0.5);
  background: rgba(0,0,0,0.5);
  width: 100%;
  text-decoration: none;
  font-size: 30px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s;
}

.things a:hover span {
  opacity: 1;
  pointer-events: all;
}

h1 {
  text-align: center;
  text-transform: uppercase;
  font-weight: 200;
  font-size: 5vw;
  color: #fff;
  opacity: 0.75;
}

#cuda { background-image: url('../things/cudaHover.jpg'); }
#table { background-image: url('../things/tableHover.jpg'); }
#quickmailer { background-image: url('../things/quickmailer.jpg'); }
#typenine { background-image: url('../things/typenine.gif'); }
#doable { background-image: url('../things/doable.jpg'); }
#menobeik { background-image: url('../things/menobeik.jpg'); }
#nejtilnemid { background-image: url('../things/nejtilnemid.jpg'); }

#cuda:before        { background-image: url('../things/cuda.svg'); animation-delay: -1s; }
#table:before       { background-image: url('../things/table.svg'); animation-delay: -6s; }
#quickmailer:before { background-image: url('../things/quickmailer.svg'); animation-delay: -4s; }
#typenine:before    { background-image: url('../things/typenine.svg'); animation-delay: -2s; }
#doable:before      { background-image: url('../things/doable.svg'); animation-delay: -8s; }
#menobeik:before    { background-image: url('../things/menobeik.svg'); animation-delay: -3s; }
#nejtilnemid:before { background-image: url('../things/nejtilnemid.svg'); animation-delay: -9s; }

@media (max-width: 900px) {
  .things a {
    width: 45vw;
    height: 45vw;
    border-radius: 22.5vw;
  }
}

@media (max-width: 500px) {
  h1 {
    font-size: 9vw;
  }

  .things a {
    width: 90vw;
    height: 90vw;
    border-radius: 45vw;
  }
}
