* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

body {
  font-family: "Inter", sans-serif;
}

.container {
  max-width: 52.7rem;
  max-height: 73.9rem;
  margin: 14.3rem auto;
  box-shadow: 0 2.4rem 4.8rem rgba(0, 0, 0, 0.4);
  background-color: #fcfcfc;

  border-radius: 6px;
  position: relative;
}

.top {
  display: flex;
  gap: 2.5rem;

  margin-left: 2.5rem;
}

.top img {
  margin-top: 1.5rem;
}

.name-location p {
  margin-bottom: 0.9rem;
  font-size: 1.4rem;
  font-weight: 600px;
}

.name-location span {
  margin-bottom: 1.6rem;
}

.arrow {
  width: 3rem;
  height: 3rem;
}

.name-location {
  margin-top: 2.1rem;
}

.profile-pic {
  border-radius: 50%;
  width: 5rem;
  height: 5rem;
}

/* CAROUSEL */

.swiper {
  margin: 0.75rem 0 1.4rem 0;
}

.swipe-img {
  width: 52.6rem;
  height: 32.5rem;
}

/* ICONS */

.reactions {
  display: flex;
  gap: 1.4rem;
  margin-left: 2.5rem;
  margin-bottom: 2.8rem;
}

.icon {
  width: 24px;
  height: 24px;
}

.heart--fill {
  animation: filling-animation 0.5s ease-in-out forwards;
}

@keyframes filling-animation {
  30% {
    transform: scale(1.1);
  }
  60% {
    transform: scale(1.2);
  }

  80% {
    transform: scale(1.1);
  }

  90% {
    transform: scale(1);
  }

  100% {
  }
}

.hidden {
  display: none;
}

.like {
  background: none;
  border: none;
  cursor: pointer;
}

/* COMMENTS */
.comment-section {
  font-size: 1.2rem;
  line-height: 1.4;
  font-weight: 400;
  margin-left: 2.5rem;
  margin-right: 2.5rem;

  text-align: justify;

  overflow-y: auto;
  overflow-x: hidden;
  height: 20rem;
}

.comment-section span {
  font-weight: 600;
}

.comment {
  margin-bottom: 2rem;
}

/* SEND A COMMENT */
.comment-inp {
  position: relative;

  display: flex;
  margin-left: 2.5rem;
}

.comment-inp input {
  min-width: 47.7rem;
  border: none;
  border-radius: 8px;
  background-color: #f1f1f1;
  height: 5.5rem;
  padding-left: 1.4rem;
  padding-right: 8rem;
  outline: none;
  margin-bottom: 2.4rem;
}

.post {
  position: absolute;
  background: none;
  border: none;
  color: #3d8aff;
  font-weight: 700;
  right: 4rem;
  align-self: center;
  transform: translateY(-80%);

  cursor: pointer;
}

.post:hover {
  color: #5498ff;
}

.comment-add {
  position: relative;
}

.personal-comment {
  position: absolute;
}

.ul {
  list-style: none;
  max-width: 45rem;
}

/* Custom scrollbar */
.comment-section::-webkit-scrollbar {
  width: 1rem;
}

::-webkit-scrollbar-track {
  background: #dddddd;
  border-radius: 8px;
}

::-webkit-scrollbar-thumb {
  background: #818080;
  border-radius: 8px;
}

/* MEDIA QUERIES */

/* BELOW 880PX */
@media (max-width: 55em) {
  .container {
    width: 100%;
  }
}

/* 520PX */
@media (max-width: 32.5em) {
  .comment-inp input {
    min-width: 95%;
  }
}
