* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Space Mono", monospace;
}

body {
  background-color: var(--lm-bg);
  font-size: 13px;
  color: white;
  width: 100%;
  position: relative;
  height: 100vh;
  background-image: url("assets/asas.jpg");
  background-size: cover;
}

.container {
  width: 327px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  gap: 36px;
}

#app {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: center;
}

.searchbar-container {
  position: relative;
  background-color: black;
  border-radius: 15px;
  box-shadow: var(--lm-shadow);
  display: flex;
  height: 100%;
  padding: 6px;
  justify-content: space-between;
  align-items: center;
  background-image: url(./assets/images/search-icon.svg);
  background-repeat: no-repeat;
  background-position-x: 24px;
  background-position-y: center;
  background-size: 20px;
}

h1 {
  color: white;
  text-shadow: 5px 5px black;
  text-decoration: underline 3px darkgreen solid;
  text-underline-offset: 6px;
  font-size: 6vh;
}

#input {
  border: none;
  width: 80%;
  outline: none;
  background: none;
  color: white;
  padding-left: 50px;
}

#input::placeholder {
  color: white;
  letter-spacing: -0.5px;
  font-size: 13px;
}

.searchbar-container img {
  height: 20px;
  width: 20px;
  padding: 0 10px 0px 16px;
}

.btn-search {
  min-width: 84px;
  padding: 12px 16px;
  background-color: darkgreen;
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 14px;
  font-weight: bold;
}

.btn-search:hover {
  cursor: pointer;
  background-color: green;
  transform: scale(0.975);
}

.profile-container {
  background-image: url("assets/oni.jpg");
  background-size: cover;
  border-radius: 15px;
  box-shadow: darkgreen;
  padding: 24px;
}

.profile-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: space-evenly;
}

.profile-header {
  display: flex;
  gap: 20px;
  margin-bottom: 10px;
}

#avatar {
  width: 70px;
  border-radius: 12px;
  box-shadow: 4px 4px 8px darkgreen;
}

.profile-name {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.profile-name h2 {
  font-size: 16px;
  font-weight: bold;
  color: white;
}

#user {
  color: darkgreen;
}

.profile-info-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#bio {
  line-height: 25px;
  opacity: 0.75;
}

.profile-stats-wrapper {
  display: flex;
  justify-content: space-between;
  background-color: rgb(3, 3, 3);
  border: 1px solid darkgreen;
  text-align: center;
  border-radius: 10px;
  padding: 18px;
}

.profile-stat {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 8px;
}

.stat-title {
  font-size: 11px;
}

.stat-value {
  font-size: 16px;
  font-weight: bold;
  color: white;
}

.profile-bottom-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px 0;
}

.profile-info {
  width: 50%;
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
}

.bottom-icons {
  width: 20px;
}

.profile-info p {
  overflow-wrap: break-word;
}

.profile-info a {
  color: white;
  word-break: break-all;
}

.error {
  position: absolute;
  color: red;
  font-weight: bold;
  right: 10px;
  top: -25px;
}

/* tablet */
@media screen and (min-width: 768px) {
  .container {
    width: 573px;
  }

  .searchbar-container {
    padding: 10px;
  }

  #input {
    font-size: 18px;
    width: 75%;
  }

  #input::placeholder {
    font-size: 18px;
  }

  .btn-search {
    padding: 14px 28px;
    font-size: 16px;
  }

  #app {
    gap: 24px;
  }

  .profile-container {
    padding: 40px;
  }

  .profile-header {
    margin-bottom: 0;
  }

  #avatar {
    width: 117px;
  }

  .profile-content {
    gap: 30px;
  }

  .profile-info-wrapper {
    justify-content: center;
  }

  .profile-name h2 {
    font-size: 26px;
  }

  #user {
    font-size: 16px;
  }

  #date {
    font-size: 15px;
  }

  #bio {
    font-size: 15px;
  }

  .error {
    font-size: 15px;
    top: -30px;
  }

  .profile-stats-wrapper {
    padding: 18px 32px;
  }

  .profile-stat {
    text-align: start;
  }

  .stat-title {
    font-size: 13px;
  }

  .stat-value {
    font-size: 22px;
  }

  .profile-bottom-wrapper {
    flex-wrap: wrap;
    flex-direction: row;
  }

  .profile-info {
    width: 47.5%;
    font-size: 15px;
  }
}

/* Desktop */
@media screen and (min-width: 1280px) {
  .container {
    width: 730px;
  }

  .profile-container {
    position: relative;
  }

  .profile-content {
    width: 480px;
    margin-left: auto;
    gap: 16px;
  }

  #avatar {
    position: absolute;
    left: 0;
    margin-left: 40px;
  }

  .profile-info-wrapper {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
  }

  .profile-name {
    gap: 2px;
  }

  #date {
    padding-top: 10px;
  }

  .profile-stats-wrapper {
    margin: 20px 0;
  }

  .error {
    top: 50%;
    right: 20%;
    transform: translateY(-50%);
    font-size: 15px;
  }

  #input {
    width: 65%;
  }
}
