*{
  box-sizing: border-box;
}
html, body, main{
  height: 100%;
}
body {
  margin: 0;
  background-color: #fff;
  min-height: 100vh;
}

header{
  display: flex;
  align-items:center;
  justify-content : space-between;
  flex-direction: row;
  flex-wrap: wrap;
  text-align: center;
  background-color: #96CFB4;
  position: fixed;
  width: 100%;
  margin-bottom: 10em;
  z-index: 1;
}

#logo{
  width: 5em;
  height: 5em;
  margin-right: 0.5em;
  margin-top: 0.15em;
  margin-bottom: 0.15em;
}

#roundButton{
  max-width: 3em;
}

h1{
  color: white;
  font-family: Arial, Helvetica, sans-serif;
  margin-right: 1em;
  /*margin-left: 1em;*/
}

#logoName a{
  display: flex;
  text-decoration: none;
}
h2{
  font-family: Arial, Helvetica, sans-serif;
  text-align: center;
  font-size: 21pt;
  font-weight: 1000;
  color: white;
  letter-spacing: 8px;
  text-transform: uppercase;
}
h3{
  font-family: Arial, Helvetica, sans-serif;
  text-transform: uppercase;
}
li{
  font-family: 'Catamaran', sans-serif;
}
p{
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 20em;
  margin-right: 20em;
  text-align: justify;
  font-family: 'Catamaran', sans-serif;
}
.button{
  position: absolute;
  display: block;
  margin-bottom: 2em;
  border: 5px solid white;
  background-color: #178EA6;
  transition: background 1s;
  margin-left: 5pt;
  margin-top: 10pt;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 15pt;  
  color: white;
  padding: .5em;
  text-decoration: none;
  text-align: center;
  text-transform: uppercase;
  font-weight: bold;
}

.button:hover{
  background: #F0536A;
  border: 5px solid #F0536A;
}
.reseauxSociaux{
  display: flex;
  align-content: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}
.reseauxSociaux img{
  display: flex;
  margin: 1.5em;
  width: 2.5em;
}
ul{
  padding: 0;
}

#behance{
  text-align: center;
  display: flex;
  margin-left: 2em;
  margin-right: 2em;
  justify-content: center;
  
  font-family: 'Catamaran', sans-serif;
  text-decoration: none;
}
/*NAVIGATION ----------------------------------------------*/

#roundButton:active {
    background-color: #FFF;
}

#flyoutMenu {
    width: 100vw;
    height: 100vh;
    background-color: #141414;
    opacity: 0.95;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate3d(-100vw, 0, 0);
    transition: transform .3s cubic-bezier(0, .52, 0, 1);
    z-index: 1000;
    list-style: none;
    margin-top: 0;
    padding: 0;
            /*padding-top: 40px;*/
}
#flyoutMenu.show {
            transform: translate3d(0vw, 0, 0);
}

header h2{
  color: white;
  text-align: center;
}

header li{
  display: block;
  margin-bottom: 2em;
  border: 5px solid #96CFB4; 
  transition: background 1s;
  margin-left: 30em;
  margin-right: 30em;
}

header li:hover{
  background: #F0536A;
  border: 5px solid #F0536A;
}
header li a:hover{
  color: white;
}

header li a{
  font-family: Arial, Helvetica, sans-serif;
  font-size: 25px; 
  text-transform: uppercase;
  font-weight: bold;
  color:#96CFB4;
  text-decoration: none;
  display: block;
  padding: .5em;
  transition: color 1s;
}
          
#roundButton {
    background : url('../images/header/burger.png');
    background-position: center;
    background-size: cover;
    outline: none;
/* transition: all .2s cubic-bezier(0, 1.26, .8, 1.28);*/
/*  margin-left: 1em;
            margin-top: 1em;*/
    margin-left: 2em;
    float: left;
}

