html, body {
  margin: 0 auto;
  padding: 0 auto;
  scroll-behavior: smooth;
}

ul {
  text-decoration: none;
  list-style: none;
}

nav {
  background: #090139;
  height: 60px;
  width: 100%;
  position: fixed;
  z-index: 5;
  box-sizing: border-box;
}

nav .navlist {
  float: right;
}

nav .navlist li {
  display: inline-block;
  line-height: 30px;
  margin: 0 5px;
}

nav .navlist li a {
  border-radius: 3px;
  padding: 7px 13px;
}

label.logo {
  color: white;
  font-size: 35px;
  line-height: 55px;
  padding: 0 30px;
  font-weight: bold;
}

nav a:active, nav a:hover {
  background: #1b9bff;
  transition: 0.5s;
}

.checkbtn {
  float: right;
  color: white;
  font-size: 35px;
  line-height: 55px;
  margin-right: 40px;
  cursor: pointer;
  display: none;
}

#check {
  display: none;
}

@media (max-width: 952px) {
  label.logo {
    font-size: 30px;
    padding-left: 50px;
  }

  nav .navlist li a {
    font-size: 16px;
  }
}

@media (max-width:858px) {
  .checkbtn {
    display: block;
  }

  .navlist {
    margin: 0;
    padding: 0;
    position: fixed;
    width: 100vw;
    height: 100vh;
    background: #2c3e50;
    right: -100%;
    text-align: center;
    transition: all 0.5s;
  }

  nav .navlist li {
    display: block;
    margin: 50px 0;
  }

  a:hover, a:active {
    background: #0082e6;
  }

  #check:checked~.navlist {
    right: 0;
  }
}

body {
  font-family: 'Ubuntu', Arial;
  font-weight: 100;
  background-color: #E4E4E4;
}

h2 {
  font-size: 50px;
  text-align: center;
  margin: 0;
  padding-top: 20px;
  color: white;
}

.intro {
  height: 100vh;
  background: #000e26;
}

.intro .div-one {
  background: url('http://farm1.staticflickr.com//447//19585243302_fae38fd86f_o.jpg');
  width: 100%;
  height: 100vh;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.intro .div-two {
  -webkit-clip-path: polygon(100vw 0, 0% 100%, 100vw 100vh);
  clip-path: polygon(100vw 0, 0% 100vh, 100vw 100vh);
  background: url('resources/forrest.jpg');
  width: 100%;
  height: 100vh;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: bottom;
}

.intro span {
  position: absolute;
}

#firstname {
  position: absolute;
  top: 50%;
  left: 41%;
  transform: translate(-50%, -50%);
  animation: fill 0.5s ease forwards 4.5s;
}

#firstname path:nth-child(1) {
  stroke-dasharray: 438px;
  stroke-dashoffset: -438px;
  animation: line-anim 2s ease forwards;
}

#firstname path:nth-child(2) {
  stroke-dasharray: 282px;
  stroke-dashoffset: -282px;
  animation: line-anim 2s ease forwards 0.3s;
}

#firstname path:nth-child(3) {
  stroke-dasharray: 409px;
  stroke-dashoffset: -409px;
  animation: line-anim 2s ease forwards 0.6s;
}

#firstname path:nth-child(4) {
  stroke-dasharray: 409px;
  stroke-dashoffset: -409px;
  animation: line-anim 2s ease forwards 0.9s;
}

#firstname path:nth-child(5) {
  stroke-dasharray: 282px;
  stroke-dashoffset: -282px;
  animation: line-anim 2s ease forwards 1.2s;
}

@keyframes line-anim {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fill {
  from {
    fill: transparent;
  }

  to {
    fill: white;
  }
}

#lastname {
  position: absolute;
  top: 50%;
  left: 66%;
  transform: translate(-50%, -50%);
  animation: fill 0.5s ease forwards 4.5s;
}

#lastname path:nth-child(1) {
  stroke-dasharray: 387px;
  stroke-dashoffset: -387px;
  animation: line-anim 2s ease forwards 1.5s;
}

#lastname path:nth-child(2) {
  stroke-dasharray: 576px;
  stroke-dashoffset: -576px;
  animation: line-anim 2s ease forwards 1.8s;
}

#lastname path:nth-child(3) {
  stroke-dasharray: 576px;
  stroke-dashoffset: -576px;
  animation: line-anim 2s ease forwards 2.1s;
}

.slider-wrapper {
  font-size: 70px;
  color: white;
  position: relative;
  font-weight: bold;
  font-family: serif;
  top: 68%;
  left: 52%;
  height: 15vh;
  width: 40%;
  transform: translate(-50%, -50%);
}

.slider-wrapper .list {
  height: 11vh;
  overflow: hidden;
  width: 40vw;
  margin: 0;
  position: absolute;
  left: 8vw;
}

.slider-wrapper li {
  display: block;
  padding: 0 10px;
  height: 70px;
  margin-bottom: 20px;
}

