body{
    background-color: black;
    margin: 0;
}
.sidenav{
    height: 100%;
    width: 200px;
    background-color: black;
    position: fixed;
    overflow-x: hidden;
    z-index: 1;
}
.sidenav a{
    margin-top: 50px;
    margin-left: 20px;
    display: block;
    color: silver;
    text-decoration: none;
}
.sidenav a:hover{
    color: white;
}
.sidenav img{
    margin-top: 20px;
    margin-left: 20px;
    width: 150px;
}

.main{
    justify-content: center;
    margin-top: 0px;
}
#info{
    width: 1000px;
    height: 70%;
    margin: 0 auto;
    text-align: center;
    transform: translateY(150px);
    opacity: 0;
    transition: 1s all ease;
}
#info.active{
    transform: translateX(0);
    opacity: 1;
  }
#top{
    width: 1000px;
    margin: 0 auto;
}
#top img{  
    margin-top: 50px;
}
#info h4{
    font-family: "Sofia", sans-serif;
    font-size: 20px;
    font-weight: lighter;
    animation-duration: 1s;
    animation-name: glissement;
    animation-iteration-count: inherit;
}
#info h2{
    font: 2vw/1 Permanent Marker;
    animation-duration: 1s;
    animation-name: glissement;
    animation-iteration-count: inherit;
}
#info p{
  animation-duration: 2s;
  animation-name: glissement;
  animation-iteration-count: inherit;
}
@keyframes glissement {
    from {
      margin-left: 100%;
      width: 300%;
    }
  
    to {
      margin-left: 0%;
      width: 100%;
    }
  }
#work{
    width: 800px;
    margin: 0 auto;
    text-align: center;
    transform: translateY(150px);
    opacity: 0;
    transition: 1s all ease;
}
#work.active{
    transform: translateY(0);
    opacity: 1;
  }
#work h4{
    font-family: "Sofia", sans-serif;
    font-weight: lighter;
}
#work img{
    padding: 10px;
    margin: 0 auto;
    height: 250px;
    width: 150px;
}
#activity{
    margin: 0 auto;
    text-align: center;
    width: 800px;
    height: 400px;
    transform: translateY(150px);
    opacity: 0;
    transition: 1s all ease;
}
#activity.active{
    transform: translateY(0);
    opacity: 1;
}
.overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    transition: opacity 500ms;
    visibility: hidden;
    opacity: 0;
  }
  .overlay:target {
    visibility: visible;
    opacity: 1;
  }
  #activity:target{
    visibility: visible;
    margin-top: 100px;
  }
  .popup {
    margin: 70px auto;
    padding: 20px;
    background: #fff;
    border-radius: 35px;
    /*width: 30%;*/
    position: relative;
    transition: all 1s ease;
  }
  
  .popup h2 {
    margin-top: 0;
    color: #111;
    font-family: Tahoma, Arial, sans-serif;
  }
  .popup .close {
    position: absolute;
    top: 20px;
    right: 30px;
    transition: all 200ms;
    font-size: 30px;
    font-weight: bold;
    text-decoration: none;
    color: red;
  }
  .popup .close:hover {
    color: hsl(352, 95%, 44%);
  }
  .popup .content {
    max-height: 30%;
    overflow: auto;
  }
  .p-content{
    font-family: "Sofia", sans-serif;
    font-size: large;
    color: white;
  }
#activity h4{
    color: #fff;
    font-family: "Sofia", sans-serif;
    font-weight: lighter;
}
#activity p{
    color: #fff;
    font-family: "Sofia", sans-serif;
    font-weight: lighter;
}
hr.new{
    border-top: 1px dashed red;
}
.tint:before {
    background: rgba(0, 0, 255, 0.5);
  }
  .main:after{
    content: "";
    display: table;
    clear: both;
}
.footer{
    margin: 0 auto;
    margin-top: 30px;
    text-align: center;
    padding: 20px;
    background: #ddd;
    opacity: 0;
    transition: 1s all ease;
}
.footer div{
    margin-top: 20px;
    height: 5px;
}
.footer i{
  color: #fff;
}
.footer.active{
    height: 160px;
    align-items: center;
    transform: translateY(0);
    opacity: 1;
    background-color: rgb(39, 40, 40);
  }
h1, h2, h4, a, p{
    color: #ddd;
}
#man{
  color: black;
    width: 200px;
    height: 500px;
    margin-left: 0px;
    margin-top: 50px;
    position: fixed;
    animation: fadeIn 3s infinite;
}
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
  }

@media screen and (max-width: 1024px) {
    .sidenav {
      width: 100%;
      height: 60px;
      position: fixed;
    }
    .sidenav a{
      margin-top: 0;
      display: inline-block;
    }
    .sidenav img{
      height: 50px;
      width: 50px;
      margin-left: 5px;
      margin-top: 0px;
    }
    #top{
      width: 300px;
      display: block;
    }
    #top img{  
      margin-top: 100px;
  }
    #info{
      width: 300px;
    }
    #info img{
      margin-top: 20px;
      width: 100px;
      height: 100px;
    }
    #info h4{
      font-size: 16px;
    }
    #info h2{
      font-size: 20px;
    }
    #work{
      width: 300px;
    }
    #man{
      width: 50px;
      height: 120px;
      margin-left: 0px;
  }
  #activity{
    width: 100%;
  }
  .overlay img{
    height: 120px;
  }
  .popup{
    margin-top: 5px;
    padding: 5px;
  }
  .popup .close{
    top: 0px;
  }
  .p-content{
    font-weight: bold;
    font-size: 10px;
    color: black;
  }
  .footer.active{
    height: 120px;
  }
  .footer div{
    margin-top: 20px;
  }
  }

  @media screen and (max-width: 800px) {
    .sidenav {
      width: 100%;
      height: 60px;
      position: fixed;
    }
    .sidenav a{
      margin-top: 0;
      display: inline-block;
    }
    .sidenav img{
      height: 50px;
      width: 50px;
      margin-left: 5px;
      margin-top: 0px;
    }
    #top{
      width: 300px;
      display: block;
    }
    #top img{  
      margin-top: 100px;
  }
    #info{
      width: 300px;
    }
    #info img{
      margin-top: 20px;
      width: 60px;
      height: 60px;
    }
    #info h4{
      font-size: 16px;
    }
    #info h2{
      font-size: 20px;
    }
    #work{
      width: 300px;
    }
    #man{
      width: 40px;
      height: 120px;
      margin-left: 0px;
  }
  #activity{
    width: 100%;
  }
  .overlay img{
    height: 120px;
  }
  .popup{
    margin-top: 5px;
    padding: 5px;
  }
  .popup .close{
    top: 0px;
  }
  .p-content{
    font-weight: bold;
    font-size: 10px;
    color: black;
  }
  .footer.active{
    height: 160px;
  }
  .footer div{
    margin-top: 10px;
  }
  }
