@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@600&family=Ubuntu+Condensed&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Andika&family=Josefin+Sans:wght@600&display=swap');

:root{
  --title-font : 'Ubuntu Condensed', sans-serif;
  --paragraph-font : 'Josefin Sans', sans-serif;

}


*{
    margin: 0;
}
header{
  display: flex;
  width: 100%;
  justify-content: center;
  background-color: rgba(243, 239, 239, 0.681);
  
}
nav{
  display: flex;
  width: 100%;
  padding: 0.5em;
  background-color: rgb(236, 235, 235);
}

.icon{
  width: 50px;
  border-radius: 50%;
}
.social-media a {
  color: black;
  text-decoration: none;
  padding: 0.5em;
  font-size: 1.25em;
}
main{
  margin-top:7em;
  min-height: 100vh;
  margin-inline:15%;
  padding-bottom: 2em;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;

}
.content-project{
  width: 100%;
  display: flex;
  gap: 2em;
  flex-direction: column;
  justify-content: center;
  align-items:center;
}
.content-project h4{
    text-align: left;
}
.text {
  font-family: var(--font-nav);
  font-size: 2em;
  padding-top: 0;
  font-weight: 800;
}
  

.child{
  opacity: 1;
  transition: ease-out 1s;
}
.child:nth-child(1){
  right: 10%;
  transition-delay: 200ms;
}
.child:nth-child(2){
  right: 10%;
  transition-delay: 350ms;
}
.child:nth-child(3){
  right: 10%;
  transition-delay: 450ms;
}
.child:nth-child(4){
  right: 10%;
  transition-delay: 500ms;
}
.child:nth-child(5){
  right:10%;
  transition-delay: 650ms;
}
.child:nth-child(6){
  right:10%;
  transition-delay: 650ms;
}


.showChild{
  opacity: 1;
  position: relative;
}
.showChild:nth-child(1){
  right: 0;
}
.showChild:nth-child(2){
  right: 0;

}
.showChild:nth-child(3){
  right: 0;
}
.showChild:nth-child(4){
  right: 0;

}
.showChild:nth-child(5){
  right: 0;
}
.showChild:nth-child(6){
  right: 0;
}
.projects i{
  padding: 0.25em;
  cursor: pointer;
}
.projects a{
  text-decoration: none;
  color: black;
}

.project-child:nth-child(1) {
    flex-direction: row-reverse;
}
.project-child:nth-child(3){
    flex-direction: row-reverse;
}
.project-child:nth-child(5){
  flex-direction: row-reverse;
}
.heading{
  width: 100%;
}

h4{
  width: 80%;
  font-size: 2em;
  font-weight: 800;
  font-family:var(--title-font);
}
.heading p{
  width: 80%;
  margin: 0;
  color: gray;
  font-family: var(--paragraph-font);
}
.project-list{
  width: 100%;
  display: flex;
  justify-content: start;
  gap: 3em;
  flex-wrap: wrap;
}
.project-child{
    width: 30%;
    background-color: rgb(252, 251, 251);
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    box-shadow: 10px 10px 15px rgb(238, 235, 235);
    margin-top: 1em;
}
.project-child:hover{
  background-color: rgb(251, 251, 251);
}

.img-part{
  display: flex;
  justify-content: space-between;
  height: 300px;
  width: 100%;
  position: relative;

}
.img-part img{
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  width: 100%; 
  height: 90%;
   
}
.category-type{
  top: 7%;
  left: 7%;
  position: absolute;
  font-size: 0.75em;
  padding:0.5em 1em 0.5em 1em;
  background-color: rgb(255, 255, 255);
  width: fit-content;
  border-radius: 10px;
}
  .project-content {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    width: 100%;
    color: black;
    text-align: center;
    font-size: 0.8em;
  }
  .project-content p{
    font-family: var(--paragraph-font);
    font-size: 1.15em;
    color: grey;
  }
  .btn-project{
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .btn-project a{
    padding-inline: 0.75em;
    padding-block:0.5em;
    text-decoration: none;
    text-align: center;
    margin:0.25em;
    border-radius: 5px;
    font-size: 1.35em;
    font-family: monospace;
    color: rgb(1, 1, 1);
  
  }
  #launch{
    font-weight: 600;
    color: white;
    background: rgb(142, 225, 116);
  }
  #code{
    background: rgb(108, 188, 210);
    font-weight: 600;
    color: white;
  }

  
  .lnr-code{
    background-color: rgb(99, 84, 219);
    font-size: 3em;
  
  }
  .lnr-code:hover{
    background-color: rgb(102, 95, 152);
    color: white;
  }
  .lnr-rocket:hover{
    color:black;
  }
  .lnr-rocket{
    background-color: rgb(60, 175, 97);
  }
 
  



footer{
  margin-top: 5em;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  
}
.pagination {
  margin-bottom: 1.5em;
}

.pagination a{
  text-decoration: none;
  margin-inline:0.5em;
  padding:0.5em 1em 0.5em 1em;
  color: black;
  background-color: rgb(237, 230, 230);
}
.footer-copyright{
  width: 100%;
  background-color: rgb(248, 247, 247);
}

@media only screen and (max-width:450px){
  header{
    margin:0;
  }
  .navbar{
    height: 70px;
  }
  main{
    margin: 0;
  }
  .heading{
    margin-top: 7em;
    padding: 2em;
    font-size: 0.85em;
  }
  .project-list{
    width:100%;
    display: flex;
    justify-content: center;
  }
  .project-child{
    width: 80%;
    height: auto;
    display: flex;
    justify-content: center;
    font-size: 0.85em;
    flex-direction: column;
    flex-wrap: wrap;
  }
  .project-content{
    padding-top:1.5em;
  }
  .project-child .img-part{
    height: 150px;
  }
  .project-child img{
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    width: 100%; 
    height: 100%;
    object-fit: cover;
  }
  .img-part .category-type{
    left: 8%;
    top: 12%;
  }
  .btn-project a{
    font-size: 1em;
  }
  .project-content{
    padding-bottom: 2em;
    width: 100%;
  }
  .btn-project{
    display: block;
  }
}