.slider-wrapper ul {
  width: 20vw;
}

.flip4 {
  margin: 0;
  padding: 0;
  animation: flip4 10s cubic-bezier(0.23, 1, 0.32, 1.2) infinite;
}

@keyframes flip4 {
  0% {
    margin-top: -360px;
  }

  5% {
    margin-top: -270px;
  }

  25% {
    margin-top: -270px;
  }

  30% {
    margin-top: -180px;
  }

  50% {
    margin-top: -180px;
  }

  55% {
    margin-top: -90px;
  }

  75% {
    margin-top: -90px;
  }

  80% {
    margin-top: 0px;
  }

  99.99% {
    margin-top: 0px;
  }

  100% {
    margin-top: -270px;
  }
}

.about {
  position: relative;
  display: flex;
  width: 100%;
  margin: 0;
}

.about .content {
  background-color: #001702;
  width: 50%;
  color: white;
  padding: 20px;
}

.about .selfie {
  width: 50%;
  background-color: #004204;
}

.about .selfie img {
  width: 45%;
  position: relative;
  left: 28%;
  top: 5%;
}

.experiences {
  background-color: #181e29;
  padding-bottom: 10px;
  margin: 0 auto;
  padding-top: 40px;
}

.experiences p {
  color: white;
}

.experiences h3 {
  color: white;
}

a {
  text-transform: uppercase;
  text-decoration: none;
}

a:link {
  color: white;
}

a:visited {
  color: white;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 auto;
  margin-top: 30px;
  text-align: center;
  justify-content: space-around;
  grid-column-gap: 5vw;
  width: 100%;
}

.box {
  width: 100%;
}

.box img {
  height: 100%;
  width: 100%;
  max-width: 300px;
  display: inline-block;
}

.overlay {
  position: absolute;
  bottom: 100%;
  left: 50px;
  right: 0;
  background-color: #843086;
  overflow: hidden;
  width: 100%;
  max-width: 350px;
  height: 0;
  transition: .5s ease;
}

.greenoverlay {
  position: absolute;
  bottom: 100%;
  left: 50px;
  right: 0;
  background-color: #99c66b;
  overflow: hidden;
  width: 100%;
  max-width: 350px;
  height: 0;
  transition: .5s ease;
}

.cont {
  position: relative;
}

.cont:hover .overlay{
  bottom: 0;
  height: 100%;
}

.cont:hover .greenoverlay{
  bottom: 0;
  height: 100%;
}

.contacts {
  background-color: #53bccf;
}

.text {
  white-space: nowrap;
  color: white;
  font-size: 20px;
  position: absolute;
  overflow: hidden;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
}

.button {
  display: inline-block;
  border-radius: 4px;
  background-color: #000;
  border: none;
  color: #FFFFFF;
  text-align: center;
  font-size: 28px;
  padding: 20px;
  width: 200px;
  transition: all 0.5s;
  cursor: pointer;
  margin: 0;
  margin-right: 20px;
  margin-left: 115px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.button span {
  cursor: pointer;
  display: inline-block;
  position: relative;
  transition: 0.5s;
}

.button span:after {
  content: '\00bb';
  position: absolute;
  opacity: 0;
  top: 0;
  right: -20px;
  transition: 0.5s;
}

.button:hover span {
  padding-right: 25px;
}

.button:hover span:after {
  opacity: 1;
  right: 0;
}

@media (max-width: 1400px){
  #firstname{
    left: 39%;
  }

  #lastname{
    left: 68%
  }

  .about .selfie img{
    width: 55%;
    top: 6%;
    left: 24%;
  }

  .overlay{
    left: 20px;
  }

  .greenoverlay{
    left: 20px;
  }

  .button{
    margin-right: 10px;
    margin-left: 100px;
  }
}

@media (max-width: 1280px){
  .button{
    margin-left: 80px;
    margin-right: 25px;
  }
}

@media (max-width: 900px) {
  #firstname {
    width: 70%;
    height: 50%;
    position: absolute;
    top: 45vh;
    left: 50vw;
  }

  #lastname {
    position: absolute;
    top: 60vh;
    left: 50vw;
    width: 40%;
  }

  .slider-wrapper {
    font-size: 50px;
  }

  .slider-wrapper .list {
    top: 12vh;
    width: 70vw;
    position: absolute;
    left: -15%;
  }

  .grid {
    display: block;
  }

  .overlay {
    left: 30px;
  }

  .about{
    display: inline-block;
    width: 100%;
  }

  .about .content{
    width: auto;
  }

  .about .selfie{
    width: auto;
    padding: 30px;
    justify-content: center;
  }

  .about .selfie img{
    width: 70%;
    position: relative;
    left: 16%;
  }

  .button{
    margin: 0;
    margin-right: 10px;
    margin-left: 40px;
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 20px;
    width: 150px;
  }
}
