.user-container {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
}

.user-profile-data {
  margin-right: 32px;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
}

.user-card {
  background-color: #fff;
  display: flex;
  align-items: center;
  padding: 50px;
  max-width: 960px;
  width: 800px;
  border-radius: 12px;
  margin: 80px auto;
  flex-wrap: wrap;
  position: relative;
}

.user-reviews{
  width: 98%;
}

.edit-account {
  position: absolute;
  top: 0%;
  right: 0%;
  text-decoration: none;
  margin: 36px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  background-color: #fff;
  color: #fff;
  border-radius: 6px;
  border: 2.5px solid #8e47f8;
  padding: 7px 14px;
}


.profile-img {
  width: 150px;
  border-radius: 50%;
  border: 18px solid #f4eeff;
  margin-left: 44px;
}

.fa-camera {
  position: absolute;
  bottom: -7%;
  left: 50%;
  transform: translate(-50%, 0%);
  background: #f2f2f2;
  padding: 7px 32px 6px 32px;
  border-radius: 12px;
}

#new-avatar-url {
  position: absolute;
  width: 260px;
  bottom: -35%;
  left: 50%;
  transform: translate(-50%, 0%);
  padding: 7px 16px;
  border-radius: 12px;
  z-index: 1;
}

.info input:focus[type='text'],
.info input:hover {
  outline: none;
  border: 3px solid #8e47f8;
  z-index: 2;
}

.fa-camera:hover {
  background-color: #9e7fcc;
  color: #fff;
  cursor: pointer;
}

.info {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  margin-left: 24px;

}


.info * {
  color: #555;
}

.info h2,
.info h4 {
  margin-top: 0;
  font-size: 28px;
  font-weight: 500;
  color: #333;
  margin-bottom: 4px;
  align-self: center;
}

.info h4 {
  font-size: 20px;
  margin-bottom: 20px;
}

.info ul {
  display: flex;
  align-items: center;
  margin: 10px 0 30px 0;

}

.info ul li {
  list-style: none;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  margin-right: 20px;
  margin-top: 10px;
}

.info ul li i {
  font-size: 16px;
  color: #8e47f8;
  margin-right: 5px;
}


.links {
  display: flex;
  align-items: center;
  margin: 22px 0;
}

.links a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  background-color: #8e47f8;
  color: #fff;
  border-radius: 6px;
  border: 2px solid #8e47f8;
  padding: 10px 18px;
  margin-right: 22px;
  font-size: 15px;
}

.links a:hover {
  cursor: pointer;
}

.links .msg-btn {
  background-color: #fff;
  color: #8e47f8;
  ;
}

.edit-account * {
  color: #8e47f8;
  font-size: 16px;

}

.fa-pencil {
  margin: 4px;
  font-size: 14px;
}



/* -------------------edit profile------------------------- */


.edit-avatar {
  width: 150px;
  height: 150px;
  border-radius: 12px;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
}

#edit-pic-container {
  position: relative;
  margin: 0;
}

.edit-profile {
  width: 90%;
  max-width: 560px;
  margin: 0 auto;
  padding: 0.6rem 2.2rem;
  background-color: #fff;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
  border: 12px;
  margin-bottom: 6%;
  margin-top: 3%;
}

.edit-profile * {
  color: #333;
}

.edit-profile h2 {
  font-size: 1.8rem;
  text-align: center;
  margin: 14px 0 20px 0;
}

.edit-profile form {
  display: flex;
  flex-direction: column;
  margin-top: 15%;
}

.edit-profile .input-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.05rem;
  margin-top: 0.7rem;

}

.edit-profile .input-group label {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.2rem;
}

.edit-profile .input-group input {
  border: none;
  border-bottom: 3px solid #ccc;
  font-size: 1.05rem;
  padding: 0.3rem 0;
}

.edit-profile .input-group input:focus {
  outline: none;
  border-color: #2c7be5;
}

.edit-profile .button-group {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
}

.edit-profile button {
  font-size: 1.1rem;
  padding: 0.6rem 0.7rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  margin: 6px;
}

#description {
  width: 100%;
  border: 3px solid #ccc;
  border-radius: 4px;
  resize: vertical;
  font-size: 1rem;
  line-height: 1.5;
  padding: 1% 1.5%;
}

#description:hover,
#description:focus {
  outline: none;
  border: 3px solid #8e47f8;
}

.input-group input:hover[type='text'],
.input-group input:hover[type='email'],
.input-group input:focus[type='text'],
.input-group input:focus[type='email'] {
  border-bottom: 3px solid #8e47f8;
}

.edit-profile button[type="submit"] {
  background-color: #8e47f8;
  color: #fff;
}

.edit-profile button[type="submit"]:hover {
  background-color: #7126e0;
  ;
}

.edit-profile button[type="button"] {
  background-color: #ccc;
  color: #333;
}