#menu_title{
  text-decoration: none;
  border: none;
  background-color: transparent;
  color: white;
}
#menu_title:hover{
  border: none;
  background-color: transparent;
  text-decoration: none;
}
/*GALERIE IMAGES ---------------------------------------------*/
#portfolio{
  margin: 0;
  padding-top: 4em;
  padding-bottom: 1em;
  color: white;
  background-color: #178EA6;
}
#gallery{
  padding-top: 2em;
  margin-left: 6em;
  margin-right: 6em;

}
.hello {
  opacity: 1 !important;
}
.byebye {
  opacity: 0;
}
.byebye:hover {
  transform: scale(0.2) !important;
}
.gallery {
  display: grid;
  grid-column-gap: 8px;
  grid-row-gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  grid-auto-rows: 8px;
  /*display: flex;
  align-items:center;
  justify-content : center;
  flex-direction: row;
  flex-wrap: wrap;*/
}
.gallery img {
  max-width: 100%;
  border-radius: 8px;
 /* box-shadow: 0 0 16px #333;*/
  transition: all 1.5s ease;
}
.gallery img:hover {
  box-shadow: 0 0 16px #333;
}
.gallery .content {
  padding: 4px;
}
.gallery .gallery-item {
  transition: grid-row-start 300ms linear;
  transition: transform 300ms ease;
  transition: all 0.5s ease;
  cursor: pointer;
}
/*.gallery-item{
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 30%;
}*/
.gallery .gallery-item:hover {
  transform: scale(1.025);
}
.full {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.full .content {
  background-color: rgba(0,0,0,0.75) !important;
  height: 100%;
  width: 100%;
  display: grid;
}
.full .content img {
  left: 50%;
  transform: translate3d(0, 0, 0);
  animation: zoomin 1s ease;
  max-width: 100%;
  max-height: 100%;
  margin: auto;
  z-index: 1;
  background-color: white;
}
.full .content .button {
  z-index: 2;
}
/*FOOTER/CONTACT ---------------------------------------------*/
/*main{

  max-width:1280px;
  min-height:100%;
  margin:0 auto;
  position:relative;

}*/
footer{
  background-color: #F0536A;
  padding-top: 1em;
  padding-bottom: 1em;
 /* position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;*/
  position: relative;
  bottom: -10vw;
  margin-top: 2em;
}

footer li{
  display: flex;
  align-content: center;
  justify-content: center;
}
/*@MEDIA RESPONSIVE ------------------------------------------------*/
@media (max-width: 1215px){
  header li{
    margin-left: 10em;
    margin-right: 10em;
  }
}
@media (max-width: 1090px){
  p{
    margin-left: 7em;
    margin-right: 7em;
  }
  .gallery-item{
    width: 45%;
  }
  .full{
    width: 100%;
  }
  
}
@media (max-width: 850px){
  header li{
    margin-left: 1em;
    margin-right: 2em;
  }
  h1{
    font-size: 19pt;
  }
  #logo{
    display: none;
  }
  #presentation{
  padding-top: 5em; 
  }
  #competences h2{
    padding-top: 3em;
  }
  #compstyle{
    margin-left: 4em;
  }
  .gallery-item{
    width: 50%;
  }
  .full{
    width: 100%;
  }
}

@media (max-width: 650px) {
  h1{
    font-size: 15pt;
    margin-left: 1.5em;
    text-align: center;
  }
  h2{
    font-size: 14pt;
  }
  #portfolio{
    padding-top: 3.5em;
    padding-right: 0.5em;
    padding-left: 0.5em;
  }
  #logo{
    display: none;
  }
  #roundButton{
    max-width: 2em;
  }
  .button{
    font-size: 16pt;
  }
  #presentation{
  padding-top: 4.5em; 
  }
  p{
    margin-left: 2em;
    margin-right: 2em;
    font-size: 11pt;
  }
  #gallery{
    margin-left: 2em;
    margin-right: 2em;
  }
  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(40%, 1fr));
  }
  .gallery-item{
    width: 100%;
  }
  .full{
    width: 100%;
  }
}
@media (max-height: 495px){
  #flyoutMenu a{
    font-size: 16pt;
  }
  header li{
    margin-left: 18em;
    margin-right: 18em;
    margin-bottom: 0.5em;
  }
  .gallery{
    grid-template-columns: repeat(auto-fill, minmax(40%, 1fr));
  }
}
@media (max-width: 730px){
  header li{
    margin-left: 5em;
    margin-right: 5em;
    margin-bottom: 0.5em;
  }
  h2{
    font-size: 16pt;
  }
}

