html{
    width: 100%;
}

body{
    background-image: url("images/portfolio/bg-portfolio.png");
    background-attachment:fixed;
    scroll-behavior: smooth;
    max-width: 100%;
}

header{
    position: absolute;
    top: 5%;
    left: 50%;
}
.logo img{
    width: 300px;
}

.menu{
    position: absolute;
    top:12%;
    left:60%;
}

main{
    position: absolute;
    top:60%;
    left:10%;
    width: 100%;
}
footer{
    position:sticky;
    top:0;
    left:80%;
    min-height: 2000px;
    width: 100px;
    
}
.menu-bas{
    position:sticky;
    top:90%;
    background-color: white;
}
.introduction, li a {
    color: #000000;
    font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}
.introduction{
    max-width: 500px;
    padding: 20px;
    position: relative;
    left:10%;
    background-color:rgb(215, 211, 230);
}

li a:hover {
    box-shadow: 0 0.4rem 0 -0.2rem rgb(0, 0, 0);
    color: #000000;
}


nav {
    margin-left: auto;
    margin-right: auto;
    min-width: 100%;
    word-spacing: 25px;
    margin-top: 100px;
}

ul li {

    list-style-type: none;

}

li a {
    text-decoration: none;

    position: relative;
    margin-right: 1em;
}

li a:hover {
    top: -0.16em;
    transition: padding .5s, top .35s, box-shadow .4s;

}

.container {
    position: absolute;
    top:60%;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content:flex-start;
    align-items: center;
}

#square1,
#square2,
#square3,
#square4 {
    margin: 30px 15px;
    border: 5px solid black;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 300px;
    height: 300px;
    background-color: black;
    position: relative;
    overflow: hidden;
}

.img-square {
    max-height: 100%;
}

.img-square:hover {
    opacity: 0.5;
    filter: blur(2px);
    transition: ease-in-out 0.2s;
}




.text {
    position: absolute;
    text-align: center;
    color: white;
    font-size: 36px;
    opacity: 0;
}

@media only screen and (max-width: 600px) {
    body{
    background-attachment:scroll;
    scroll-behavior: smooth;
    max-width: 100%;
}
main{
    left:25%;
    margin: auto;
}
    li{
        font-size: larger;
    }
    

}
/*changer font*/
.text p {
    font-family: Arial, Helvetica, sans-serif;
}

/*le texte apparait au survol de la souris*/
#square1:hover .text,
#square2:hover .text,
#square3:hover .text,
#square4:hover .text {
    opacity: 1;
    transition: ease-in-out 0.2s;
}



/*vidéos*/
.container-vertical {

    display:block;
    position: relative;
    left:15%;


}

.video iframe {
    aspect-ratio: 4 / 3;
    margin: auto;

}

.container-vertical p {
    font-size: small;
}

/*jeu(x)*/
.embed-itchio{
    position: relative;

}
.image-jeu{
    width: 100px;
    display: inline;

}
@media only screen and (max-width: 600px) {
    .embed-itchio {
        width: 300px;
    }
}

/*illustration*/
.container-illu {
    width: 100%;
    display: flex;
    flex-wrap: wrap;

    align-items: center;
    justify-content: center;
}

.illu1,
.illu2,
.illu3,
.illu4,
.illu5,
.illu6 {
    max-width: 80%;
}

.row > .column {
    padding: 15px;
  }
  
  .row:after {
    content: "";
    display: table;
    clear: both;
  }
  
  /* Create four equal columns that floats next to eachother */
  .column {
    position: relative;
    float: left;
    
  }
  
  /* The Modal (background) */
  .modal {
    display: none;
    position:fixed;
    z-index: 1;
    padding-top: 100px;
    
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    
  }
  
  /* Modal Content */
  .modal-content {
    position: relative;
    background-color: #fefefe;
    margin: auto;
    margin-bottom: 150px;
    padding: 0;
    width: 80%;
    max-width: 1200px;

  }
  
  /* The Close Button */
  .close {
    color: white;
    position: fixed;
    top: 10px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
  }
  
  .close:hover,
  .close:focus {
    color: #999;
    text-decoration: none;
    cursor: pointer;
  }
  
  /* Hide the slides by default */
  .mySlides {
    display: none;
  }
  
  /* Next & previous buttons */
  .prev,
  .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
    background-color: rgba(0, 0, 0, 0.3);
  }
  
  /* Position the "next button" to the right */
  .next {
    right: 0;
    border-radius: 3px 0 0 3px;
    
  }
  
  /* On hover, add a black background color with a little bit see-through */
  .prev:hover,
  .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
  }
  
  /* Number text (1/3 etc) */
  .numbertext {
    color: #f2f2f2;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
  }
  
  /* Caption text */
  .caption-container {
    text-align: center;
    background-color: black;
    padding: 2px 16px;
    color: white;
  }
  
  img.demo {
    opacity: 0.6;
  }
  
  .active,
  .demo:hover {
    opacity: 1;
  }
  
  img.hover-shadow {
    transition: 0.1s;
  }
  
  .hover-shadow:hover {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  }

@media only screen and (max-width: 600px) {
    .video iframe {
        width: 400px;
    }

}