@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Text&family=Noto+Sans&display=swap');
:root{
  --back-color: #F0F2EF;
  --header-color: #81796F;
  --header-box-color: #5c5346;
  --header-box-shadow: #A6A39B;
  --header-box-hover: #AFD5AA;
  --text-color: #2b2020;
  --text-color-bis: #5b5963;

  --progress-color: #D9D9D9;

  --loading-color: rgba(192, 192, 192, 0.5);

  --footer: #ffffffcc;
} 

*{
  transition: ease-in-out 0.1s;
}

body{
  margin: 0;
  padding: 0;
  background-color: var(--back-color);

}

a.header{
  text-decoration: none;
  color: var(--back-color);
}
div.brand{
  padding: 0.5em 0.5em;
  margin: 0 2em;
  width: auto;
  /* border: 2px solid #A6A39B; */
  box-shadow: var(--header-box-shadow) 0px 0px 0px 1px, var(--header-box-shadow)  0px 4px 6px -1px, var(--header-box-shadow)  0px 0px 0px inset;
  border-radius: 5px;
  background: var(--header-box-color);
  cursor: default;
}


.navigation nav{
  align-items: center;
  justify-content: flex-start;
  display: flex;
  /* width: auto; */
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: bold;
  gap: 2em;
  text-decoration: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  padding: 14px 5px;
  position: fixed;
  width: 100%;
  z-index: 1;
}

.nav-item a{
  cursor: pointer;
}

div.nav-item a:hover{
  text-decoration: underline;
  color: var(--header-box-hover);
}

span.github_under:hover{
  text-decoration: underline;
  color: var(--header-box-hover);
}

div.nav-item{
  color: var(--back-color);
}
div.content span{
  margin-left: 35px;
}

section.pres{
  /* padding-right: 20px;
  padding-left: 20px;
  padding-top: 10px; */
  justify-content: space-between;
}
div.content{
  background-image: url(../images/font.jpg);
  background-size: cover;
  background-attachment: fixed;
  height: 100vh;
  width: auto;
}

.content {
  display: flex;
  align-content: flex-end;
  flex-direction: column;
  justify-content: space-around;
}
main section.pres div.content div.text, main section.pres div.content div.text{
  display: flex;
  justify-content: center;
  flex-direction: column;
}

h2.pres, .typewrite{
  color: var(--back-color);
  font-size: 50px;
  text-align: center;
  margin-bottom: 0px;
  font-family: 'DM Serif Display', serif;
  text-decoration: none;
}

