@keyframes bounce {
  0% {
    color: black;
  }

  25% {
    transform: rotate(-10deg) scale(0.85, 0.85);
  }

  50% {
    transform: scale(1.25, 1.25) rotate(0deg);
    text-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
    color: white;
  }

  75% {
    transform: rotate(10deg) scale(0.85, 0.85);
  }
}

@keyframes shake {
  0% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(20px);
  }
}

@keyframes wobble {
  20% {
    transform-style: preserve-3d;
    transform: rotateX(10deg) rotateY(10deg);
  }

  40% {
    transform: rotateX(-10deg) rotateY(-10deg);
  }

  60% {
    transform: rotateX(-10deg) rotateY(10deg);
  }

  80% {
    transform: rotateX(10deg) rotateY(-10deg);
  }

  100% {
    transform: rotate3d(0);
  }
}

@keyframes rotate {
  0% {
    transform: rotate(0);
  }

  20% {
    transform: rotate(-12deg);
  }

  30% {
    transform: rotate(12deg);
  }

  38% {
    transform: rotate(-8deg);
  }

  46% {
    transform: rotate(8deg);
  }

  51% {
    transform: rotate(-4deg);
  }

  56% {
    transform: rotate(4deg);
  }

  60% {
    transform: rotate(0);
  }
}

@keyframes underline {
  0% {
    width: 0;
    border-bottom: 2px solid transparent;
  }

  50% {
    border-bottom: 2px solid white;
    width: 250px;
  }

  100% {
    border-bottom: 2px solid transparent;
  }
}

@keyframes remove {
  100% {
    transform: none;
  }
}

html {
  font-size: 18px;
}

body {
  margin: 0;
  font-family: "Roboto", sans-serif;
  background-attachment: fixed;
  background-size: cover;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-image: linear-gradient(to bottom right, #00bdde, #239bde);
  background-color: #00bdde;
}

.background {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  transition: opacity 5s ease;
  opacity: 0;
}

.err {
  position: absolute;
  text-align: center;
  left: 2%;
  animation: 5s rotate 1s;
}

@media (min-height: 605px) {
  .err {
    top: 5%;
  }
}

@media (max-height: 604px) and (max-width: 700px) {
  .err {
    transform: rotate(-90deg);
    left: -56px;
    top: 36px;
    font-size: 40px;
    animation: none;
  }

  .err span:last-child {
    opacity: 0;
  }
}

@media (min-width: 900px) {
  .err {
    left: 20%;
    margin-left: -108px;
  }
}

@media (min-width: 900px) and (min-height: 605px) {
  .err {
    top: 15%;
  }
}

.err span {
  color: rgba(0, 0, 0, 0.4);
  display: block;
}

.err span:first-child {
  font-size: 125px;
}

@media (max-height: 604px) and (max-width: 700px) {
  .err span:first-child {
    font-size: 100px;
  }
}

.err span:last-child {
  font-size: 23px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transform: translateY(-30px);
}

section {
  min-height: 100vh;
}

a.home {
  display: block;
  color: white;
  font-size: 1.3rem;
  font-weight: 300;
  width: 250px;
  margin: 0 auto;
  text-transform: uppercase;
  text-decoration: none;
  z-index: 50;
  position: relative;
  text-decoration: none;
  overflow: clip;
  transition: all 0.25s ease;
  font-weight: 300;
  padding-top: 20px;
  border-bottom: 2px solid transparent;
}

a.home::before {
  content: " ";
  position: absolute;
  top: 0;
  right: 50%;
  margin-right: -125px;
  width: 250px;
  animation: underline 4s ease infinite 4s;
  padding-top: inherit;
  white-space: pre;
  border-bottom: 2px solid transparent;
  transition: opacity 0.25s ease 0.25s;
}

@media (max-height: 604px) and (max-width: 700px) {
  a.home::before {
    animation: underline 4s ease infinite 0s;
  }
}

a.home:hover {
  width: 155px;
  border-bottom: 2px solid white;
}

a.home:hover::before {
  opacity: 0;
  animation-play-state: paused;
  transition: opacity 0s;
}

a.home span {
  font-size: inherit;
  transition: all 0.25s ease;
  vertical-align: middle;
}

a.home span:first-child {
  vertical-align: middle;
  animation: shake 1s ease-in alternate infinite 4s;
}

@media (max-height: 604px) and (max-width: 700px) {
  a.home span:first-child {
    animation: shake 1s ease-in alternate infinite 0s;
  }
}

a.home span:last-child {
  vertical-align: middle;
  float: right;
}

a.home:hover {
  text-shadow: 0 0 2px grey;
}

a.home:hover span:first-child {
  animation-play-state: paused;
}

header {
  display: block;
  width: 100%;
  overflow: hidden;
  padding: 0 0 30px 0;
  position: relative;
  z-index: 25;
}

@media (min-height: 605px) {
  header {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }
}

header img.logo {
  display: block;
  width: 250px;
  margin: 0 auto;
  filter: invert(100%);
  transition: all 0.25s ease;
  cursor: pointer;
}

header img.logo:hover {
  filter: invert(100%) drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.5));
}

header h3 {
  text-align: center;
  font-size: 31px;
  font-family: "Roboto", sans-serif;
  position: relative;
  top: 31px;
  text-transform: uppercase;
  color: white;
  letter-spacing: 6px;
  left: 18px;
  font-weight: 100;
}

header .links {
  display: flex;
  text-transform: uppercase;
  text-align: left;
  display: block;
  width: 250px;
  margin: 0 auto;
  padding: 25px 0;
  font-weight: 900;
  justify-content: space-around;
}

header .links span {
  display: block;
  padding-bottom: 10px;
}

header .links ul {
  display: flex;
  list-style-type: none;
  justify-content: space-between;
}

header .links ul li {
  display: inline;
}

header .links ul li a {
  text-decoration: none;
  color: black;
  width: 50px;
  height: 50px;
  font-size: 50px;
}

header .links ul li:hover a {
  animation: bounce 0.6s ease;
}

header .links ul li.animate a {
  animation: bounce 0.6s ease;
}

header span {
  display: block;
  width: 250px;
  margin: 0 auto;
}

header span.info {
  text-transform: uppercase;
  font-weight: 900;
}

header span.email a {
  text-decoration: none;
  color: white;
  padding: 5px 0;
  display: block;
  transition: all 0.25s ease;
  z-index: 5;
}

header span.email a mark {
  background: transparent;
  transition: all 0.25s ease;
  color: white;
  border-bottom: 2px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 rgba(255, 255, 255, 0.5) inset;
}

header span.email a mark:hover {
  box-shadow: 275px 0 0 rgba(255, 255, 255, 0.5) inset;
  border-bottom: 2px solid transparent;
  color: black;
}


a.button {
  text-align: center;
  text-decoration: none;
  color: black;
  display: inline-block;
  height: 50px;
  width: 150px;
  line-height: 50px;
  display: block;
  margin: 15px auto 0 auto;
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -ms-border-radius: 5px;
  border: none;
  background-color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.25s ease;
  -webkit-transition: all 0.25s ease;
  -moz-transition: all 0.25s ease;
  -ms-transition: all 0.25s ease;
}

a.button:hover {
  width: 180px;
  background-color: rgba(255, 255, 255, 0.65);
}