/* Add media queries for responsiveness - when the screen is 500px wide or less, stack the links on top of each other */
@media screen and (max-width: 750px) {

  html {
    margin: 0;
    padding: 0;
    
  }

  a.logo {
    font-size: 18px;
  }


  header {
    background-color : rgb(230, 228, 228);
    padding : 40px 15px;
    margin-bottom: 2em;
    max-width: 100%;
    width: auto;
  }

  .header-right {
    width: 100%;
    margin-top: .6em;
    display: flex;
    flex-flow: wrap;
    justify-content: space-evenly;
    align-items: baseline;
  }

  .header-right #hidden {
    display: none;
  }

  .header-right img {
    vertical-align: top;
  }

  .header-right a {
    padding : 0px 5px
  }

  body {
    padding: 0;
    width: 100%;
  }

  .pagecontainer {
    margin : 2em 1em;
    display : block;
  }

  aside {
    min-width: none;
    max-width: none;
    margin :auto;
    padding : 1em;
    margin-bottom: 2em;
    background-color: white;
    
  }

  aside ul li a {
    padding-right: 0;
  }

  .about-bar li {
    width : 45%;
    padding : 15px 5px;
    text-align : center;
  }

  .about-bar {
    display: flex;
    justify-content: space-evenly;
  }

  .sidebar {
    height: 100%; /* 100% Full-height */
    width: 0; /* 0 width - change this with JavaScript */
    position: fixed; /* Stay in place */
    z-index: 1; /* Stay on top */
    top: 0;
    left: 0;
    background-color: #111; /* Black*/
    overflow-x: hidden; /* Disable horizontal scroll */
    padding-top: 60px;
    transition: 0.5s; /* 0.5 second transition effect to slide in the sidebar */
    
  }

  /* The sideb* si petit écran */

  .sidebar a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    color: #818181;
    display: block;
    transition: 0.3s;
    font-size: 18px;
  }

  /* When you mouse over the navigation links, change their color */
  .sidebar a:hover {
    background-color: #111;
    border-radius: 4px;
    color: #f6f4f4;
    
  }

  /* Position and style the close button (top right corner) */
  .sidebar .closebtn {
    position: absolute;
    top: 15px ;
    right: 15px;
    font-size: 40px;

  } 


  /* The button used to open the sidebar */
  .openbtn {
    font-family: "Arial"; 
    font-size: 25px;
    cursor: pointer;
    background-color: #111;
    color: white;
    border: none;
    top: 90%;
    left: 85%;
    display: flex;
    position: fixed;
    width: 40px;
    height: 40px;
    border-radius:50%;
    align-items: center;
    padding-left: 9px;
    z-index:auto;
  }

  .modal {
    z-index: 4;
  }


  .openbtn:hover {
    background-color: #444;
  }

  #main {
    transition: margin-left .5s; /* If you want a transition effect */
    padding: 0px;

  }
  main, main#cv {
    max-width: 100%;

  }

  .intro {
    max-width: 100%;
  }


  .cv-element, .cv-element-bio, .intro {
    margin-left: 0;
  }

  .slideshow, .texte {
    padding: 0;
    
  }
  
  .container {
    margin-top : 6em;
    width: 70%;
    margin-left: auto;
    margin-right:auto;
    text-align: center;
    z-index: 1;
    
  }
  
  .container li {
    padding-bottom: 2em;
    padding-left: 3em;
    
  }

  .container#accueil li {
    padding-left: 0;
    padding-bottom: 8vw;
  }

  .container#accueil {
    margin-top: 30vw;
  }

  .accueil img {
    display: none;
  }

  main#accueil img {
    display: none;
  }

  main#about, main#intro, main#texte {
    width: auto;
    padding: 1em;
  }

  .pagecontainer#contact{
  background-color: white;
}

  main#works, .ligne {
    display: block;
  }

  .overlook {
    width: 100%;
    padding : 0;
    padding-bottom: 1em;
    background-color: white;
  }

  main#works {
    max-width: 100%;
  }

  .overlook img{
  opacity : 0.5;
}

 .txtcontenu {
    opacity: 1;
  }

  .article img {
    width: 100%;
    display: block;
    margin: auto;
    padding-bottom: 1em;
  }


}