h4.pres_b{
  color: var(--back-color);
  font-size: 25px;
  text-align: center;
  font-family: 'DM Serif Display', serif;
}
span.pres{
  color: var(--header-box-hover);
  text-align: center;
}
.scroll_down{
  border: 1.5px solid var(--header-box-color);
  border-radius: 0.50em;
  width: 100px;
  height: 45px;
  align-items: center;
  margin: 0 auto;
  cursor: pointer;
  background-color: var(--header-box-shadow);
  font-weight: bold;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.scroll_down:hover{
  border: 1.5px solid var(--header-box-color);
  border-radius: 0.50em;
  width: 100px;
  height: 45px;
  align-items: center;
  margin: 0 auto;
  cursor: pointer;
  background-color: var(--header-box-color);
  color: var(--header-box-hover);
  font-weight: bold;
}

/* #loading {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100vw;
  height: 100vh;
  background-color: var(--loading-color);
  background-image: url("");
  background-repeat: no-repeat;
  background-position: center;
  
} */
.about{
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}


.module-title {
	position: relative;
	margin-bottom: 50px;
	font-weight: 300;
  text-align: center;
	color: var(--text-color-bis);
  top: 80px;
  font-family: 'DM Serif Text', sans-serif;
  font-size: 1.8em;
}

.module-title span{
	font-size: 100px;
	position: absolute;
	left: 0;
	right: 0;
	text-align: center;
	top: -58px;
	z-index: 0;
	opacity: 0.1; 
	font-weight: 700;
  font-family: 'DM Serif Text', sans-serif;
}

.part{
  height: 1px;
  width: 55px;
  background: var(--text-color);
  margin: 45px auto;
}

.text-about{
  text-align: center;
}

.text-about p{
  margin: 140px;
  line-height: 1.5em;
  font-size: 1.2em;
  font-family: 'Noto Sans', sans-serif;
  color: var(--text-color);
}

.text-about a{
  text-decoration: none;
  color: var(--text-color);
}

.text-about a.IUT{
  text-decoration: underline;
  color: var(--text-color);
}

.text-about a:hover{
  text-decoration: underline;
  color: var(--header-box-hover);
}


.transition{
  height: 250px;
  width: 100%;
  background: url(../images/font_3.jpg);
  background-size: cover;
  background-repeat: no-repeat;
}

.transition_2{
  height: 200px;
  width: 100%;
  background: url(../images/font_4.jpg);
  background-size: cover;
  background-repeat: no-repeat;
}


.module-title-skills {
	position: relative;
	margin-bottom: 50px;
	font-weight: 300;
  text-align: center;
	color: var(--text-color-bis);
  top: 80px;
  font-family: 'DM Serif Text', sans-serif;
  font-size: 1.8em;
}

.module-title-skills span{
	font-size: 75px;
	position: absolute;
	left: 0;
	right: 0;
	text-align: center;
	top: -40px;
	z-index: 0;
	opacity: 0.1; 
	font-weight: 600;
  font-family: 'DM Serif Text', sans-serif;
}

.module-title-project {
	position: relative;
	margin-bottom: 50px;
	font-weight: 300;
  text-align: center;
	color: var(--text-color-bis);
  top: 80px;
  font-family: 'DM Serif Text', sans-serif;
  font-size: 1.8em;
}

.module-title-project span{
	font-size: 60px;
	position: absolute;
	left: 0;
	right: 0;
	text-align: center;
	top: -27px;
	z-index: 0;
	opacity: 0.1; 
	font-weight: 600;
  font-family: 'DM Serif Text', sans-serif;
}

.module-title-contact {
	position: relative;
	margin-bottom: 50px;
	font-weight: 300;
  text-align: center;
	color: var(--text-color-bis);
  top: 80px;
  font-family: 'DM Serif Text', sans-serif;
  font-size: 1.8em;
}

.module-title-contact span{
	font-size: 60px;
	position: absolute;
	left: 0;
	right: 0;
	text-align: center;
	top: -27px;
	z-index: 0;
	opacity: 0.1; 
	font-weight: 600;
  font-family: 'DM Serif Text', sans-serif;
}

/* BOX SKILLS */


/* ANIM PB */
@keyframes progressBarHtml{
  0%{
    width: 0;
  }
  100%{
    width: 80%;
  }
}

@keyframes progressBar-Css{
  0%{
    width: 0;
  }
  100%{
    width: 70%;
  }
}

@keyframes progressBar-js{
  0%{
    width: 0;
  }
  100%{
    width: 30%;
  }
}

@keyframes progressBar-php{
  0%{
    width: 0;
  }
  100%{
    width: 0%;
  }
}

@keyframes progressBar-sql{
  0%{
    width: 0;
  }
  100%{
    width: 65%;
  }
}

@keyframes progressBar-py{
  0%{
    width: 0;
  }
  100%{
    width: 40%;
  }
}

@keyframes progressBar-tf{
  0%{
    width: 0;
  }
  100%{
    width: 45%;
  }
}

@keyframes progressBar-java{
  0%{
    width: 0;
  }
  100%{
    width: 65%;
  }
}

@keyframes progressBar-c{
  0%{
    width: 0;
  }
  100%{
    width: 35%;
  }
}

.progress{
  width: 85px;
  background: var(--header-color);
  height: 7px;
  border-radius: 10px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.barhtml{
  height: 100%;
  width: 85%;
  background: var(--progress-color);
  position: absolute;
  top: 0;
  left: 0;
  
  animation: progressBarHtml 2s ease-in-out;
  animation-fill-mode: both;
  
}

.barcss{
  height: 100%;
  width: 70%;
  background: var(--progress-color);
  position: absolute;
  top: 0;
  left: 0;
  animation: progressBar-Css 2s ease-in-out both;
}

.barjs{
  height: 100%;
  width: 30%;
  background: var(--progress-color);
  position: absolute;
  top: 0;
  left: 0;
  animation: progressBar-js 2s ease-in-out both;
}

.barphp{
  height: 100%;
  width: 0%;
  background: var(--progress-color);
  position: absolute;
  top: 0;
  left: 0;
  animation: progressBar-php 2s ease-in-out both;
}

.barsql{
  height: 100%;
  width: 65%;
  background: var(--progress-color);
  position: absolute;
  top: 0;
  left: 0;
  animation: progressBar-sql 2s ease-in-out both;
}

.barpython{
  height: 100%;
  width: 40%;
  background: var(--progress-color);
  position: absolute;
  top: 0;
  left: 0;
  animation: progressBar-py 2s ease-in-out both;
}

.bartf{
  height: 100%;
  width: 45%;
  background: var(--progress-color);
  position: absolute;
  top: 0;
  left: 0;
  animation: progressBar-tf 2s ease-in-out both;
}

.barjava{
  height: 100%;
  width: 65%;
  background: var(--progress-color);
  position: absolute;
  top: 0;
  left: 0;
  animation: progressBar-java 2s ease-in-out both ;
}

.barc{
  height: 100%;
  width: 35%;
  background: var(--progress-color);
  position: absolute;
  top: 0;
  left: 0;
  animation: progressBar-c 2s ease-in-out both;
}

.skills-group{
  margin: 140px;
  height: 26.36vh;
	display: flex;
	flex-direction: row;
	padding: 20px 20px;
	justify-content: space-evenly;
}

.web{
  display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
}

/* .backend{
  display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
} */
/* IMG */
img.js-logo{
  padding-top: 10px;
  margin-bottom: 8px;
  margin-top: 3px;
  height: 35px;
  width: 35px;
}

img.html-logo{
  height: 45px;
  width: 45px;
  margin-top: 3px;
}

img.css-logo{
  height: 45px;
  width: 45px;
  margin-top: 3px;
}

img.php-logo{
  height: 45px;
  width: 45px;
  margin-top: 3px;
}

img.sql-logo{
  height: 45px;
  width: 45px;
  margin-top: 3px;
}

img.python-logo{
  height: 45px;
  width: 45px;
  margin-top: 3px;
}

img.tf-logo{
  height: 45px;
  width: 45px;
  margin-top: 3px;
}

img.java-logo{
  height: 45px;
  width: 45px;
  margin-top: 3px;
}

img.c-logo{
  height: 45px;
  width: 45px;
  margin-top: 3px;
}

/* BOX */
div.html{
  background: var(--header-box-color);
  width: 140px;
  height: 50px;
  box-shadow: var(--header-box-shadow) 0px 0px 0px 1px, var(--header-box-shadow)  0px 4px 6px -1px, var(--header-box-shadow)  0px 0px 0px inset;
  border-radius: 5px;
  display: flex;
  justify-content: space-around;
  align-items: baseline;
}

div.css{
  margin-top: 17px;
  background: var(--header-box-color);
  width: 140px;
  height: 50px;
  box-shadow: var(--header-box-shadow) 0px 0px 0px 1px, var(--header-box-shadow)  0px 4px 6px -1px, var(--header-box-shadow)  0px 0px 0px inset;
  border-radius: 5px;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
}
div.js{
  margin-top: 20px;
  background: var(--header-box-color);
  width: 140px;
  height: 50px;
  box-shadow: var(--header-box-shadow) 0px 0px 0px 1px, var(--header-box-shadow)  0px 4px 6px -1px, var(--header-box-shadow)  0px 0px 0px inset;
  border-radius: 5px;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
}
div.php{
  background: var(--header-box-color);
  width: 140px;
  height: 50px;
  box-shadow: var(--header-box-shadow) 0px 0px 0px 1px, var(--header-box-shadow)  0px 4px 6px -1px, var(--header-box-shadow)  0px 0px 0px inset;
  border-radius: 5px;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
}

div.sql{
  margin-top: 20px;
  background: var(--header-box-color);
  width: 140px;
  height: 50px;
  box-shadow: var(--header-box-shadow) 0px 0px 0px 1px, var(--header-box-shadow)  0px 4px 6px -1px, var(--header-box-shadow)  0px 0px 0px inset;
  border-radius: 5px;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
}

div.python{
  background: var(--header-box-color);
  width: 140px;
  height: 50px;
  box-shadow: var(--header-box-shadow) 0px 0px 0px 1px, var(--header-box-shadow)  0px 4px 6px -1px, var(--header-box-shadow)  0px 0px 0px inset;
  border-radius: 5px;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
}

div.tf{
  margin-top: 20px;
  background: var(--header-box-color);
  width: 140px;
  height: 50px;
  box-shadow: var(--header-box-shadow) 0px 0px 0px 1px, var(--header-box-shadow)  0px 4px 6px -1px, var(--header-box-shadow)  0px 0px 0px inset;
  border-radius: 5px;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
}

div.java{
  background: var(--header-box-color);
  width: 140px;
  height: 50px;
  box-shadow: var(--header-box-shadow) 0px 0px 0px 1px, var(--header-box-shadow)  0px 4px 6px -1px, var(--header-box-shadow)  0px 0px 0px inset;
  border-radius: 5px;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
}

div.c{
  margin-top: 20px;
  background: var(--header-box-color);
  width: 140px;
  height: 50px;
  box-shadow: var(--header-box-shadow) 0px 0px 0px 1px, var(--header-box-shadow)  0px 4px 6px -1px, var(--header-box-shadow)  0px 0px 0px inset;
  border-radius: 5px;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
}

/* Project */

.projects-group{
  margin: 100px;
  /* height: 150px; */
	display: flex;
	flex-direction: row;
	padding: 20px 20px;
	justify-content: space-evenly;
}

.projects-group a{
  text-decoration: none;
  color: var(--back-color);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: bold;
  font-size: 15px;
}

.projects-group a:hover{
  color: var(--header-box-hover);

}

.projects-group a:active{
  text-decoration: underline;
}

.all{
  background: var(--header-box-color);
  width: 140px;
  height: 50px;
  box-shadow: var(--header-box-shadow) 0px 0px 0px 1px, var(--header-box-shadow)  0px 4px 6px -1px, var(--header-box-shadow)  0px 0px 0px inset;
  border-radius: 5px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  cursor: pointer;
}

.website{
  background: var(--header-box-color);
  width: 140px;
  height: 50px;
  box-shadow: var(--header-box-shadow) 0px 0px 0px 1px, var(--header-box-shadow)  0px 4px 6px -1px, var(--header-box-shadow)  0px 0px 0px inset;
  border-radius: 5px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  cursor: pointer;
}

.IA{
  background: var(--header-box-color);
  width: 140px;
  height: 50px;
  box-shadow: var(--header-box-shadow) 0px 0px 0px 1px, var(--header-box-shadow)  0px 4px 6px -1px, var(--header-box-shadow)  0px 0px 0px inset;
  border-radius: 5px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  cursor: pointer;
}

.Other{
  background: var(--header-box-color);
  width: 140px;
  height: 50px;
  box-shadow: var(--header-box-shadow) 0px 0px 0px 1px, var(--header-box-shadow)  0px 4px 6px -1px, var(--header-box-shadow)  0px 0px 0px inset;
  border-radius: 5px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  cursor: pointer;
}

.project-all, .project-all ~*{
  height: 87.87vh;  
  margin: 0px auto;
  text-align: center;
  display: flex;
  justify-content: space-around;
  align-content: flex-start;
  flex-wrap: wrap;
  width: 55%;
}

.project-all div, .project-all ~* div{
	height: 35.14vh;
  width: 15vw;
  margin: 10px;
}




/* BOX PROJECT */

.project1 ~*:hover, .project1:hover{
  box-shadow: 0px 4px 4px 0px #00000033;
  border-radius: 5px;
  transition: ease-in-out 0.5s;
}

.project1 ~*:hover *, .project1:hover *{
  transition: ease-in-out 0.5s;
  opacity: 1;
}

.project1 ~*, .project1{
  border: solid 1px var(--header-box-color);
  border-radius: 10px;
  background-color: var(--header-box-shadow);
  box-shadow: 0px 4px 4px 0px #00000033;
}

.project1_w ~*:hover, .project1_w:hover{
  box-shadow: 0px 4px 4px 0px #00000033;
  border-radius: 5px;
  transition: ease-in-out 0.5s;
}

.project1_w ~*:hover *, .project1_w:hover *{
  transition: ease-in-out 0.5s;
  opacity: 1;
}

.project1_w ~*, .project1_w{
  border: solid 1px var(--header-box-color);
  border-radius: 10px;
  background-color: var(--header-box-shadow);
  box-shadow: 0px 4px 4px 0px #00000033;
}

.project1_ai ~*, .project1_ai{
  border: solid 1px var(--header-box-color);
  border-radius: 10px;
  background-color: var(--header-box-shadow);
  box-shadow: 0px 4px 4px 0px #00000033;
}

.project1_ai ~*:hover, .project1_ai:hover{
  box-shadow: 0px 4px 4px 0px #00000033;
  border-radius: 5px;
  transition: ease-in-out 0.5s;
}

.project1_ai ~*:hover *, .project1_ai:hover *{
  transition: ease-in-out 0.5s;
  opacity: 1;
}


.project1_other ~*, .project1_other{
  border: solid 1px var(--header-box-color);
  border-radius: 10px;
  background-color: var(--header-box-shadow);
  box-shadow: 0px 4px 4px 0px #00000033;
}

.project1_other ~*:hover, .project1_other:hover{
  box-shadow: 0px 4px 4px 0px #00000033;
  border-radius: 5px;
  transition: ease-in-out 0.5s;
}

.project1_other ~*:hover *, .project1_other:hover *{
  transition: ease-in-out 0.5s;
  opacity: 1;
}

.project-box p, .project-box a{
  opacity: 0;
  color: var(--header-box-hover);
  font-size: 1em;
}

.project-box p{
  font-size: 1.2em;
  color: var(--progress-color);
  font-weight: 600;
}


/* PROJECT 1 */

.project1_w, .project1{
  background-image: url("../images/PORTFOLIO.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  font-family: 'Noto Sans', sans-serif;
}

.project1_w:hover, .project1:hover{
  background-blend-mode: multiply;
}

.project1_w p:hover, .project1 p:hover{
  opacity: 1 !important;
}

div.download-cv{
  width: 140px;
  height: 70px;
}

a.cv{
  display: flex;
  opacity: 1 !important;
  width: 140px;
  height: 50px;
  text-decoration: none;
  color: var(--back-color);
  background: var(--header-box-color);
  box-shadow: var(--header-box-shadow) 0px 0px 0px 1px, var(--header-box-shadow)  0px 4px 6px -1px, var(--header-box-shadow)  0px 0px 0px inset;
  border-radius: 5px;
  justify-content: space-around;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
  color: var(--back-color);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: bold;
  font-size: 15px;
}


.contact-box{
  display: flex;
  height: 87.87vh;
  width: 54.68vw;
  margin: auto;
  margin-top: 10em;
  box-shadow: 0px 6px 6px rgba(0, 0, 0, 0.25);
}

.contact-box form{
  height: 87.87vh;
  width: 54.68vw;
  flex-direction: column;
}

#name, #email, #reason{
  width: 17.5vw;
  height: 3.5vh;
  outline: none;
  border: none;
  background: var(--header-box-shadow);
  box-shadow: inset 0px 4px 4px rgba(0, 0, 0, 0.25);
  border-radius: 5px;
}

#msg{
  /* width: 12.5vw;
  height: 28.1vh; */
  width: 28.1vw;
  height: 17.5vh;
  outline: none;
  border: none;
  background: var(--header-box-color);
  box-shadow: inset 0px 6px 6px rgba(0, 0, 0, 0.25);
  border-radius: 5px;
  resize: none;
}

#submit{
  width: 8.5vw;
  min-width: 70px;
  height: 5.2vh;
  outline: none;
  border: none;
  background: var(--header-box-hover);
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  border-radius: 5px;
}

