@import url(//fonts.googleapis.com/css?family=Lato:300:400);

body {
  margin:0;
}

.header {
  position:relative;
  text-align:center;
  background: transparent;
   color:white;
}

.inner-header {
  height:2vh;
  width:100%;
  margin: 0;
  padding: 0;
}

.flex { /*Flexbox for containers*/
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.waves {
  position:relative;
  width: 100%;
  height:20vh;
  margin-bottom:-7px;
  min-height:50px;
  max-height:5px;
}

/* Animation */

.parallax > use {
  animation: move-forever 25s cubic-bezier(.55,.5,.45,.5)     infinite;
}
.parallax > use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 7s;
}
.parallax > use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 10s;
}
.parallax > use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 13s;
}
.parallax > use:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 20s;
}
@keyframes move-forever {
  0% {
   transform: translate3d(-90px,0,0);
  }
  100% { 
    transform: translate3d(85px,0,0);
  }
}
/*Shrinking for mobile*/
@media (max-width: 768px) {
  .waves {
    height:40px;
    min-height:40px;
  }
  .content {
    height:30vh;
  }
  h1 {
    font-size:24px;
  }
}




/* <!--navbar--> */
nav {
    margin: 27px auto 0;
  
    position: relative;
    width: 1000px;
    height: 50px;
    background-color: #34495e;
    border-radius: 8px;
    font-size: 0;
  }
  nav a {
    line-height: 50px;
    height: 100%;
    font-size: 15px;
    display: inline-block;
    position: relative;
    z-index: 1;
    text-decoration: none;
    text-transform: uppercase;
    text-align: center;
    color: white;
    cursor: pointer;
  }
  nav .animation {
    position: absolute;
    height: 100%;
    top: 0;
    z-index: 0;
    transition: all .5s ease 0s;
    border-radius: 8px;
  }
  a:nth-child(1) {
    width: 100px;
  }
  a:nth-child(2) {
    width: 110px;
  }
  a:nth-child(3) {
    width: 100px;
  }
  a:nth-child(4) {
    width: 160px;
  }
  a:nth-child(5) {
    width: 120px;
  }
  a:nth-child(6) {
    width: 100px;
  }
  a:nth-child(7) {
    width: 100px;
  }
  a:nth-child(8) {
    width: 100px;
  }
  a:nth-child(9) {
    width: 100px;
  }
  nav .start-home, a:nth-child(1):hover~.animation {
    width: 100px;
    left: 0;
    background-color: #8be1d0;
  }
  nav .start-about, a:nth-child(2):hover~.animation {
    width: 110px;
    left: 100px;
    background-color: #fca399;
  }
  nav .start-blog, a:nth-child(3):hover~.animation {
    width: 100px;
    left: 210px;
    background-color: #99d6ff;
  }
  nav .start-portefolio, a:nth-child(4):hover~.animation {
    width: 160px;
    left: 310px;
    background-color: #e4aef9;
  }
  nav .start-contact, a:nth-child(5):hover~.animation {
    width: 120px;
    left: 470px;
    background-color: #f9c393;
  }
  nav .start-contact, a:nth-child(6):hover~.animation {
    width: 120px;
    left: 580px;
    background-color: #ff82e8;
  }
  nav .start-contact, a:nth-child(7):hover~.animation {
    width: 120px;
    left: 680px;
    background-color: #a2e3ee;
  }
  nav .start-contact, a:nth-child(8):hover~.animation {
    width: 120px;
    left: 780px;
    background-color: #65e7a2;
  }
  nav .start-contact, a:nth-child(9):hover~.animation {
    width: 120px;
    left: 880px;
    background-color: #9aa7ff;
  }
  
  body {
    font-size: 12px;
    font-family: sans-serif;
   
  }
  /* <!--navbar ending--> */

  
  h1 {
    font-family: 'Trebuchet MS', sans-serif;
    text-align: center;
  }
  body{
    background-size: cover;
    font-family: 'Trebuchet MS', sans-serif; 
    font: center;
    color: white;
    text-align: center;
  }
  .container{
    display: inline-block;
  }
  .typed-out{
    overflow: hidden;
    border-right: .15em solid blue;
    white-space: nowrap;
    font-size: 1.6rem;
    width: 0;
    animation: typing 3s steps(50, end) forwards, blink .8s infinite;
   
  }
  @keyframes blink {
  from { border-color: transparent }
  to { border-color: blue; }
}
  @keyframes typing {
    from { width: 0 }
    to { width: 100% }
  }

  p{
    display: center; 
    border-radius: 30px;
    border: solid 5px;
    border-color: white; 
    background: white;
    color: blue;
    font-family: system-ui;
    margin-left: auto;
margin-right: auto;
width: 40em;
font-size: 24px; 

}

p {
a {
outline-color: transparent;
}

a:link {
color: #c296ff;
}

a:visited {
color: #7e97fc;
}

a:focus {
text-decoration: none;
background: #9399fd;
}

a:hover {
text-decoration: none;
background: #a1ecf9;
}

a:active {
background: #6900ff;
color: #cdfeaa;
}
}

html {
height:100%;
}

body {
margin:0;
}


/*background*/
.bg {
animation:slide 3s ease-in-out infinite alternate;
background-image: linear-gradient(-60deg, rgb(103, 212, 252) 50%, rgb(165, 172, 245) 50%);
bottom:0;
left:-50%;
opacity:.5;
position:fixed;
right:-50%;
top:0;
z-index:-1;
}

.bg2 {
animation-direction:alternate-reverse;
animation-duration:4s;
}

.bg3 {
animation-duration:10s;
}



@keyframes slide {
0% {
transform:translateX(-20%);
}
100% {
transform:translateX(20%);
}
}
