@font-face {
  font-family: 'habenmdslktrweb';
  src: url('../fonts/haben-mdslktrweb-webfont.woff2') format('woff2'),
       url('../fonts/haben-mdslktrweb-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'commodore_64_roundedregular';
  src: url('../fonts/commodore_rounded_v1.2-webfont.woff2') format('woff2'),
       url('../fonts/commodore_rounded_v1.2-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}

ol,
ul {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquote:before,
blockquote:after {
  content: '';
  content: none;
}

q:before,
q:after {
  content: '';
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

body,
html {
  color: #fff;
  font-size: 54px;
  line-height: 1;
  background: #000;
  font-family: 'commodore_64_roundedregular';
  height: 100%;
  width: 100%;
  overflow: hidden;
}

a,
a:hover,
a:visited,
a:focus {
  color: #fff;
  text-decoration: none;
}

#wrapper {
  height: 100%;
  width: 100%;
  overflow: hidden;
  background-color: #2b2829;
}

.background {
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.background__media {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

#logo {
  position: absolute;
  top: 30px;
  left: 30px;
}

#links {
  position: absolute;
  bottom: 30px;
  left: 30px;
  width: calc(100% - 60px);
}

.link {
  position: relative;
  mix-blend-mode: difference;
}

.link__title,
.link__hover {
  transition: opacity 0.3s;
}

.link__hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  white-space: nowrap;
  overflow: hidden;
  opacity: 0;
}

@media screen and (min-width: 1024px) {
  .link:hover .link__title {
    opacity: 0;
  }

  .link:hover .link__hover {
    opacity: 1;
  }

/*  #wrapper {
    -webkit-animation: bounce 0.8s;
            animation: bounce 0.8s;
    -webkit-animation-iteration-count: infinite;
            animation-iteration-count: infinite;
  }*/
}

/*MOBILE*/

@media screen and (max-width: 1280px) {
  body,
  html {
    font-size: 60px;
  }
}

@media screen and (max-width: 1152px) {
  body,
  html {
    font-size: 54px;
  }
}

@media screen and (max-width: 1024px) {
  body,
  html {
    font-size: 44px;
  }
}

@media screen and (max-width: 800px) {
  body,
  html {
    font-size: 36px;
  }

  #links {
    bottom: 15px;
    left: 15px;
  }
}

@media screen and (max-width: 500px) {
  #logo {
    top: 15px;
    left: 15px;
  }

  #wrapper {
    background-position: center -180px;
    background-size: 155%;
  }
}

@media screen and (max-width: 320px) {
  body,
  html {
    font-size: 42px;
  }
}

@-webkit-keyframes bounce {
  0%,
  5%,
  20%,
  45%,
  65%,
  75%,
  90%,
  100% {
    -webkit-transform: translate(0px, 0px) rotate(0deg) scale(1);
            transform: translate(0px, 0px) rotate(0deg) scale(1);
  }
  10% {
    -webkit-transform: translate(0px) rotate(0.2deg) scale(1.001);
            transform: translate(0px) rotate(0.2deg) scale(1.001);
  }
  25% {
    -webkit-transform: translate(-3px, 3px) rotate(-0.1deg) scale(1);
            transform: translate(-3px, 3px) rotate(-0.1deg) scale(1);
  }
  30% {
    -webkit-transform: translate(0px) rotate(0.2deg) scale(1.001);
            transform: translate(0px) rotate(0.2deg) scale(1.001);
  }
  60% {
    -webkit-transform: translate(2px, 2px) rotate(-0.25deg) scale(0.9975);
            transform: translate(2px, 2px) rotate(-0.25deg) scale(0.9975);
  }
  70% {
    -webkit-transform: translate(0px) rotate(0.1deg) scale(1.001);
            transform: translate(0px) rotate(0.1deg) scale(1.001);
  }
  80% {
    -webkit-transform: translate(-3px, 3px) rotate(-0.2deg) scale(1);
            transform: translate(-3px, 3px) rotate(-0.2deg) scale(1);
  }
  95% {
    -webkit-transform: translate(0px) rotate(0.15deg) scale(1.001);
            transform: translate(0px) rotate(0.15deg) scale(1.001);
  }
}