#submit:hover{
  cursor: pointer;
}

h5{
  margin: 7px auto;
  cursor: default;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: var(--text-color-bis);
}

.input-name, .input-email, .input-reason, .input-msg, .submit{
  margin: 20px;
}

input{
  font-weight: 500;
  color: var(--text-color);
}

.footer{
  height: 150px;
  background: var(--header-box-color);
}

.logo-footer{
  padding: 1em;
}

.logo{
  display: flex;
  list-style: none;
  justify-content: center;
}

.logo li{
  width: 36px;
	height: 36px;
	line-height: 37px;
	text-align: center;
	border: 1px solid var(--footer);
	border-radius: 50%;
	font-size: 14px;
	color: var(--footer);
  margin: 5px;
}

.footer-a{
  color: var(--footer);
}

.copy{
  margin: auto;
  text-align: center;

  color: var(--footer);
  font-family: 'Noto Sans', sans-serif;
  font-size: small;
}

main{
  margin-bottom: 4em;
}

/* ---------------------------------------- */
/* MENU BURGER  */
#menu-burger{
  display: none;
}

#menu-burger {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background-color: var(--header-box-color);
  color: #FFF;
  height: 50px;
  padding: 1em;
  z-index: 2;

}

.menu {
  display: flex;
  flex-direction: row;
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.menu > li {
  margin: 0 1rem;
  overflow: hidden;
  
}

.menu-button-container {
  display: none;
  height: 100%;
  width: 30px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: auto;
}

#menu-toggle{
  display: none;
}