.edit-profile button[type="button"]:hover {
  background-color: #a7a7a7;
  color: #fff;
}

.userCardMargin {
  margin: 2% auto !important;
}


@media only screen and (max-width: 920px) {
  .profile-img {
    width: 100px;
    margin: 0 3% 0 5%;
  }

  .edit-profile-text {
    font-size: 1rem;
  }

  .user-card {
    padding: 2%;
    max-width: 72%;
    margin-top: -15%;
  }

  .links a {
    height: 36px;
    padding: 8px;
    margin-right: 12px;
    font-size: 14px;
  }

  .info h4 {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .info h4 {
    font-size: 22x;
  }

  .edit-account {
    height: auto;
    padding: 7px;
    margin: 3%;
  }

  .edit-review-btn {
    right: 4%;
  }

  .delete-review-btn {
    right: 1%;
  }

  .redirect-review-btn {
    right: 7%;
  }

}

@media only screen and (max-width: 710px) {
  .edit-profile-text {
    display: none;
  }

  .user-card {
    max-width: 79%;
    margin-top: -17%;
  }

  .edit-account {
    padding: 5px;
    border-radius: 50%;
  }

  .edit-review-btn {
    right: 6.5%;
  }

  .delete-review-btn {
    right: 3.5%;
  }

  .redirect-review-btn {
    right: 9.5%;
  }

}

@media only screen and (max-width: 600px) {
  .info {
    margin-left: 2%;
  }

  .user-card {
    max-width: 87%;
  }

  .review-header {
    margin-top: 7.5%;
  }

  .profile-img {
    width: 64px;
    margin: 0 4.5%;
    border: 10px solid #f4eeff;
  }

  h2{
    font-size: 28px;
  }

  .edit-account {
    padding: 1px;
    border-radius: 50%;
  }

  .info ul {
    margin: 0;
  }

  .info ul li {
    margin: 0;
  }

  .info h4 {
    font-size: 18px;
    margin-bottom: 10%;
  }

  .info h2 {
    font-size: 22px;
  }

  .info p {
    font-size: 0.9rem;
  }

  .links a {
    height: 28px;
    padding: 6px;
    margin-right: 12px;
    font-size: 14px;
  }

  .edit-review-btn {
    right: 5.5%;
    font-size: 0.8rem;
  }

  .delete-review-btn {
    right: 1.2%;
    font-size: 0.8rem;
  }

  .redirect-review-btn {
    right: 10%;
    font-size: 0.72rem;
  }

  .review-title-details {
    padding: 0px 12%;
    font-size: 0.8rem;
  }

}

@media only screen and (max-width: 400px) {
  .user-card {
    max-width: 96%;
    margin-top: -27%;
  }

  .links a {
    font-size: 12px;
  }

  .edit-review-btn {
    right: 5.5%;
  }

  .delete-review-btn {
    right: 1.2%;
  }

  .redirect-review-btn {
    right: 9.5%;

  }


}

@media only screen and (max-width: 350px) {
  .info {
    margin-left: 0%;
  }

  .profile-img {
    width: 52px;
    margin: 0 1.5%;
    border: 6px solid #f4eeff;
  }

  .info h2 {
    font-size: 19px;
  }

  .info h4 {
    font-size: 16px;
  }

  .links a {
    font-size: 11px;
    margin-right: 8px;
  }

  .edit-review-btn {
    right: 5.5%;
  }

  .delete-review-btn {
    right: 1.2%;
  }

  .redirect-review-btn {
    right: 9.9%;

  }
}


/* PROFILE SETTINGS */

@media only screen and (max-width: 520px) {
  .edit-avatar {
    width: 124px;
    height: 124px;
  }

  #new-avatar-url {
    width: 60%;
    padding: 6px 9px;
    font-size: 0.7rem;
    bottom: -42%;
  }

  .fa-camera {
    padding: 6px 22px;
  }

  .edit-profile .input-group label {
    font-size: 1rem;
  }

  .edit-profile .input-group input {
    font-size: 0.95rem;
  }

  #description {
    font-size: 0.85rem;
  }

  .edit-profile .input-group {
    margin-bottom: 0.7rem;
    margin-top: 0.4rem;
  }

  .edit-profile button {
    font-size: 0.9rem;
    padding: 0.5rem 0.8rem;
  }

  .edit-profile form {
    margin-top: 18.5%;
  }
}

@media only screen and (max-width: 350px) {
  #new-avatar-url {
    width: 85%;
  }

  .edit-profile button {
    font-size: 0.8rem;
    padding: 0.5rem;
  }

  .edit-profile form {
    margin-top: 24.5%;
  }

  .edit-profile .input-group label {
    font-size: 0.9rem;
  }

  .edit-profile .input-group input {
    font-size: 0.85rem;
  }

  #description {
    font-size: 0.8rem;
  }
}