@import url('https://fonts.googleapis.com/css2?family=Hind&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Satisfy&display=swap');

html {
  width: auto;
  scroll-behavior: smooth;
  background-image: url("../img/htmlbg.png");
  


}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100vh;
}



body {
  background-image: url("../img/bg1.svg");
  background-repeat: no-repeat;
  background-size: contain;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;
  width: 100%;


}

nav {
  display: flex;
  width: 100%;
}

nav ul {
  padding: 0;
  margin: 0;
  list-style: none;
  text-align: center;
  position: relative;
  display: flex;
  margin-top: 5px;
  margin-right: 40px;
  margin-left: auto;
}

nav li {
  position: relative;
  padding: 30px 25px;
}



nav a {
  display: inline-block;
  padding: 2px 0px;
  color: black;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  font-family: 'Hind', sans-serif;
  position: relative;
  cursor: pointer;
  text-transform: uppercase;
}

nav a::after {
  background: none repeat scroll 0 0 transparent;
  bottom: -3px;
  content: "";
  display: block;
  height: 3px;
  width: 20%;
  position: absolute;
  background: #CD3B3B;
  transition: 0.4s ease 0s, left 0.4s ease 0s;
}

nav a:hover::after {
  width: 100%;
  left: 0;
}

header h1 {
  font-family: 'Satisfy', cursive;
  font-size: 55px;
  margin: 30px;
}

header h2 {
  font-family: 'Satisfy', cursive;
  font-size: 30px;
  text-align: center;
}



.header__presentation {
  margin-top : 30px;
}

.header__presentation img {
    display: flex;
    margin-left: auto;
    margin-right: auto;
    padding : 15px;
    width : 200px;
}


main {
  margin-left : 100px;
  margin-right : 100px;
}

.presentation {
  flex-basis: auto;
  display: flex; 
  flex-direction: row;
  width: 100%;
  margin-top : 80px;
 
}

.text__presentation {
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: auto;
  max-width : 40%;
  
}