#menu-burger {
  display: none;
}

.menu-button,
.menu-button::before,
.menu-button::after {
  display: block;
  background-color: #fff;
  position: absolute;
  height: 4px;
  width: 30px;
  transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1);
  border-radius: 2px;
  
}

.menu-button::before {
  content: '';
  margin-top: -8px;
}

.menu-button::after {
  content: '';
  margin-top: 8px;
}

#menu-toggle:checked + .menu-button-container .menu-button::before {
  margin-top: 0px;
  transform: rotate(405deg);
}

#menu-toggle:checked + .menu-button-container .menu-button {
  background: rgba(255, 255, 255, 0);
}

#menu-toggle:checked + .menu-button-container .menu-button::after {
  margin-top: 0px;
  transform: rotate(-405deg);
}


  .menu-button-container {
    display: flex;
  }
  .menu {
    position: absolute;
    top: 0;
    margin-top: 50px;
    left: 0;
    flex-direction: column;
    width: 100%;
    justify-content: center;
    align-items: center;
    
  }
  #menu-toggle ~ .menu li {
    height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
  }
  #menu-toggle:checked ~ .menu li {
    border: 1px solid #333;
    height: 2.5em;
    padding: 0.5em;
    transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
  }
  #menu-toggle:checked ~ .menu li.named {
    border: 1px solid #333;
    height: 3em;
    padding: 0.5em;
    transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
  }
  .menu > li {
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0.5em 0;
    width: 100%;
    color: white;
    background-color: #222;
    
  }
  .menu > li:not(:last-child) {
    border-bottom: 1px solid #444;
  }
