* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

body {
  background: #FFf;
  display: flex;
  flex-direction: column;
  font-family: 'Raleway', sans-serif;
  color: #333;
}

button {
  cursor: pointer;
}


.hidden {
  display: none;
}

/***************** USER INFO *****************/
.user-info {
  height: 100%;
  padding: 3.2rem;
  overflow: hidden;
}

.user-info .header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 2.4rem 0 4.8rem 0; 
}

.user-info .header-container div {
  display: flex;
  align-items: center;
  gap: 1rem;
}

h1 {
  font-size: 2.8rem;
  padding-right: 6rem;
  line-height: 1.4;
}

.user-info .header-container img {
  border-radius: 400px;
  height: 52px;
  width: auto;
  padding: 0.5rem;
  position: relative;
}

.user-info .user-name,
.user-info p {
  font-size: 1.4rem;
  letter-spacing: 1.4px;
  font-weight: 500;
  color: #333;
}

.user-name:link,
.user-name:visited {
  text-decoration: none;
  font-weight: 700;
  transition: all 0.4s ease;
}

.user-name:hover,
.user-name:active {
  color: #7365e5;
}

.cta-btn:link,
.cta-btn:visited {
  background: #000;
  padding: 1.2rem 1.8rem;
  text-decoration: none;
  font-size: 1.0rem;
  font-weight: 700;
  letter-spacing: 2px;
  border-radius: 8px;
  border: solid 1px transparent;
  color: #Fff;
  transition: all 0.4s ease;
  margin-top: 1.2rem;
}

.cta-btn:hover,
.cta-btn:active {
  background: #fff;
  border: solid 1px #000;
  color: #000;
}

.hand-waiving {
   position: absolute;
   padding-left: 1rem;
   transform: rotate(-10deg);
   animation: waiving 1s ease-in-out infinite;
}

@keyframes waiving {

  0% {
    transform: rotate(-12deg);
  }

  50% {
    transform: rotate(20deg);
    font-size: 3.6rem;
  }
  
  60% {
    transform: rotate(22deg);
  }
  
  100% {
    transform: rotate(-12deg);
  }

}

/***************** SEARCH BAR AND FILTER BUTTON DISPLAY *****************/

.input-container {
  display: flex;
  gap: 1.2rem;
  padding: 0 3.2rem 3.2rem 3.2rem;
  justify-content: space-between;

}

.input-container label {
  background: #f7f6f9;
  padding: 1.2rem;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  border-radius: 6px;
  width: 90%;
}

.input-container select,
.input-container .search-input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: none;
  outline: none;
}

.input-container .search-input {
  background: transparent;
  padding: 0 1.2rem;
}


.input-container select {
  background: none;
  border-radius: 6px;
  border: solid 1px #666;
  text-align: center;
  text-indent: 5px hanging;
  padding: 1rem;
  display: block;
  font-size: 1.4rem;
  width: 15%;
}


/***************** PROJECTS'S CARD AND CHART*****************/

#projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px,1fr));
  grid-gap: 2.6rem;
  padding-bottom: 4.8rem;
}

.repo {
  height: 169px;
  padding: 2.4rem;
  border-radius: 20px;
  display: flex;
  justify-content: space-between;
}

h2 {
  font-size: 1.8rem;
}

.repo .repo-title {
  text-decoration: none;
  color: #333;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.repo div:first-of-type{
   width: 70%;
}

.repo div:nth-of-type(2) {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: auto;
}

.repo .language {
  background: #7365e5;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 0.6rem 1.2rem;
  border-radius: 100px;
}

.repo .time {
  font-size: 1.2rem;
  color: #666;
  margin-top: 1rem;
}

.repo .open-modal-btn {
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  transition: all 0.4s ease;
}

.repo .open-modal-btn:hover {
  color: #7365e5;
}


/***************** MODAL *****************/
.see-more {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-width: 100vw;
  min-height: 100vh;
  padding: 4.8rem;
  background: none;
  position: fixed;
  z-index: 5;
  backdrop-filter: blur(5px) brightness(0.5);
  -webkit-backdrop-filter: blur(5px) brightness(0.5);
}

.see-more-container {
  background: #f7f6f9;
  border-radius: 20px;
  padding: 2.4rem 4.8rem 4.8rem 4.8rem;
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  overflow: scroll;
  height: 65vh;
  font-size: 1.4rem;
  letter-spacing: 1px;
}

.close-modal-btn {
   background: none;
   border: none;
   width: 10%;
   align-self: flex-end;
}

.close-modal-btn ion-icon {
  font-size: 3.6rem;
  color: #7365e5;
  background: #f7f6f9;
  border-radius: 100px;
  position: fixed;
}

.comments {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comments-title,
.commits {
  font-weight: 600;
}

.comments li {
  margin-left: 2.4rem;
  margin-top: 1.2rem;
}


/***************** CHART *****************/

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4.8rem;
  padding: 0 4.8rem 4.8rem 4.8rem;
}

.chart {
 width: 300px;
 height: 100px;
 display: inline-block;
 min-width: 200px;
}

/***************** FOOTER *****************/
footer {
  background: #f7f6f9;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3.2rem;
  gap: 2.4rem;
}


footer ul {
  display: flex;
  gap: 1.2rem;
  list-style: none;
}


footer ion-icon,
footer p {
  font-size: 1.8rem;
  text-align: center;
  color: #333;  
}


/************************ MEDIA QUERIES ************************/

@media (min-width: 640px) {

  h1 {
    font-size: 5.2rem;
  }

  .user-info .header-container img {
    height: 75px;
    width: auto;
  }

  .user-info {
    padding: 4.8rem;
  }

  .user-info .user-name {
    font-size: 2.0rem;
  }

  .cta-btn:link {
    font-size: 1.4rem;
  }

  .container {
    flex-direction: row;
    padding: 0 4.8rem;
    align-items: flex-start;
    justify-content: space-between;
    margin-top: 2.4rem;
  }

  
  .canva {
    width: 40%;
  }

  #projects {
    width: 55%;
  }


  .see-more-container {
    width: 50vw;
  }

}

