@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;400&display=swap');

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

body {
  background-image: url("https://camo.githubusercontent.com/69bf67291da308f2ed16225521364f8acea377dda2ec5c0f41b5f8f307875f0a/68747470733a2f2f692e696d6775722e636f6d2f7551366e566a422e676966");
  background-size:cover;
  font-family: 'Poppins', sans-serif;
  color: #ccc;
  margin: 0;
}

.bg{
  background: rgba(0, 0, 0, 0.6);
  width: 100%;
  height: 100%;
}

.main{
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}


.search-box {
  font-family: inherit;
  font-size: 100%;
  background: #333 url(https://static.tumblr.com/ftv85bp/MIXmud4tx/search-icon.png) no-repeat 9px center;
  border: solid 5px #FFFF33;
  box-shadow: 0 0 50px rgb(255, 255, 255, 0.5);
  color: #fff;
  padding: 10px 32px;
  width: 560px;
  border-radius: 20px;
  transition: all .5s;
  outline: none;
  margin-bottom: 2rem;
  
}

.search-box:focus {
  transition: 0.7s ease;
  background-color: #333;
  border-color: #E200D5;
  box-shadow: 0 0 40px #9D00FF
}


.card {
  max-width: 560px;
  background-color: #333;
  box-shadow: 0 5px 10px rgba(154, 160, 185, 0.05),
    0 15px 40px rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-data{
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  
}

.user-data ul {
  padding: 10px;
  list-style-type: none;
  display: flex;
  gap: 10px;
}

.user-data ul li {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.user-data ul li strong {
  font-size: 0.9rem;
  margin-left: 0.5rem;
}

.avatar {
  border-radius: 50%;
  border: 10px solid #555;
  height: 150px;
  width: 150px;
}

.user-info {
  color: #eee;
  margin-left: 1rem;
  padding-left: 1rem;
  border-left: dashed #ccc;
}

.user-info h2 {
  margin-top: 0;
}

.user-info a{
  text-decoration: none;
}

.created{
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  color:#ccc;
}

.repo {
  text-decoration: none;
  color: #EFD033;
  background-color: #54565a;
  border: solid 3px #54565a;
  border-radius: 10px;
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.repo:hover{
  color: #e3ddd3;
  background-color: #54565a;
  border: #9D00FF solid 3px;
}

@media (max-width: 600px) {
  .main{
    height: 100%;
  }
  .bg{
    height: 100vh;
    padding: 1rem;
  }
  .card {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 300px;
    padding: .5rem;
    
  }
  .search-box {
    max-width: 300px;
  }

  .user-info{
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: dashed #ccc;
    border-left: none;
    margin-left: 0;
  }

  .user-info ul{
    flex-direction: column;
  }

  .user-info ul li{
    flex-direction: row;
  }
}

@media (max-width: 375px){
  body{
    background-size:auto;
  }
  .main{
    height: 100%;
  }
  .bg{
    height: 100%;
    padding: 1rem;
    background: none;
  }
}