/* ---------------------------------------- */

/* MEDIA QUERIES  */

@media screen and (max-width:701px) {
  
  *{
    box-sizing: border-box;
  }
  nav#nav{
    display: none;
  }
  #menu-burger{
    display: flex;
    position: fixed;
    width: 100%;
    box-sizing: border-box;
    font-family: "Raleway";
  }
  
  .skills-group{
    padding-top: 110px;
    padding-right: 5px;
    margin: auto;
    flex-wrap: wrap;
    height: 100vh;
  }

  .projects-group{
    flex-wrap: wrap;
    margin: 20px;
    padding: 50px;
  }
  .website, .ia, .Other{
    margin: 10px;
  }

  .project-all div, .project-all ~* div{
    height: 12vh;
    width: auto;
  }

  .text-about p{
    font-size: 0.7em;
    text-align: center;
    margin-top: 100px;
    margin: 100px 0;
  }

  .module-title span{
    font-size: 55px;
    top: -20px;
  }

  .module-title-skills span, .module-title-project span, .module-title-contact span{
    font-size: 40px;
  }
  h2.pres, a.typewrite{
    font-size: 40px;
  }
  h4.pres_b{
    font-size: 20px;
  }
}

@media screen and (max-width:280px){
  .skills-group{
    padding-top: 110px;
    margin: auto;
    flex-wrap: wrap;
    height: 100vh;
  }
}

@media screen and (max-width:321px){
  .project1 p, .project1_w p{
    margin: 0;
    margin-bottom: 7px;
    font-size: 0.7em;
  }
  .project1 a, .project1_w a{
    margin: 0;
    font-size: 0.5em;
  }
}

@media screen and (min-width: 322px) and (max-width:376px){
  .project1 p, .project1_w p{
    margin: 0;
    font-size: 0.8em;
  }
  .project1 a, .project1_w a{
    margin: 0;
    font-size: 0.5em;
  }
}

@media screen and (min-width: 377px) and (max-width:426px){
  .project1 p, .project1_w p{
    margin: 0;
    font-size: 0.9em;
  }
  .project1 a, .project1_w a{
    margin: 5px;
    font-size: 0.6em;
  }
}

@media screen and (min-width: 427px) and (max-width:769px){
  .project1 p, .project1_w p{
    font-size: 1em;
  }
  .project1 a, .project1_w a{
    margin: 10px;
    font-size: 0.8em;
  }
}