
 /*Background*/

 
 .bg {
    animation:slide 3s ease-in-out infinite alternate;
    background-image: linear-gradient(-60deg, rgb(155, 161, 237) 50%, rgb(161, 224, 231) 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%);
    }
  }


 /*Background*/

 
/* <!--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--> */
 
  p2 {
    image-rendering: center; 
    display: flex;
justify-content: center;
align-items: center;
}

p {
    width: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 20px;
    text-align: center;
  }
  
 
  .wrapper {
    padding-top: 100px;
    width: 900px;
    height: 500px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    
  }
  
  .main-element {
    position: absolute;
    top: 1%;
    left: 1%;
    display: block;
    height: 98%;
    width: 98%;
    margin: auto;
    align-self: center;
    background: #9effc0;
    z-index: 1;
  }
  
  .border {
    position: absolute;
    display: block;
    top: -50%;
    left: -50%;
    z-index: -9;
    display: block;
    height: 200%;
    width: 200%;
    transform: rotate(-45deg);
    overflow: hidden;
    background: linear-gradient(to right, #fff 20%, #fff 40%, #9549ff 50%, #75fdff 100%, #fff 70%, #fff 100%);
    background-size: 200% auto;

    
    animation: shine 2s linear infinite;
  }
  
  /*Begin shimmer code*/
  
  @keyframes shine {
      to {
        background-position: 200% center;
      }
  }


  main-element {
    font-size: 90px;
  font-family: 'Trebuchet MS', sans-serif;
  text-align: center;
  }

  @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;
    }
  }
 