*{
  margin: 0;
}
*{
  -webkit-tap-highlight-color: transparent;
}
body{
  font-family: Arial, Helvetica, sans-serif;
  background-color: hsla(0, 0%, 92%, 0.729);
}
.container{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  justify-content: center;
  padding: 20px;
  max-width: 700px;
  margin: 0 auto;
}
.container h1{
  margin-bottom: 50px;
}
.input {
  display: flex;
  gap: 10px;
  margin-bottom: 50px;
}

.input input {
  flex: 1;
  padding: 10px 12px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  transition: all 0.2s ease;
}

.input input:focus {
  border-color: #007bff;
  box-shadow: 0 0 4px rgba(0, 123, 255, 0.6);
}

.input button {
  padding: 10px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  background-color: black;
  color: white;
  cursor: pointer;
  transition: background-color 0.15s;
}

.input button:hover {
  background-color: rgb(84, 83, 83);
}


#searchBtn{
  font-size: 1rem;
  border: none;
  background-color: black;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.15s;
}
#searchBtn:hover{
  background-color: rgb(84, 83, 83);
}

.spinner{
  display: none;
  width: 40px;
  height: 40px;
  border: solid 3px #ccc;
  border-top-color: #007bff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin{
  to {
    transform: rotate(360deg);
  }
}

.profileContainer{
  display: flex;
  justify-content: center;
  background-color: white;
  border-radius: 20px;
  box-shadow: 0 0 10px rgba(0,0,0,0.15);
  gap: 20px;
  padding: 10px;
}
.image{
  width: 150px;
  margin-top: 10px;
}
.image img{
  width: 100%;
  border: solid 1px rgb(199, 197, 197);
  border-radius: 100px;
  box-shadow: 0 0 10px rgba(0,0,0,0.15);
}
.profileDetails{
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 500px;
  padding: 10px 0;
}
.profileDetails h2{
  margin-bottom: 12px;
  color: rgba(0, 0, 0, 0.736);
}
.bio{
  line-height: 1.5;
  margin-bottom: 10px;
  color: rgba(0, 0, 0, 0.801);
}
.connections{
  display: flex;
  gap: 20px;
  color: rgba(0, 0, 0, 0.701);
  font-weight: bold;
  margin-bottom: 12px;
}
.profileDetails a{
  text-decoration: none;
  color: rgb(120, 192, 215);
  cursor: pointer;
  transition: text-decoration 0.15s;
  max-width: 200px;
}
.profileDetails a:hover{
  text-decoration: underline;
  color: rgb(82, 82, 251);
}

.repoContainer{
  display: flex;
  flex-direction: column;
  background-color: white;
  border-radius: 20px;
  gap: 15px;
  box-shadow: 0 0 10px rgba(0,0,0,0.15);
  padding: 15px;
}
.repoContainer h2{
  text-align: center;
  margin-bottom: 25px;
  color: rgba(0, 0, 0, 0.701);
}
.repo{
  display: flex;
  flex-direction: column;
  border: solid 1px rgb(209, 208, 208);
  border-radius: 20px;
  box-shadow: 0 0 10px rgba(0,0,0,0.15);
  padding: 15px;
  cursor: pointer;
  transition: transform 0.15s;
}
.repo:hover{
  transform: scale(1.01);
}
.repo h3{
  color: rgba(0, 0, 0, 0.736);
  margin-bottom: 5px;
} 
.repoDesc{
  line-height: 1.5;
  margin-bottom: 10px;
  color: rgba(0, 0, 0, 0.836);
}
.repoLang{
  color: rgba(0, 0, 0, 0.836);
  margin-bottom: 7px;
}
.repoStat{
  display: flex;
  justify-content: space-between;
}
.repoStat span{
  color: rgba(0, 0, 0, 0.836);
}
.repo a{
  text-decoration: none;
  color: rgb(120, 192, 215);
  cursor: pointer;
  transition: text-decoration 0.15s;
  max-width: 150px;
}
.repo a:hover{
  text-decoration: underline;
  color: rgb(82, 82, 251);
}

@media (max-width: 600px){
  .input{
    display: flex;
    flex-direction: column;
    gap: 7px;
  }
  .profileContainer{
    flex-direction: column;
    align-items: center;
    padding: 20px;
  }
  .image{
    width: 150px;
  }
  .profileDetails{
    align-items: center;
  }
  .bio{
    width: 90%;
    margin-bottom: 15px;
    text-align: center;
  }
  .repo {
    font-size: 0.95rem;
  }
  .repoStat{
    flex-direction: column;
  }

  .repoStat a{
    margin-top: 10px;
  }
  
}