body {
  overflow: visible !important;
}

/* Modal open state */
body.modal-open {
  overflow: hidden !important;
}

/* Preloading */
body.preload * {
  animation-duration: 0s !important;
  -webkit-animation-duration: 0s !important;
  transition: background-color 0s, opacity 0s, color 0s, width 0s, height 0s,
    padding 0s, margin 0s !important;
}

/* Profile setup */
#edit-profile-form,
#setup-profile-form {
  max-width: 470px !important;
}

.edit-profile-card {
  width: 100% !important;
}

.profile-picture-picker-image {
  height: 72px;
  width: 72px;
  object-fit: cover;
  object-position: center;
}

.choose-profile-picture-label:hover {
  cursor: pointer;
  pointer-events: all !important;
}

/* JustValidate errors */
.just-validate-error-label {
  margin: 3px 0 0 0;
  font-size: 0.95rem;
}

/* Login */
.container {
  max-width: 65%;
}

#login-error {
  display: none;
}

#login-error.visible {
  display: block;
}

.login-card {
  border: 0;
  border-radius: 27.5px;
  overflow: hidden;
}

.login-card-img {
  border-radius: 0;
  width: 100%;
  height: 100%;
  max-height: 670px;
  -o-object-fit: cover;
  object-fit: cover;
}

/* Register */
.register-card {
  border: 0;
  border-radius: 27.5px;
  overflow: hidden;
}

.register-card-img {
  border-radius: 0;
  max-height: 675px;
  -o-object-fit: cover;
  object-fit: cover;
}

/* Sidebar */
.sidebar {
  margin-top: 89px !important;
  width: 400px !important;
  max-height: calc(100vh - 86px) !important;
}

.nav-item.active:after {
  content: "";
  width: 3px;
  height: 24px;
  background-color: var(--bs-gray-600) !important;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.nav-link {
  font-size: 1.1rem;
}

.nav-link-icon {
  font-size: 1.3rem;
}

.sidebar-bio-text {
  max-height: 200px;
  overflow-y: auto;
}

/* Home */
.feed-container,
.profile-info {
  max-width: 640px;
  width: 100%;
}

.page-register,
.page-login,
.page-home,
.page-user-profile,
.page-settings,
.page-post {
  min-height: calc(100vh - (88px + 76px));
}

.footer {
  margin-left: 400px !important;
}

.page-login,
.page-register,
.page-profile-setup,
.page-login + .footer,
.page-register + .footer,
.page-profile-setup + .footer {
  margin-left: 0 !important;
}

.page-register,
.page-login,
.page-home,
.page-user-profile,
.page-post,
.page-settings {
  margin-top: 88px !important;
}

.home-navbar-user-profile-picture {
  width: 90px;
  height: 90px;
  opacity: 1;
  border-radius: 100%;
  object-fit: cover;
  object-position: center;
  cursor: pointer;
  transition: opacity 0.7s ease 0s;
  box-shadow: none;
}

/* Feed */
.post {
  border-radius: 22px;
  max-width: 1600px;
}

.feed-post-image {
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
}

.feed-card-profile-picture {
  border-radius: 100%;
  object-fit: cover;
  object-position: center;
  width: 60px;
  height: 60px;
}

.post-user-info,
.dropdown-item {
  cursor: pointer;
}

.post-more-options-menu-button {
  cursor: pointer;
}

.post {
  height: fit-content;
}

.cursor-pointer {
  cursor: pointer !important;
}

.post-chat-icon {
  z-index: 100;
}

.likes-text-container {
  z-index: 101;
}

/* Post like button */
.con-like {
  --red: rgb(255, 50, 100);
  position: relative;
  width: 22px;
  height: 22px;
}

.con-like .like {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 20;
}

.con-like .checkmark {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.con-like .filled {
  position: absolute;
  display: none;
}

.con-like .celebrate {
  position: absolute;
  animation: none;
  animation-fill-mode: forwards;
  display: none;
  cursor: default;
}

.con-like .poly {
  stroke: var(--red);
  fill: var(--red);
}

.con-like .like:checked ~ .checkmark .filled {
  animation: kfr-filled 0.5s;
  display: block;
}

.con-like .like:checked ~ .checkmark .celebrate {
  animation: kfr-celebrate 0.5s;
  animation-fill-mode: forwards;
  display: block;
}

/* Search bar */
.has-search .form-control {
  padding-left: 38px;
}

.has-search .form-control-feedback {
  position: absolute;
  display: block;
  width: 2.375rem;
  height: 43px;
  line-height: 38px;
  text-align: center;
  pointer-events: none;
  color: #aaa;
}

#search-results {
  list-style: none;
  position: absolute;
  z-index: 1050 !important;
  min-width: 300px;
  max-width: 300px;
  background-color: #ffffff;
  border-radius: 0 0 5px 5px;
}

#search-results.hidden {
  visibility: hidden;
  display: none;
}

.search-result-text.ellipsis {
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-profile-picture {
  width: 34px;
  height: 34px;
  object-fit: cover;
  object-position: center;
  border-radius: 100%;
}

.search-result-item {
  cursor: pointer;
  border-radius: 8px;
}

.search-result-item:hover {
  background-color: #e7e7e7;
}

.search-result-item:active {
  background-color: #cecece;
}

/* Create post */
.post-modal-image-container {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.post-modal-image-container::before {
  content: "";
  display: block;
  padding-top: 100%;
}

#post-modal-image {
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
  object-position: center;
}

/* User profile */
.user-profile-profile-picture {
  width: 177px;
  height: 177px;
  opacity: 1;
  border-radius: 100%;
  object-fit: cover;
  object-position: center;
  cursor: pointer;
  transition: opacity 0.7s ease 0s;
  box-shadow: none;
}

#user-profile-posts-amount {
  cursor: pointer;
}

input[type="checkbox"].btn-check:checked + label .unfollow-text {
  display: none;
}

input[type="checkbox"].btn-check:checked + label .follow-text {
  display: inline-block;
}

input[type="checkbox"].btn-check + label .unfollow-text {
  display: inline-block;
}

input[type="checkbox"].btn-check + label .follow-text {
  display: none;
}

/*  Post page */
.post-page-image {
  border-radius: 22px;
  max-height: 66vh;
  object-fit: cover;
  object-position: center;
}

.page-post-profile-picture {
  width: 72px;
  height: 72px;
  opacity: 1;
  border-radius: 100%;
  object-fit: cover;
  object-position: center;
  cursor: pointer;
  transition: opacity 0.7s ease 0s;
  box-shadow: none;
}

/* Post likes modal */
.post-likes-modal-profile-picture {
  border-radius: 100%;
  object-fit: cover;
  object-position: center;
  width: 50px;
  height: 50px;
}

/* Main */
main {
  margin-left: 400px !important;
}

/* Animations */
@keyframes kfr-filled {
  0% {
    opacity: 0;
    transform: scale(0);
  }

  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

@keyframes kfr-celebrate {
  0% {
    transform: scale(0);
  }

  50% {
    opacity: 0.8;
  }

  100% {
    transform: scale(1.2);
    opacity: 0;
    display: none;
  }
}