@media (max-width: 730px){
  header li{
    margin-left: 5em;
    margin-right: 5em;
    margin-bottom: 0.5em;
  }
  #portfolio{
    padding-top: 5em;
  }
  h2{
    font-size: 13pt;
  }
}
@media (max-width: 515px){
  #portfolio{
    padding-top: 6.5em;
  }
  #roundButton{
    margin-top: 1em;
  }
  #presentation{
  padding-top: 7.5em; 
  }
  #competences h2{
    padding-top: 4em;
  }
}
@media(max-width: 458px){
  #portfolio{
    padding-top: 7.5em;
    text-align: left;
    padding-left: 1em;
  }
}
@media(max-width: 410px){
  header li{
    margin-left: 3em;
    margin-right: 3em;
  }
}
@media (max-width: 400px) {
  h1{
    font-size: 13pt;
  }
  #presentation{
  padding-top: 6em; 
  }
  .reseauxSociaux img{
    margin: 1em;
  }
  #competences h2{
    padding-top: 4.5em;
  }
  #compstyle{
  margin-left: 1em;
  }
  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(50%, 1fr));
  }
   .gallery-item{
    width: 100%;
  }
  .full{
    width: 100%;
  }
}
@media (max-width: 315px){
  .gallery{
    grid-template-columns: repeat(auto-fill, minmax(50%, 1fr));
  }
}
@media (max-height: 495px){
  #flyoutMenu a{
    font-size: 16pt;
  }
  header li{
    margin-left: 18em;
    margin-right: 18em;
    margin-bottom: 0.5em;
  }
  .gallery{
    grid-template-columns: repeat(auto-fill, minmax(40%, 1fr));
  }

}
@-moz-keyframes zoomin {
  0% {
    max-width: 50%;
/*    transform: rotate(-30deg);*/
    filter: blur(4px);
  }
  30% {
    filter: blur(4px);
/*    transform: rotate(-80deg);*/
  }
  70% {
    max-width: 50%;
/*    transform: rotate(45deg);*/
  }
  100% {
    max-width: 100%;
  /*  transform: rotate(0deg);*/
  }
}
@-webkit-keyframes zoomin {
  0% {
    max-width: 50%;
  /*  transform: rotate(-30deg);*/
    filter: blur(4px);
  }
  30% {
    filter: blur(4px);
  /*  transform: rotate(-80deg);*/
  }
  70% {
    max-width: 50%;
  /*  transform: rotate(45deg);*/
  }
  100% {
    max-width: 100%;
  /*  transform: rotate(0deg);*/
  }
}
@-o-keyframes zoomin {
  0% {
    max-width: 50%;
  /*  transform: rotate(-30deg);*/
    filter: blur(4px);
  }
  30% {
    filter: blur(4px);
  /*  transform: rotate(-80deg);*/
  }
  70% {
    max-width: 50%;
  /*  transform: rotate(45deg);*/
  }
  100% {
    max-width: 100%;
  /*  transform: rotate(0deg);*/
  }
}
@keyframes zoomin {
  0% {
    max-width: 50%;
  /*  transform: rotate(-30deg);*/
    filter: blur(4px);
  }
  30% {
    filter: blur(4px);
  /*  transform: rotate(-80deg);*/
  }
  70% {
    max-width: 50%;
  /*  transform: rotate(45deg);*/
  }
  100% {
    max-width: 100%;
  /*  transform: rotate(0deg);*/
  }
}