.cpts__presentation {
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: auto;
  max-width : 60%;
  display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.cpts__presentation img {
  margin : 10px;
  transition: all 300ms ease;
  
}

.cpts__presentation img:hover {
  transform : scale(1.2);
}

.cpts__presentation h2 {
  font-family: 'Satisfy', cursive;
  font-size : 25px;
  color : #CD3B3B;
}

.text__presentation p {
  font-family: 'Hind', sans-serif;
  margin : 30px;
  line-height: 25px;
  
}

.cpts__graph {
  margin-bottom : 40px;
}

.portfolio {
  margin-top : 120px;
}

.portfolio_container img {
  width : 500px;
  margin : 30px;
}

.portfolio_container  {
  display : flex;
  flex-direction: column;
  align-items: center;
}

.slide {
  font-size: 15px;
  font-weight: 200;
  letter-spacing: 1px;
  padding: 10px 24px 10px;
  outline: 0;
  border: 1px  black dashed;
  cursor: pointer;
  position: relative;
  background-color: rgba(0, 0, 0, 0);
  font-family: 'Hind', sans-serif;
  margin-left : 30px;
  
}


.slide::after {
  content: "";
  background-color:#EA6E5C;
  width: 100%;
  z-index: -1;
  position: absolute;
  height: 100%;
  top: 7px;
  left: 7px;
  transition: transform 0.5s;
}

.slide:hover:after {
  transform: translate(-7px, -7px);
}


.slide a {
  text-decoration: none;
  color : white;
}

.portfolio h2 {
  margin-bottom : 20px;
  font-family: 'Satisfy', cursive;
  font-size : 25px;
  color : #CD3B3B;
  margin-left : 15px;
}

.contact {
  margin-top : 100px;
  padding-bottom : 50px;
  margin-left : 15px;
}

.contact h2 {
  margin-bottom : 20px;
  font-family: 'Satisfy', cursive;
  font-size : 25px;
  color : #CD3B3B;
  
}

footer {
  background-color : rgb(37, 37, 37);
}

footer ul li {
  padding : 20px 5px 2px 40px ;
}


footer ul li a {
  color : white;
  text-decoration: none;
  font-family: 'Hind', sans-serif;
  font-size : 14px;
}

footer p {
  color : white;
  text-align : center;
  font-size : 12px;
  font-family: 'Hind', sans-serif;
  padding : 10px;
}

.wrapper {
  max-width: 30px;
  margin: 0 auto;
  text-align: center;
  margin-top: 150px;
}

svg {
  width: 30px;
  max-height: 40px;
  display: inline-block;
}

.arrow-down path {
  stroke: black;
  fill: transparent;
  stroke-width: 3px;
  animation: arrow 2s infinite;
  -webkit-animation: arrow 2s infinite;
}

@keyframes arrow {
  0% {
      opacity: 0
  }

  40% {
      opacity: .8
  }

  80% {
      opacity: 0
  }

  100% {
      opacity: 0
  }
}



.arrow-down path.a1 {
  animation-delay: -1s;
  -webkit-animation-delay: -1s;
}

.arrow-down path.a2 {
  animation-delay: -0.5s;
  -webkit-animation-delay: -0.5s;
}

.arrow-down path.a3 {
  animation-delay: 0s;
  -webkit-animation-delay: 0s;
}

.gallery-column {
  -ms-flex: 50%;
  flex: 50%;
  max-width: 50%;
  padding: 0 10px;
  box-sizing: border-box;
}

.gallery {
  box-sizing: border-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  padding: 0 4px;
  margin-top: 10px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 20px;
  margin-bottom: 50px;
  justify-content: center;
}

.gallery-img-container {
  margin-bottom: 20px;
  box-shadow: 0px 10px 30px -15px rgba(0, 0, 0, 0.1);
  position: relative;
  box-sizing: border-box;
}



.gallery-img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.747);
  color: white;
  padding: 55px;
  height: 100%;
  box-sizing: border-box;
  opacity: 0;
  transition: all 250ms ease;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: 'Hind', sans-serif;
  font-size: 25px;
  text-transform: uppercase;
}



.gallery-img-overlay:hover {
  opacity: 1;
}

.contact a {
  text-decoration: none;
  font-family: 'Hind', sans-serif;
  color : black;
}

.mail i {
  color : #CD3B3B;
  margin : 0px 15px 0px 0px;
}

.mail {
  display: flex;
  flex-direction: row;
  margin-bottom : 20px;
  margin-top : 30px;
  
}

.contact .fab {
  color :#EA6E5C;
  margin : 10px 20px 10px 0px;
  transition: all 250ms ease;
}

.contact .fab:hover {
  color : black;
}

::-webkit-scrollbar {
  width: 9px;
  background-color: #F5F5F5;
}


::-webkit-scrollbar-track {

  background-color: #F5F5F5;

}


::-webkit-scrollbar-thumb {
  background-color: #D5443F;

}

@media (max-width:768px) {
  nav a {
    font-size : 16px;
  }

  header h1 {
    text-align : center;
    margin : 80px 30px 30px 30px
  }

  .wrapper {
    margin-top : 70px;
  }

  main {
    margin : 0;
  }

  .presentation {
    flex-direction: column;
    margin-top : 50px;
  }

  .text__presentation {
    max-width: 100%;
    margin-bottom : 50px;
  }

  .cpts__presentation {
    max-width: 100%;
    align-items: start;
    margin : 20px;
  }

  .cpts__presentation h2 {
    margin-left: 10px;
  }

  .portfolio {
    margin :70px 20px 0px 20px;
  }

  .gallery-column {
    -ms-flex: 100%;
    flex: 100%;
    max-width: 100%;
}

.contact {
  margin : 60px 40px 0px 40px;
  
}

body {
  background-image: none;
}



}