@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;500&display=swap");

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

body {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: rgb(71, 9, 129);
  color: #fff;
  font-family: 'Poppins', sans-serif;
}
form{
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

form label{
    color: rgb(205, 119, 255);
}

.container {
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.search_container {
  width: 100%;
}
.search_container input {
  width: 100%;
  background-color: rgb(119, 13, 218);
  padding: 0.7rem 1rem;
  font-size: 1rem;
  color: #fff;
  outline: none;
  border-radius: 10px;
  border: none;
  margin-bottom: 2rem;
  box-shadow: 0 1px 10px 2px rgba(0, 0, 0, 0.1);
}

.card_container {
  padding: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  border-radius: 10px;
  background-color: rgb(119, 13, 218);
  box-shadow: 0 1px 10px 2px rgba(0, 0, 0, 0.1);
}

.card_container *::selection{
    background-color: #bbb;
    color: #000;
}

.user_details {
  display: flex;
  flex-direction: column;
  margin-left: 2rem;
  gap: 1rem;
  color: #bbb;
}
.avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 8px solid #1818c796;
}

.user_details ul {
  list-style-type: none;
  display: flex;
  gap: 3rem;
  padding: 0;
}
.user_details ul li {
  display: flex;
  align-items: center;
  justify-content: center;
}
.user_details ul li strong {
  font-size: 0.9rem;
  margin-left: 0.3rem;
}
#repos {
  display: flex;
  flex-wrap: wrap;
}
.repo {
  text-decoration: none;
  color: #fff;
  background-color: rgb(71, 9, 129);
  padding: 0.2rem 0.5rem;
  font-size: 0.7rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  border-radius: 5px;
}

@media screen and (max-width: 1000px) {
  .container {
    width: 80%;
  }
  .card {
    padding: 2rem;
  }
}
@media screen and (max-width: 700px) {
  .container {
    width: 90%;
  }
  .card_container {
    flex-direction: column;
    padding: 2rem;
  }
  .user_details {
    margin-top: 1rem;
    flex-direction: column;
    align-items: center;
    margin-left: 0%;
  }
}
