* {
  cursor: none;
}

body {
  background-color: #fefae0;
  display: flex;
  flex-direction: column;
  font-family: "Roboto Slab", Arial, Helvetica, sans-serif;
  color: #333;
  overflow: hidden;
}

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

a:hover {
  background-color: #e9edc9;
}

h1 {
  padding-inline: 5px;
}

.row {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

img {
  user-select: none;
  -moz-user-select: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

.image img {
  margin-left: 5vw;
  margin-bottom: 5vh;
  max-width: 25vmax;
  outline: 10px solid #ccd5ae;
  outline-offset: -20px;
}

#portfolio {
  position: absolute;
  right: 50%;
  transform: translateX(50%);
  top: 0;
}

#portfolio h2 {
  font-weight: 300;
  background-color: #ccd5ae;
  font-size: 4em;
  display: inline;
}
#portfolio h2:hover {
  background-color: #e9edc9;
}

.wrapper {
  margin-top: 15vh;
  margin-left: auto;
  margin-right: auto;
  width: 80%;
}

.center {
  text-align: center;
  margin: auto;
}

#erik,
#andersson {
  font-weight: 300;
}

#martin {
  font-weight: 300;
  background-color: #ccd5ae;
  z-index: 10;
}

.main-name {
  font-size: 6em;
  display: inline;
  transition: 0s;
}

.empty-space {
  height: 15vh;
}

.contact {
  font-size: 1.3em;
}

footer {
  position: fixed;
  bottom: 3px;
  width: 100%;
  clear: both;
}

#snake {
  width: 20vmax;
  height: 20vmax;
}

.game-info img {
  margin-left: 10%;
  max-width: 209px;
  width: 20vmax;
  height: auto;
}

#erik {
  -webkit-animation: 0.5s ease 0s normal forwards 1 fadein;
  animation: 0.5s ease 0s normal forwards 1 fadein;
}
#martin {
  -webkit-animation: 1.5s ease 0s normal forwards 1 fadein;
  animation: 1.5s ease 0s normal forwards 1 fadein;
}
#andersson {
  -webkit-animation: 2.5s ease 0s normal forwards 1 fadein;
  animation: 2.5s ease 0s normal forwards 1 fadein;
}
.image {
  -webkit-animation: 3.5s ease 0s normal forwards 1 fadein;
  animation: 3.5s ease 0s normal forwards 1 fadein;
}
#snake {
  -webkit-animation: 4s ease 0s normal forwards 1 fadein;
  animation: 4s ease 0s normal forwards 1 fadein;
}
.game-info {
  -webkit-animation: 6s ease 0s normal forwards 1 fadein;
  animation: 6s ease 0s normal forwards 1 fadein;
}
#portfolio {
  -webkit-animation: 4s ease 0s normal forwards 1 fadein;
  animation: 4s ease 0s normal forwards 1 fadein;
}

@keyframes fadein {
  0% {
    opacity: 0;
  }
  66% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@-webkit-keyframes fadein {
  0% {
    opacity: 0;
  }
  66% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@media screen and (max-width: 600px) {
  .wrapper {
    margin-left: 0;
    text-align: left;
  }

  .main-name {
    font-size: 8vmax;
    display: inline;
    transition: 0s;
  }

  .empty-space {
    height: 0;
  }

  .row {
    flex-direction: column;
  }

  .contact {
    font-size: 2vmax;
  }

  #snake,
  .game-info {
    visibility: hidden;
    height: 0;
  }
}

@media screen and (max-height: 600px) {
  .ball,
  .inner-ball {
    visibility: hidden;
  }

  .empty-space {
    height: 10vh;
  }

  #snake,
  .game-info {
    visibility: hidden;
    height: 0;
  }

  #portfolio h2 {
    font-size: 2.5em;
  }

  .main-name {
  font-size: 3em;
  display:inline;
}
}

@media only screen and (max-width: 600px) {
  .ball,
  .inner-ball {
    visibility: hidden;
  }

  #portfolio {
    width: 80vw;
    position: sticky;
    top: 0;
  }
  #portfolio h2 {
    font-size: 2.5em;
  }

  .main-name {
  font-size: 3em;
  display:inline;
}
}
